[Bug 43354] New: valgrind shows a crash in dlls/wbemprox/tests/query.c ( fill_ip4routetable)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jul 14 14:10:52 CDT 2017


https://bugs.winehq.org/show_bug.cgi?id=43354

            Bug ID: 43354
           Summary: valgrind shows a crash in dlls/wbemprox/tests/query.c
                    (fill_ip4routetable)
           Product: Wine
           Version: 2.12
          Hardware: x86
                OS: Linux
            Status: NEW
          Keywords: download, source, testcase, valgrind
          Severity: normal
          Priority: P2
         Component: wmi&wbemprox
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com
                CC: hans at meelstraat.net
      Distribution: Gentoo

../../../tools/runtest -q -P wine -T ../../.. -M wbemprox.dll -p
wbemprox_test.exe.so query && touch query.ok
wine: Unhandled page fault on write access to 0x0000000e at address 0x5e41470
(thread 0139), starting debugger...
Unhandled exception: page fault on write access to 0x0000000e in 32-bit code
(0x05e41470).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:000b GS:0013
 EIP:05e41470 ESP:04b0fa78 EBP:04b0faa8 EFLAGS:00000044(   - --     Z- -P- )
 EAX:00000002 EBX:05e68000 ECX:00000000 EDX:00000003
 ESI:04b0fb90 EDI:04407000
Stack dump:
0x04b0fa78:  000000ac 00000000 00000003 00000003
0x04b0fa88:  00000024 048ffa98 048ef7c4 00000002
0x04b0fa98:  048fdb28 3bfc6500 05e68000 05e68000
0x04b0faa8:  04b0fb08 05e4b85d 05e693d8 00000000
0x04b0fab8:  05e3e319 05e4b7f1 048d0000 049120e8
0x04b0fac8:  049120e4 04900f88 00000004 04900f6c
Backtrace:
=>0 0x05e41470 fill_ip4routetable+0x240(table=0x2, cond=0x2)
[/home/austin/wine-valgrind/dlls/wbemprox/builtin.c:2096] in wbemprox
(0x04b0faa8)
  1 0x05e4b85d execute_view+0x76(view=0x4900f88)
[/home/austin/wine-valgrind/dlls/wbemprox/query.c:413] in wbemprox (0x04b0fb08)
  2 0x05e4bb4d exec_query+0x61(str="SELECT * FROM Win32_IP4RouteTable",
result=0x4b0fbc4) [/home/austin/wine-valgrind/dlls/wbemprox/query.c:480] in
wbemprox (0x04b0fb38)
  3 0x05e52081 wbem_services_ExecQuery+0xd9(iface=<couldn't compute location>,
strQueryLanguage=<couldn't compute location>, strQuery=<couldn't compute
location>, lFlags=<couldn't compute location>, pCtx=<couldn't compute
location>, ppEnum=<couldn't compute location>)
[/home/austin/wine-valgrind/dlls/wbemprox/services.c:626] in wbemprox
(0x04b0fb78)
  4 0x04880243 test_IP4RouteTable+0xb2(services=0x48fdb48)
[/home/austin/wine-valgrind/dlls/wbemprox/tests/../../../include/wbemcli.h:1166]
in wbemprox_test (0x04b0fc78)
  5 0x04880a2b func_query+0x272()
[/home/austin/wine-valgrind/dlls/wbemprox/tests/query.c:1406] in wbemprox_test
(0x04b0fcc8)
  6 0x0488221a run_test+0x96(name="query")
[/home/austin/wine-valgrind/dlls/wbemprox/tests/../../../include/wine/test.h:603]
in wbemprox_test (0x04b0fd08)
  7 0x0488266c main+0x245(argc=<couldn't compute location>, argv=0x48d1e00)
[/home/austin/wine-valgrind/dlls/wbemprox/tests/../../../include/wine/test.h:687]
in wbemprox_test (0x04b0fdd8)
  8 0x048826fd __wine_spec_exe_entry+0x6d(peb=<couldn't compute location>)
[/home/austin/wine-valgrind/dlls/winecrt0/exe_entry.c:36] in wbemprox_test
(0x04b0fe18)
  9 0x7b46bdac call_process_entry+0xb() in kernel32 (0x04b0fe38)
  10 0x7b46bf01 start_process+0x152(entry=0x488268f)
[/home/austin/wine-valgrind/dlls/kernel32/process.c:1116] in kernel32
(0x04b0fe88)
  11 0x7bc91378 call_thread_func_wrapper+0xb() in ntdll (0x04b0fea8)
  12 0x7bc91400 call_thread_func+0x7d(entry=0x7b46bdae, arg=0x488268f,
frame=0x4b0ffb8) [/home/austin/wine-valgrind/dlls/ntdll/signal_i386.c:2759] in
ntdll (0x04b0ff98)
  13 0x7bc91356 call_thread_entry_point+0x11() in ntdll (0x04b0ffb8)
  14 0x7bc5fde5 start_process+0x2a(arg=0xfeb43304)
[/home/austin/wine-valgrind/dlls/ntdll/loader.c:3083] in ntdll (0x04b0ffe8)
  15 0x040413ed wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  16 0x040413c7 wine_switch_to_stack+0x22(func=0x7bc5fdba, arg=0xfeb43304,
stack=0x4b10000) [/home/austin/wine-valgrind/libs/wine/port.c:77] in
libwine.so.1 (0xfeb43288)
  17 0x7bc60153 LdrInitializeThunk+0x36d(kernel_start=0x7b46bdae,
unknown2=<couldn't compute location>, unknown3=<couldn't compute location>,
unknown4=<couldn't compute location>)
[/home/austin/wine-valgrind/dlls/ntdll/loader.c:3144] in ntdll (0xfeb43318)
  18 0x7b46c7cb __wine_kernel_init+0x6ae()
[/home/austin/wine-valgrind/dlls/kernel32/process.c:1310] in kernel32
(0xfeb441c8)
  19 0x7bc60913 __wine_process_init+0x132()
[/home/austin/wine-valgrind/dlls/ntdll/loader.c:3353] in ntdll (0xfeb44208)
  20 0x04040795 wine_init+0x148(argc=0x3, argv=0xfeb44744, error="",
error_size=0x400) [/home/austin/wine-valgrind/libs/wine/loader.c:974] in
libwine.so.1 (0xfeb44258)
  21 0x7c000ed5 main+0x145(argc=<couldn't compute location>, argv=0xfeb44744)
[/home/austin/wine-valgrind/loader/main.c:258] in <wine-loader> (0xfeb44698)
  22 0x04274537 __libc_start_main+0xf6() in libc.so.6 (0x00000000)
0x05e41470 fill_ip4routetable+0x240
[/home/austin/wine-valgrind/dlls/wbemprox/builtin.c:2096] in wbemprox: movl   
%edx,0xc(%eax)
2096        table->num_rows = row;
Modules:
Module    Address            Debug info    Name (143 modules)
ELF     4000000- 4025000    Deferred        ld-linux.so.2
ELF     4026000- 4029000    Deferred        vgpreload_core-x86-linux.so
ELF     4029000- 4039000    Deferred        vgpreload_memcheck-x86-linux.so
ELF     4039000- 41f2000    Dwarf           libwine.so.1
ELF     4208000- 4211000    Deferred        libnss_compat.so.2
ELF     4211000- 422b000    Deferred        libnsl.so.1
ELF     422b000- 4238000    Deferred        libnss_nis.so.2
ELF     423f000- 425b000    Deferred        libpthread.so.0
ELF     425c000- 440b000    Dwarf           libc.so.6
ELF     440b000- 4410000    Deferred        libdl.so.2
ELF     4811000- 4865000    Deferred        libm.so.6
ELF     4865000- 488e000    Dwarf           wbemprox_test<elf>
  \-PE     4870000- 488e000    \               wbemprox_test
ELF     48b2000- 48c5000    Deferred        libnss_files.so.2
ELF     4a01000- 4a04000    Deferred        libxshmfence.so.1
ELF     4b10000- 4c89000    Deferred        oleaut32<elf>
  \-PE     4b30000- 4c89000    \               oleaut32
ELF     4d89000- 4f14000    Deferred        ole32<elf>
  \-PE     4da0000- 4f14000    \               ole32
ELF     5114000- 5196000    Deferred        advapi32<elf>
  \-PE     5120000- 5196000    \               advapi32
ELF     5196000- 530e000    Deferred        user32<elf>
  \-PE     51b0000- 530e000    \               user32
ELF     540e000- 5554000    Deferred        gdi32<elf>
  \-PE     5420000- 5554000    \               gdi32
ELF     555c000- 5577000    Deferred        version<elf>
  \-PE     5560000- 5577000    \               version
ELF     557f000- 560f000    Deferred        rpcrt4<elf>
  \-PE     5590000- 560f000    \               rpcrt4
ELF     5661000- 5664000    Deferred        libx11-xcb.so.1
ELF     566c000- 5728000    Deferred        libfreetype.so.6
ELF     592c000- 5945000    Deferred        libz.so.1
ELF     594d000- 595f000    Deferred        libbz2.so.1
ELF     5963000- 59a1000    Deferred        libpng16.so.16
ELF     59a9000- 59ed000    Deferred        libfontconfig.so.1
ELF     59f1000- 5a1c000    Deferred        libexpat.so.1
ELF     5a2c000- 5a38000    Deferred        libxcursor.so.1
ELF     5a40000- 5a47000    Deferred        libxfixes.so.3
ELF     5a57000- 5a5a000    Deferred        libllvmx86info.so.39
ELF     5a77000- 5a9c000    Deferred        imm32<elf>
  \-PE     5a80000- 5a9c000    \               imm32
ELF     5aa4000- 5b44000    Deferred        winex11<elf>
  \-PE     5ab0000- 5b44000    \               winex11
ELF     5b58000- 5b5c000    Deferred        libxinerama.so.1
ELF     5b60000- 5b67000    Deferred        libxxf86vm.so.1
ELF     5b6b000- 5b77000    Deferred        libxrender.so.1
ELF     5b7b000- 5b88000    Deferred        libxrandr.so.2
ELF     5b8c000- 5b90000    Deferred        libxcomposite.so.1
ELF     5b9d000- 5bb2000    Deferred        libxext.so.6
ELF     5bb6000- 5d04000    Deferred        libx11.so.6
ELF     5d08000- 5d35000    Deferred        libxcb.so.1
ELF     5d39000- 5d3e000    Deferred        libxau.so.6
ELF     5d3e000- 5d45000    Deferred        libxdmcp.so.6
ELF     5d49000- 5d65000    Deferred        libbsd.so.0
ELF     5d69000- 5d72000    Deferred        librt.so.1
ELF     5dc0000- 5dc3000    Deferred        libllvmamdgpuinfo.so.39
ELF     5dc3000- 5dd6000    Deferred        libxi.so.6
ELF     5e19000- 5e1d000    Deferred        libxcb-dri3.so.0
ELF     5e1d000- 5e21000    Deferred        libxcb-present.so.0
ELF     5e2b000- 5e6a000    Dwarf           wbemprox<elf>
  \-PE     5e30000- 5e6a000    \               wbemprox
ELF     5e72000- 5eb6000    Deferred        winspool<elf>
  \-PE     5e80000- 5eb6000    \               winspool
ELF     5ebe000- 5eea000    Deferred        iphlpapi<elf>
  \-PE     5ed0000- 5eea000    \               iphlpapi
ELF     5ef2000- 5f1e000    Deferred        dxgi<elf>
  \-PE     5f00000- 5f1e000    \               dxgi
ELF     5f3f000- 5f57000    Deferred        libresolv.so.2
ELF     5f5b000- 60d4000    Deferred        wined3d<elf>
  \-PE     5f70000- 60d4000    \               wined3d
ELF     6608000- 6641000    Deferred        ws2_32<elf>
  \-PE     6610000- 6641000    \               ws2_32
ELF     6679000- 6683000    Deferred        libdrm_nouveau.so.2
ELF     668e000- 6713000    Deferred        libcups.so.2
ELF     6813000- 6968000    Deferred        libgnutls.so.30
ELF     6c68000- 6dd8000    Deferred        libunistring.so.2
ELF     6dd8000- 6ded000    Deferred        libtasn1.so.6
ELF     6ded000- 6e2c000    Deferred        libnettle.so.6
ELF     6e2c000- 6e63000    Deferred        libhogweed.so.4
ELF     6e63000- 6ed9000    Deferred        libgmp.so.10
ELF     6ed9000- 6ef6000    Deferred        libidn2.so.0
ELF     6f46000- 6f4c000    Deferred        libtxc_dxtn.so
ELF     6f77000- 6fec000    Deferred        libgl.so.1
ELF     6fec000- 6ff4000    Deferred        libxcb-sync.so.1
ELF     6ff4000- 702a000    Deferred        libglapi.so.0
ELF     702e000- 7032000    Deferred        libxdamage.so.1
ELF     7036000- 7053000    Deferred        libxcb-glx.so.0
ELF     7057000- 705d000    Deferred        libxcb-dri2.so.0
ELF     705d000- 7071000    Deferred        libdrm.so.2
ELF     7075000- 7dfa000    Deferred        radeonsi_dri.so
ELF     8165000- 818c000    Deferred        libdrm_intel.so.1
ELF     818c000- 819a000    Deferred        libdrm_radeon.so.1
ELF     819a000- 81a6000    Deferred        libdrm_amdgpu.so.1
ELF     81aa000- 81c6000    Deferred        libelf.so.1
ELF     81ea000- 81f9000    Deferred        libllvmx86utils.so.39
ELF     891f000- 8a8a000    Deferred        libllvmx86disassembler.so.39
ELF     8a8a000- 8b3e000    Deferred        libllvmx86asmparser.so.39
ELF     8b3e000- 8e1c000    Deferred        libllvmx86codegen.so.39
ELF     931c000- 9376000    Deferred        libllvmx86asmprinter.so.39
ELF     937e000- 9392000    Deferred        libllvmmcjit.so.39
ELF     9396000- 93c0000    Deferred        libllvmexecutionengine.so.39
ELF     93c0000- 9435000    Deferred        libllvmruntimedyld.so.39
ELF     943d000- 9446000    Deferred        libllvmmcdisassembler.so.39
ELF     9636000- 97be000    Deferred        libllvmx86desc.so.39
ELF     97be000- 97e2000    Deferred        libllvmamdgpudisassembler.so.39
ELF     97e2000- 9989000    Deferred        libllvmamdgpucodegen.so.39
ELF     9aa5000- 9ad5000    Deferred        libllvmlinker.so.39
ELF     9add000- 9ae3000    Deferred        libllvmirreader.so.39
ELF     a298000- a2ae000    Deferred        libllvmtarget.so.39
ELF     a811000- a81d000    Deferred        libllvmamdgpuutils.so.39
ELF     a98e000- ac91000    Deferred        libllvmselectiondag.so.39
ELF     aec2000- afdf000    Deferred        libllvmipo.so.39
ELF     b109000- b1ea000    Deferred        libllvmvectorize.so.39
ELF     b2ea000- b32f000    Deferred        libllvmmcparser.so.39
ELF     b6d7000- b751000    Deferred        libllvmobject.so.39
ELF     b751000- b7b5000    Deferred        libllvmasmparser.so.39
ELF     b7b5000- b89b000    Deferred        libllvmasmprinter.so.39
ELF     bb54000- bbaa000    Deferred        libllvmdebuginfocodeview.so.39
ELF     bbaa000- c10d000    Deferred        libllvmcodegen.so.39
ELF     c40d000- c72a000    Deferred        libllvmscalaropts.so.39
ELF     c72a000- c778000    Deferred        libllvmbitwriter.so.39
ELF     c778000- c7dc000    Deferred        libllvmbitreader.so.39
ELF     ce1c000- cf19000    Deferred        libllvminstcombine.so.39
ELF     cf19000- cfed000    Deferred        libllvminstrumentation.so.39
ELF     d00d000- d019000    Deferred        libpciaccess.so.0
ELF     d40b000- d456000    Deferred        libllvmprofiledata.so.39
ELF     dcff000- deda000    Deferred        libllvmtransformutils.so.39
ELF     e0da000- e10c000    Deferred        libllvmamdgpuasmprinter.so.39
ELF     e315000- e718000    Deferred        libllvmanalysis.so.39
ELF     ec18000- ec93000    Deferred        libllvmamdgpuasmparser.so.39
ELF     ec93000- ed92000    Deferred        libllvmamdgpudesc.so.39
ELF     ed92000- ee5e000    Deferred        libllvmmc.so.39
ELF     ee5e000- ee79000    Deferred        libgcc_s.so.1
ELF     ee79000- eed3000    Deferred        libncurses.so.6
ELF     f8dc000- fc1a000    Deferred        libllvmcore.so.39
ELF     fd1a000- fe55000    Deferred        libllvmsupport.so.39
ELF    7a800000-7a942000    Deferred        opengl32<elf>
  \-PE    7a820000-7a942000    \               opengl32
ELF    7b400000-7b7fb000    Dwarf           kernel32<elf>
  \-PE    7b410000-7b7fb000    \               kernel32
ELF    7bc00000-7bd10000    Dwarf           ntdll<elf>
  \-PE    7bc10000-7bd10000    \               ntdll
ELF    7c000000-7c004000    Dwarf           <wine-loader>
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
    0000000c    0
    0000016e    0
    00000093    0
    00000026    0
    00000023    0
    0000001e    0
    00000018    0
    00000013    0
    00000010    0
    0000000f    0
00000011 winedevice.exe
    0000001d    0
    00000017    0
    00000016    0
    00000012    0
0000001b plugplay.exe
    00000020    0
    0000001f    0
    0000001c    0
00000021 winedevice.exe
    0000002b    0
    00000025    0
    00000024    0
    00000022    0
00000029 explorer.exe
    0000002e    0
    0000002d    0
    0000002c    0
    0000002a    0
0000002f winemine.exe
    00000030    0
00000091 rpcss.exe
    00000097    0
    00000096    0
    00000095    0
    00000094    0
    00000092    0
00000120 svchost.exe
    00000184    0
    00000167    0
    00000178    0
    0000016c    0
    00000169    0
    0000011e    0
00000019 svchost.exe
    000001fe    0
    000001e4    0
    000001da    0
    00000009    0
0000014f (D) Z:\home\austin\wine-valgrind\dlls\wbemprox\tests\wbemprox_test.exe
    00000139    0 <==
System information:
    Wine build: wine-2.12-1-ge307ac2aaf
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 4.9.33-vanilla-workstation-3

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list