Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting <unknown mapfile Dos name> for non-NT path at post-section-open #1180

Closed
derekbruening opened this issue Nov 28, 2014 · 1 comment
Closed

Comments

@derekbruening
Copy link
Contributor

From [email protected] on June 06, 2013 14:01:26

00 1999de28 6c98a304 ntdll!ZwWaitForSingleObject+0x15
01 1999de40 6c957ff5 dynamorio!nt_wait_event_with_timeout+0x14 [d:\derek\dr\git\src\core\win32\ntdll.c @ 3704]
02 1999de6c 6c957dea dynamorio!os_wait_event+0x185 [d:\derek\dr\git\src\core\win32\os.c @ 7753]
03 1999de8c 6c7b56da dynamorio!mutex_wait_contended_lock+0x7a [d:\derek\dr\git\src\core\win32\os.c @ 7845]
04 1999dea4 6c952bbd dynamorio!mutex_lock+0xea [d:\derek\dr\git\src\core\utils.c @ 876]
05 1999deb4 6c7b8254 dynamorio!debugbox+0x1d [d:\derek\dr\git\src\core\win32\os.c @ 4591]
06 1999e6d0 6c96af7b dynamorio!notify+0x1e4 [d:\derek\dr\git\src\core\utils.c @ 1945]
07 1999eb50 6c96aa5d dynamorio!postsys_create_or_open_section+0x41b [d:\derek\dr\git\src\core\win32\syscall.c @ 3293]
08 1999eb98 6c966083 dynamorio!postsys_CreateSection+0x14d [d:\derek\dr\git\src\core\win32\syscall.c @ 3335]
09 1999ee04 6c7a388e dynamorio!post_system_call+0xae3 [d:\derek\dr\git\src\core\win32\syscall.c @ 3709]
0a 1999ee2c 6c798ca8 dynamorio!handle_post_system_call+0xce [d:\derek\dr\git\src\core\dispatch.c @ 1869]
0b 1999ef18 6c7954a4 dynamorio!dispatch_enter_dynamorio+0xd98 [d:\derek\dr\git\src\core\dispatch.c @ 756]
0c 1999eff4 199b21e2 dynamorio!dispatch+0x14 [d:\derek\dr\git\src\core\dispatch.c @ 146]

0:000> dv
do_once = 0n1
have_name = 0n0 ''
name_info = struct _FILE_NAME_INFORMATION
buf = wchar_t [260] "\Device\CdRom0"
fname = 0x1999e734
dcontext = 0x1994e180
unsafe_section_handle = 0x0018e7bc
file_handle = 0x00000190
non_image = 0n1 ''
section_handle = 0x00000194
0:000> dt name_info
Local var @ 0x1999e730 Type _FILE_NAME_INFORMATION
+0x000 FileNameLength : 0x5c
+0x004 FileName : [260] "\Windows\Globalization\Sorting\SortDefault.nls"

% ls /c/Windows/Globalization/Sorting/
SortDefault.nls SortServer2003Compat.nls SortServer2008Compat.nls SortVistaCompat.nls

We expect \Device\HarddiskVolumeX... in convert_NT_to_Dos_path() -- but we
already have a DOS relative path here.

OK, that's just the post-section-map, using NtQueryInformationFile
FileNameInformation. xref issue #138 notes.

At map time, using MemorySectionName (get_mapped_file_name()), we get the
NT path, which we do convert successfully:

<from section, file is "\Windows\Globalization\Sorting\SortDefault.nls">

<at map, file is "\Device\HarddiskVolume5\Windows\Globalization\Sorting\SortDefault.nls">
<from section, file is "\Windows\SysWOW64\ntmarta.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\ntmarta.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\Wldap32.dll">
<from section, file is "\Windows\SysWOW64\winsta.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\winsta.dll">
<Handling our fault in a TRY at 0x6d25e270>
<from section, file is "\Windows\SysWOW64\KBDUS.DLL">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\KBDUS.DLL">
<from section, file is "\derek\chromium\src\out\Debug\icudt.dll">
<at map, file is "\Device\HarddiskVolume3\derek\chromium\src\out\Debug\icudt.dll">
<from section, file is "\derek\chromium\src\out\Debug\ffmpegsumo.dll">
<at map, file is "\Device\HarddiskVolume3\derek\chromium\src\out\Debug\ffmpegsumo.dll">
<from section, file is "\derek\chromium\src\out\Debug\chrome_100_percent.pak">
<at map, file is "\Device\HarddiskVolume3\derek\chromium\src\out\Debug\chrome_100_percent.pak">
<from section, file is "\derek\chromium\src\out\Debug\locales\en-US.pak">
<at map, file is "\Device\HarddiskVolume3\derek\chromium\src\out\Debug\locales\en-US.pak">
<from section, file is "\derek\chromium\src\out\Debug\resources.pak">
<at map, file is "\Device\HarddiskVolume3\derek\chromium\src\out\Debug\resources.pak">
<from section, file is "\Windows\SysWOW64\tzres.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\tzres.dll">
<from section, file is "\Windows\SysWOW64\tzres.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\tzres.dll">
Note: Google Test filter = PlatformAppBrowserTest.LaunchWithRelativeFile
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from PlatformAppBrowserTest, where TypeParam =
[ RUN ] PlatformAppBrowserTest.LaunchWithRelativeFile
<from section, file is "\Windows\SysWOW64\uxtheme.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\uxtheme.dll">
<from section, file is "\Windows\SysWOW64\nlaapi.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\nlaapi.dll">
<from section, file is "\Windows\SysWOW64\dhcpcsvc6.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\dhcpcsvc6.dll">
<from section, file is "\Windows\SysWOW64\AudioSes.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\AudioSes.dll">
<from section, file is "\Windows\SysWOW64\MMDevAPI.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\MMDevAPI.dll">
<from section, file is "\Windows\SysWOW64\propsys.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\propsys.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\clbcatq.dll">
<from section, file is "\Windows\SysWOW64\rdpendp.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\rdpendp.dll">
<from section, file is "\Windows\SysWOW64\msacm32.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\msacm32.dll">
<from section, file is "\Windows\SysWOW64\slc.dll">
<at map, file is "\Device\HarddiskVolume5\Windows\SysWOW64\slc.dll">

We should quite this warning at post-section-open.

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1180

@derekbruening
Copy link
Contributor Author

From [email protected] on June 07, 2013 13:02:00

This issue was closed by revision r2112 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant