Invalid read of size 2 at strlenW (unicode.h:216) by CompareStringW (locale.c:2752) by lstrcmpW (locale.c:2907) by test_FindMimeFromData (misc.c:648) by func_misc (misc.c:1414) by run_test (test.h:541) by main (test.h:591) Address 0xf0f0f0f0 is not stack'd, malloc'd or (recently) free'd { Memcheck:Addr2 fun:strlenW fun:CompareStringW fun:lstrcmpW fun:test_FindMimeFromData fun:func_misc fun:run_test fun:main } wine: Unhandled page fault on read access to 0xf0f0f0f0 at address 0x4033c46 (thread 0026), starting debugger... Memcheck, a memory error detector Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al. Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info Command: /home/dank/wine-git/loader/wine-preloader /home/dank/wine-git/loader/wine winedbg --auto 40 68 preloader: Warning: failed to reserve range 00110000-68000000 Unhandled exception: page fault on read access to 0xf0f0f0f0 in 32-bit code (0x04033c46). Register dump: CS:0073 SS:007b DS:007b ES:0000 FS:000b GS:0013 EIP:04033c46 ESP:7f22fc38 EBP:7f22fc48 EFLAGS:00000000( - -- - - - ) EAX:f0f0f0f0 EBX:04880ff4 ECX:049816a0 EDX:f0f0f0f0 ESI:7f22fe70 EDI:00000000 Stack dump: 0x7f22fc38: 0481fd55 04859ad9 00000000 f0f0f0f0 0x7f22fc48: 7f22fc88 04848064 f0f0f0f0 00000000 0x7f22fc58: 7f22fc98 7f04e438 0497fc90 04981ff4 0x7f22fc68: 0481fd55 04846a20 00000000 049763a0 0x7f22fc78: 7f22fcd8 00000409 04880ff4 04880ff4 0x7f22fc88: 7f22fcc8 0484858e 00000409 00000000 Backtrace: =>0 0x04033c46 strlenW+0x15(str=*** invalid address 0xf0f0f0f0 ***) [/home/dank/wine-git/libs/wine/../../include/wine/unicode.h:216] in libwine.so.1 (0x7f22fc48) 1 0x04848064 CompareStringW+0xc2(lcid=0x0409, style=0, str1=*** invalid address 0xf0f0f0f0 ***, len1=0xffffffffffffffff, str2="text/html", len2=0xffffffffffffffff) [/home/dank/wine-git/dlls/kernel32/locale.c:2752] in kernel32 (0x7f22fc88) 2 0x0484858e lstrcmpW+0x72(str1=*** invalid address 0xf0f0f0f0 ***, str2="text/html") [/home/dank/wine-git/dlls/kernel32/locale.c:2907] in kernel32 (0x7f22fcc8) 3 0x0494e338 test_FindMimeFromData+0x119() [/home/dank/wine-git/dlls/urlmon/tests/misc.c:648] in urlmon_test (0x7f22fd08) 4 0x04952b9b func_misc+0x44() [/home/dank/wine-git/dlls/urlmon/tests/misc.c:1415] in urlmon_test (0x7f22fd28) 5 0x04975250 run_test+0x9f(name="misc.c") [/home/dank/wine-git/dlls/urlmon/tests/../../../include/wine/test.h:543] in urlmon_test (0x7f22fd88) 6 0x0497556a main+0x1f1(argc=0x7f22fe70, argv=0x7f001cb8) [/home/dank/wine-git/dlls/urlmon/tests/../../../include/wine/test.h:592] in urlmon_test (0x7f22fe58) 7 0x049755f6 __wine_spec_exe_entry+0x6a(peb=0x7ffdf000) [/home/dank/wine-git/dlls/winecrt0/exe_entry.c:36] in urlmon_test (0x7f22fe98) 8 0x048554b8 start_process+0x137(peb=0x7ffdf000) [/home/dank/wine-git/dlls/kernel32/process.c:992] in kernel32 (0x7f22fed8) 9 0x04757a98 call_thread_func+0xc() in ntdll (0x7f22fee8) 10 0x04757ad6 call_thread_entry_point+0x34(entry=0x4855381, arg=0x7ffdf000) [/home/dank/wine-git/dlls/ntdll/signal_i386.c:2457] in ntdll (0x7f22ffc8) 11 0x04730736 LdrInitializeThunk(kernel_start=0x7ffdf000, unknown2=0, unknown3=0, unknown4=0) [/home/dank/wine-git/dlls/ntdll/loader.c:2621] in ntdll (0x7f22ffe8) 12 0x04032ed5 wine_call_on_stack+0x1d() in libwine.so.1 (0x00000000) 0x04033c46 strlenW+0x15 [/home/dank/wine-git/libs/wine/../../include/wine/unicode.h:216] in libwine.so.1: movzwl 0x0(%eax),%eax 216 while (*s) s++; Modules: Module Address Debug info Name (66 modules) ELF 4000000- 401d000 Deferred ld-linux.so.2 ELF 401f000- 4022000 Deferred vgpreload_core-x86-linux.so ELF 4022000- 402a000 Deferred vgpreload_memcheck-x86-linux.so ELF 402a000- 4167000 Dwarf libwine.so.1 ELF 4179000- 4192000 Deferred libpthread.so.0 ELF 4193000- 42d8000 Deferred libc.so.6 ELF 42d8000- 42dc000 Deferred libdl.so.2 ELF 46dd000- 479e000 Dwarf ntdll \-PE 46f0000- 479e000 \ ntdll ELF 479e000- 47c4000 Deferred libm.so.6 ELF 47c4000- 47cc000 Deferred libnss_compat.so.2 ELF 47cc000- 47e3000 Deferred libnsl.so.1 ELF 47e3000- 47ee000 Deferred libnss_nis.so.2 ELF 47ee000- 47fa000 Deferred libnss_files.so.2 ELF 47fa000- 4939000 Dwarf kernel32 \-PE 4810000- 4939000 \ kernel32 ELF 4939000- 4987000 Dwarf urlmon_test \-PE 4940000- 4987000 \ urlmon_test ELF 4987000- 49ee000 Deferred urlmon \-PE 4990000- 49ee000 \ urlmon ELF 49ee000- 4b11000 Deferred ole32 \-PE 4a10000- 4b11000 \ ole32 ELF 4b11000- 4b6d000 Deferred advapi32 \-PE 4b20000- 4b6d000 \ advapi32 ELF 4b6d000- 4be6000 Deferred rpcrt4 \-PE 4b80000- 4be6000 \ rpcrt4 ELF 4be6000- 4d08000 Deferred user32 \-PE 4c00000- 4d08000 \ user32 ELF 4d08000- 4da2000 Deferred gdi32 \-PE 4d10000- 4da2000 \ gdi32 ELF 4da2000- 4e02000 Deferred shlwapi \-PE 4db0000- 4e02000 \ shlwapi ELF 4e02000- 4e5f000 Deferred wininet \-PE 4e10000- 4e5f000 \ wininet ELF 4e5f000- 4e75000 Deferred libz.so.1 ELF 4e75000- 4e99000 Deferred mpr \-PE 4e80000- 4e99000 \ mpr ELF 4e99000- 5035000 Deferred shell32 \-PE 4eb0000- 5035000 \ shell32 ELF 5035000- 5119000 Deferred comctl32 \-PE 5040000- 5119000 \ comctl32 ELF 5119000- 5198000 Deferred libfreetype.so.6 ELF 5198000- 51c5000 Deferred libfontconfig.so.1 ELF 51c5000- 51ec000 Deferred libexpat.so.1 ELF 5232000- 5237000 Deferred libuuid.so.1 ELF 5237000- 523a000 Deferred libxinerama.so.1 ELF 563a000- 56ec000 Deferred winex11 \-PE 5650000- 56ec000 \ winex11 ELF 56fe000- 5707000 Deferred libsm.so.6 ELF 5707000- 5722000 Deferred libice.so.6 ELF 5722000- 5732000 Deferred libxext.so.6 ELF 5732000- 5861000 Deferred libx11.so.6 ELF 5861000- 5865000 Deferred libxau.so.6 ELF 5865000- 5883000 Deferred libxcb.so.1 ELF 5883000- 5888000 Deferred libxdmcp.so.6 ELF 5888000- 58a9000 Deferred imm32 \-PE 5890000- 58a9000 \ imm32 ELF 58a9000- 58af000 Deferred libxxf86vm.so.1 ELF 58af000- 58b9000 Deferred libxrender.so.1 ELF 58b9000- 58c2000 Deferred libxrandr.so.2 ELF 58c2000- 58c6000 Deferred libxcomposite.so.1 ELF 58c6000- 58cc000 Deferred libxfixes.so.3 ELF 58cc000- 58d7000 Deferred libxcursor.so.1 ELF 58d7000- 590a000 Deferred uxtheme \-PE 58e0000- 590a000 \ uxtheme ELF 7bf00000-7bf04000 Deferred Threads: process tid prio (all id:s are in hex) 00000008 notepad.exe 00000009 0 0000000e services.exe 00000038 0 00000014 0 00000010 0 0000000f 0 00000011 winedevice.exe 00000018 0 00000017 0 00000013 0 00000012 0 00000019 explorer.exe 0000001a 0 0000002e rpcss.exe 00000031 0 00000036 0 00000037 0 00000033 rpcss.exe 0000003d 0 0000003f 0 00000034 0 0000000b svchost.exe 00000032 0 00000041 0 0000003a 0 0000001c 0 0000003c 0 00000028 (D) Z:\home\dank\wine-git\dlls\urlmon\tests\urlmon_test.exe 00000026 0 <== 0000001f user32_test.exe 00000030 0 Backtrace: =>0 0x04033c46 strlenW+0x15(str=*** invalid address 0xf0f0f0f0 ***) [/home/dank/wine-git/libs/wine/../../include/wine/unicode.h:216] in libwine.so.1 (0x7f22fc48) 1 0x04848064 CompareStringW+0xc2(lcid=0x0409, style=0, str1=*** invalid address 0xf0f0f0f0 ***, len1=0xffffffffffffffff, str2="text/html", len2=0xffffffffffffffff) [/home/dank/wine-git/dlls/kernel32/locale.c:2752] in kernel32 (0x7f22fc88) 2 0x0484858e lstrcmpW+0x72(str1=*** invalid address 0xf0f0f0f0 ***, str2="text/html") [/home/dank/wine-git/dlls/kernel32/locale.c:2907] in kernel32 (0x7f22fcc8) 3 0x0494e338 test_FindMimeFromData+0x119() [/home/dank/wine-git/dlls/urlmon/tests/misc.c:648] in urlmon_test (0x7f22fd08) 4 0x04952b9b func_misc+0x44() [/home/dank/wine-git/dlls/urlmon/tests/misc.c:1415] in urlmon_test (0x7f22fd28) 5 0x04975250 run_test+0x9f(name="misc.c") [/home/dank/wine-git/dlls/urlmon/tests/../../../include/wine/test.h:543] in urlmon_test (0x7f22fd88) 6 0x0497556a main+0x1f1(argc=0x7f22fe70, argv=0x7f001cb8) [/home/dank/wine-git/dlls/urlmon/tests/../../../include/wine/test.h:592] in urlmon_test (0x7f22fe58) 7 0x049755f6 __wine_spec_exe_entry+0x6a(peb=0x7ffdf000) [/home/dank/wine-git/dlls/winecrt0/exe_entry.c:36] in urlmon_test (0x7f22fe98) 8 0x048554b8 start_process+0x137(peb=0x7ffdf000) [/home/dank/wine-git/dlls/kernel32/process.c:992] in kernel32 (0x7f22fed8) 9 0x04757a98 call_thread_func+0xc() in ntdll (0x7f22fee8) 10 0x04757ad6 call_thread_entry_point+0x34(entry=0x4855381, arg=0x7ffdf000) [/home/dank/wine-git/dlls/ntdll/signal_i386.c:2457] in ntdll (0x7f22ffc8) 11 0x04730736 LdrInitializeThunk(kernel_start=0x7ffdf000, unknown2=0, unknown3=0, unknown4=0) [/home/dank/wine-git/dlls/ntdll/loader.c:2621] in ntdll (0x7f22ffe8) 12 0x04032ed5 wine_call_on_stack+0x1d() in libwine.so.1 (0x00000000) HEAP SUMMARY: in use at exit: 355,984 bytes in 5,242 blocks total heap usage: 26,707 allocs, 21,465 frees, 6,951,383 bytes allocated HEAP SUMMARY: in use at exit: 44,890 bytes in 128 blocks total heap usage: 4,518 allocs, 4,390 frees, 30,190,401 bytes allocated LEAK SUMMARY: definitely lost: 0 bytes in 0 blocks indirectly lost: 120 bytes in 10 blocks possibly lost: 8 bytes in 1 blocks still reachable: 266,370 bytes in 2,363 blocks suppressed: 89,486 bytes in 2,868 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-reachable=yes For counts of detected and suppressed errors, rerun with: -v ERROR SUMMARY: 3 errors from 2 contexts (suppressed: 631 from 100) used_suppression: 94 todo_suppress_libfontconfig_leak used_suppression: 187 todo_suppress_dlopen_leak used_suppression: 1 suppress_nss_leak used_suppression: 1 user32_builtin_classes_leak used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XRender_Init used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XComposite_Init used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XRandR_Init used_suppression: 2 todo_wine_dlls_winex11drv__X11DRV_XF86VM_Init used_suppression: 4 todo_wine_dlls_winex11drv__xinerama_init used_suppression: 2 todo_wine_dlls_winex11drv__XkbUseExtension used_suppression: 1 todo_suppress_wine_init_load_order_leak used_suppression: 1 todo_suppress_wine_alloc_module_leak used_suppression: 1 wine_bug_20544 used_suppression: 1 todo_wine_dlls_winex11drv_XOpenDisplay used_suppression: 8 X on SUSE11 writev uninit padding 2 used_suppression: 256 bogus_Xcursor used_suppression: 89 glibc-2.10-on-SUSE-10.3-(x86) used_suppression: 231 dl-hack3-cond-1 1,716 bytes in 1 blocks are definitely lost at notify_alloc (heap.c:254) by RtlAllocateHeap (heap.c:1700) by elf_map_file (elf_module.c:308) by elf_load_debug_info (elf_module.c:1048) by module_get_debug (module.c:310) by SymFromAddr (symbol.c:1278) by stack_get_current_symbol (stack.c:143) by display_print (display.c:172) by dbg_exception_prolog (tgt_active.c:180) by dbg_handle_exception (tgt_active.c:410) by dbg_handle_debug_event (tgt_active.c:490) by wait_exception (tgt_active.c:692) by dbg_active_wait_for_first_exception (tgt_active.c:723) by dbg_active_auto (tgt_active.c:968) by main (winedbg.c:668) { Memcheck:Leak fun:notify_alloc fun:RtlAllocateHeap fun:elf_map_file fun:elf_load_debug_info fun:module_get_debug fun:SymFromAddr fun:stack_get_current_symbol fun:display_print fun:dbg_exception_prolog fun:dbg_handle_exception fun:dbg_handle_debug_event fun:wait_exception fun:dbg_active_wait_for_first_exception fun:dbg_active_auto fun:main }