codegooglecom / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Crash on Mingw32 Windows build #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile the libproxy on mingw32 on openSuSE
2. try to run proxy.exe passing "http://www.google.com" as parameter.
3. the program crashes giving following debug info
4. I tracked down the problem: its observed in:
px_module_manager_free(pxModuleManager *self) function 
in the following line:
       px_array_free(self->dlmodules);

----

Crash:
wine: Unhandled page fault on read access to 0x11687018 at address 0x116858
(thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x11687018 in 32-bit code
(0x00116858).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:00116858 ESP:0062fe94 EBP:00401655 EFLAGS:00210216(   - 00      -RIAP1)
 EAX:00000000 EBX:00116870 ECX:7bc98d24 EDX:0000000c
 ESI:00000002 EDI:0062feb8
Stack dump:
0x0062fe94:  00110476 00117288 7ef26ff4 7ef2d2c8
0x0062fea4:  00110438 0062fed0 7b8c5ff4 00401130
0x0062feb4:  7ffdf000 0062fef8 004010b6 7b8c5ff4
0x0062fec4:  00401130 0062fef8 004010b6 00000002
0x0062fed4:  00110438 00117288 ffffffff 0062feec
0x0062fee4:  00000000 00000000 00000000 00114778
Backtrace:
=>1 0x00116858 (0x00401655)
  2 0xe8004080 (0xe82404c7)
  3 0x00000000 (0x00000000)
0x00116858: cmpb        $0x0,0x11687000(%edx,%edx,1)
Modules:
Module  Address                 Debug info      Name (55 modules)
PE        400000-  422000       Deferred        proxy
PE      10000000-10010000       Deferred        pthreadgc2
PE      658c0000-658f0000       Deferred        libproxy-0
ELF     7b800000-7b94e000       Deferred        kernel32<elf>
  \-PE  7b820000-7b94e000       \               kernel32
ELF     7bc00000-7bcb5000       Deferred        ntdll<elf>
  \-PE  7bc10000-7bcb5000       \               ntdll
ELF     7bf00000-7bf04000       Deferred        <wine-loader>
ELF     7df57000-7df5b000       Deferred        libnss_mdns4_minimal.so.2
ELF     7dfaa000-7dfc0000       Deferred        midimap<elf>
  \-PE  7dfb0000-7dfc0000       \               midimap
ELF     7dfc0000-7dfca000       Deferred        librt.so.1
ELF     7dfca000-7e09c000       Deferred        libasound.so.2
ELF     7e0a3000-7e0aa000       Deferred        libnss_dns.so.2
ELF     7e0aa000-7e0d4000       Deferred        msacm32<elf>
  \-PE  7e0b0000-7e0d4000       \               msacm32
ELF     7e0d4000-7e0e0000       Deferred        libnss_files.so.2
ELF     7e0e0000-7e0eb000       Deferred        libnss_nis.so.2
ELF     7e0eb000-7e104000       Deferred        libnsl.so.1
ELF     7e104000-7e10d000       Deferred        libnss_compat.so.2
ELF     7e142000-7e14b000       Deferred        libkrb5support.so.0
ELF     7e14b000-7e182000       Deferred        libcrypt.so.1
ELF     7e182000-7e2e9000       Deferred        libcrypto.so.0.9.8
ELF     7e2e9000-7e332000       Deferred        libssl.so.0.9.8
ELF     7e332000-7e358000       Deferred        libk5crypto.so.3
ELF     7e358000-7e3f7000       Deferred        libkrb5.so.3
ELF     7e3f7000-7e424000       Deferred        libgssapi_krb5.so.2
ELF     7e424000-7e45f000       Deferred        libcups.so.2
ELF     7e460000-7e479000       Deferred        msacm32<elf>
  \-PE  7e470000-7e479000       \               msacm32
ELF     7e557000-7e57f000       Deferred        libexpat.so.1
ELF     7e57f000-7e5b0000       Deferred        libfontconfig.so.1
ELF     7e5b0000-7e5c5000       Deferred        libz.so.1
ELF     7e5c5000-7e646000       Deferred        libfreetype.so.6
ELF     7e64c000-7e650000       Deferred        libkeyutils.so.1
ELF     7e660000-7e6f9000       Deferred        winmm<elf>
  \-PE  7e670000-7e6f9000       \               winmm
ELF     7ea6d000-7ea83000       Deferred        libresolv.so.2
ELF     7eb11000-7ebbc000       Deferred        gdi32<elf>
  \-PE  7eb20000-7ebbc000       \               gdi32
ELF     7ebbc000-7ed1c000       Deferred        user32<elf>
  \-PE  7ebe0000-7ed1c000       \               user32
ELF     7ee46000-7eea0000       Deferred        advapi32<elf>
  \-PE  7ee50000-7eea0000       \               advapi32
ELF     7eea0000-7eecf000       Deferred        ws2_32<elf>
  \-PE  7eeb0000-7eecf000       \               ws2_32
ELF     7eecf000-7ef42000       Deferred        msvcrt<elf>
  \-PE  7eee0000-7ef42000       \               msvcrt
ELF     7efbd000-7efe6000       Deferred        libm.so.6
ELF     7efe8000-7efec000       Deferred        libcom_err.so.2
ELF     f7ca4000-f7ca9000       Deferred        libdl.so.2
ELF     f7ca9000-f7e05000       Deferred        libc.so.6
ELF     f7e05000-f7e1f000       Deferred        libpthread.so.0
ELF     f7e39000-f7f71000       Deferred        libwine.so.1
ELF     f7f72000-f7f92000       Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) Z:\usr\i686-pc-mingw32\sys-root\mingw\bin\proxy.exe
        00000009    0 <==
0000000c
        00000013    0
        00000012    0
        0000000e    0
        0000000d    0
0000000f
        00000015    0
        00000014    0
        00000011    0
        00000010    0
Backtrace:
=>1 0x00116858 (0x00401655)
  2 0xe8004080 (0xe82404c7)
  3 0x00000000 (0x00000000)

Original issue reported on code.google.com by mital.d....@gmail.com on 29 Jun 2009 at 7:49

GoogleCodeExporter commented 9 years ago
this looks very much like a duplicate of issue #54. Both crashes are in
px_array_free, while unloading the webkit module. (OS independent)

Original comment by dominiqu...@gmail.com on 29 Jun 2009 at 8:48

GoogleCodeExporter commented 9 years ago
Are we sure that this bug is a result of unloading webkit?

Original comment by npmccallum@gmail.com on 29 Jun 2009 at 1:37

GoogleCodeExporter commented 9 years ago
not exactly sure, no. It was a pure assumption by myself (which might be worth
following, as the webkit needs to be solved for 0.3, and mingw32 is a 
'nice-to-have'.
So we should just see it along the line if it was the same :-)

Original comment by dominiqu...@gmail.com on 1 Jul 2009 at 6:29

GoogleCodeExporter commented 9 years ago
Please test against trunk.

Original comment by npmccallum@gmail.com on 22 Jan 2010 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by npmccallum@gmail.com on 22 Jan 2010 at 9:04

GoogleCodeExporter commented 9 years ago
I'm pretty sure this crash is now gone in the C++ rewrite.

Original comment by npmccallum@gmail.com on 17 Feb 2010 at 1:38