TestDllInterceptor.exe crashes after hooking NtWriteFile on Windows 8 + MSVS2012

RESOLVED FIXED in mozilla25

Status

()

Toolkit
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: m_kato, Assigned: m_kato)

Tracking

Trunk
mozilla25
x86_64
Windows 8
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
On my build env (for Win64), this unit test crashes by NtWriteFile hook.  It depends on MSVS.


0:000> g
(2c9c.2610): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
00000000`00000000 ??              ???
0:000> k
Child-SP          RetAddr           Call Site
00000053`86abd8a8 000007fd`15771e4d 0x0
00000053`86abd8b0 000007f7`b7647e66 KERNELBASE!WriteFile+0x79
00000053`86abd920 000007f7`b76479d1 TestDllInterceptor!_write_nolock+0x442
00000053`86abf490 000007f7`b76455fe TestDllInterceptor!_write+0x8d
00000053`86abf4e0 000007f7`b76427d9 TestDllInterceptor!_flush+0x42
00000053`86abf510 000007f7`b7641b66 TestDllInterceptor!_ftbuf+0x1d
00000053`86abf540 000007f7`b764160f TestDllInterceptor!printf+0x8e
00000053`86abf580 000007f7`b76419bb TestDllInterceptor!TestHook+0x6f
00000053`86abf9f0 000007f7`b76423a4 TestDllInterceptor!main+0x31b
00000053`86abff10 000007fd`15971832 TestDllInterceptor!__tmainCRTStartup+0x144
00000053`86abff50 000007fd`185ed609 KERNEL32!BaseThreadInitThunk+0x1a
00000053`86abff80 00000000`00000000 ntdll!RtlUserThreadStart+0x1d
(Assignee)

Comment 1

5 years ago
Created attachment 782488 [details] [diff] [review]
need scope
(Assignee)

Updated

5 years ago
Attachment #782488 - Flags: review?(ehsan)

Updated

5 years ago
Attachment #782488 - Flags: review?(ehsan) → review+
(Assignee)

Comment 2

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/469af523851e
Target Milestone: --- → mozilla25

Comment 3

5 years ago
https://hg.mozilla.org/mozilla-central/rev/469af523851e
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.