Crash when using unixODBC and Wine

Linux specific forum
User avatar
the.weavster
Addict
Addict
Posts: 1537
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Crash when using unixODBC and Wine

Post by the.weavster »

I have a program which runs fine on Windows 7 but doesn't run with Wine (Linux Mint Mate 17.3 32-bit). I get this error:

fixme:thread:start_thread Started native thread 0000002d
*** Error in `helper.exe': double free or corruption (fasttop): 0x7e1ca8a0 ***
wine: Assertion failed at address 0xb777dcb0 (thread 002c), starting debugger...


And from the debugger:

Unhandled exception: assertion failed in 32-bit code (0xb777dcb0).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:b777dcb0 ESP:0032f8f4 EBP:0032fbb8 EFLAGS:00000206( - -- I - -P- )
EAX:00000000 EBX:00000fc5 ECX:00000fc5 EDX:00000006
ESI:0000004f EDI:b7565000
Stack dump:
0x0032f8f4: 0032fbb8 00000006 00000fc5 b73e9607
0x0032f904: b7565000 0032f9a4 b73eca33 00000006
0x0032f914: 0032f924 00000000 b75abf3d b7743000
0x0032f924: 00000020 00000000 00000000 00000000
0x0032f934: 00000000 00000000 00000000 00000000
0x0032f944: 00000000 00000000 00000000 00000000
Backtrace:
=>0 0xb777dcb0 __kernel_vsyscall+0x10() in [vdso].so (0x0032fbb8)
1 0xb73e9607 gsignal+0x46() in libc.so.6 (0x0032fbb8)
2 0xb73eca33 abort+0x142() in libc.so.6 (0x0032fbb8)
3 0xb7423e53 in libc.so.6 (+0x68e52) (0x0032fbb8)
4 0xb742e33a in libc.so.6 (+0x73339) (0x0032fe04)
5 0xb742efad in libc.so.6 (+0x73fac) (0x0032fe04)
6 0x7e512c45 in libodbc.so.1 (+0x49c44) (0x0032fe04)
7 0x7e4d9f73 SQLDisconnect+0x42() in libodbc.so.1 (0x0032fe04)
8 0x7e9b3cb5 SQLDisconnect+0x34() in odbc32 (0x0032fe04)
9 0x0040d394 in helper (+0xd393) (0x0032fe1c)
10 0x0040dd45 in helper (+0xdd44) (0x0032fe40)
11 0x00401a29 in helper (+0x1a28) (0x00422844)
12 0x0053c260 (0x0053c238)
13 0x00610074 (0x00610064)
0xb777dcb0 __kernel_vsyscall+0x10 in [vdso].so: popl %ebp
Modules:
Module Address Debug info Name (59 modules)
PE 400000- 428000 Export helper
ELF 7b800000-7ba5b000 Deferred kernel32<elf>
\-PE 7b810000-7ba5b000 \ kernel32
ELF 7bc00000-7bcdb000 Deferred ntdll<elf>
\-PE 7bc10000-7bcdb000 \ ntdll
ELF 7bf00000-7bf04000 Deferred <wine-loader>
ELF 7e0a1000-7e16e000 Deferred libgds.so
ELF 7e27a000-7e297000 Deferred libgcc_s.so.1
ELF 7e37f000-7e3b0000 Deferred libcrypt.so.1
ELF 7e3c7000-7e4c9000 Deferred libodbcfb.so
ELF 7e4c9000-7e537000 Dwarf libodbc.so.1
ELF 7e537000-7e54a000 Deferred libodbcinst.so.1
ELF 7e54a000-7e54e000 Deferred iso8859-1.so
ELF 7e54e000-7e554000 Deferred libxfixes.so.3
ELF 7e554000-7e55f000 Deferred libxcursor.so.1
ELF 7e55f000-7e56f000 Deferred libxi.so.6
ELF 7e56f000-7e573000 Deferred libxcomposite.so.1
ELF 7e573000-7e57e000 Deferred libxrandr.so.2
ELF 7e57e000-7e589000 Deferred libxrender.so.1
ELF 7e589000-7e58f000 Deferred libxxf86vm.so.1
ELF 7e58f000-7e593000 Deferred libxinerama.so.1
ELF 7e593000-7e59a000 Deferred libxdmcp.so.6
ELF 7e59a000-7e59e000 Deferred libxau.so.6
ELF 7e59e000-7e5c0000 Deferred libxcb.so.1
ELF 7e5c0000-7e6f4000 Deferred libx11.so.6
ELF 7e6f4000-7e707000 Deferred libxext.so.6
ELF 7e711000-7e71c000 Deferred libltdl.so.7
ELF 7e71e000-7e7b0000 Deferred winex11<elf>
\-PE 7e730000-7e7b0000 \ winex11
ELF 7e811000-7e83a000 Deferred libexpat.so.1
ELF 7e83a000-7e875000 Deferred libfontconfig.so.1
ELF 7e875000-7e89d000 Deferred libpng12.so.0
ELF 7e89d000-7e8b7000 Deferred libz.so.1
ELF 7e8b7000-7e957000 Deferred libfreetype.so.6
ELF 7e957000-7e979000 Deferred libtinfo.so.5
ELF 7e979000-7e99e000 Deferred libncurses.so.5
ELF 7e99e000-7e9c6000 Dwarf odbc32<elf>
\-PE 7e9a0000-7e9c6000 \ odbc32
ELF 7e9c6000-7e9e0000 Deferred version<elf>
\-PE 7e9d0000-7e9e0000 \ version
ELF 7e9e0000-7ea52000 Deferred advapi32<elf>
\-PE 7e9f0000-7ea52000 \ advapi32
ELF 7ea52000-7eb6f000 Deferred gdi32<elf>
\-PE 7ea60000-7eb6f000 \ gdi32
ELF 7eb6f000-7ecc9000 Deferred user32<elf>
\-PE 7eb80000-7ecc9000 \ user32
ELF 7ecc9000-7ed71000 Deferred msvcrt<elf>
\-PE 7ece0000-7ed71000 \ msvcrt
ELF 7ef71000-7ef7e000 Deferred libnss_files.so.2
ELF 7ef7e000-7ef8a000 Deferred libnss_nis.so.2
ELF 7ef8a000-7efa3000 Deferred libnsl.so.1
ELF 7efa3000-7efe9000 Deferred libm.so.6
ELF b73b1000-b73ba000 Deferred libnss_compat.so.2
ELF b73bb000-b7569000 Dwarf libc.so.6
ELF b7569000-b756e000 Deferred libdl.so.2
ELF b756f000-b758b000 Deferred libpthread.so.0
ELF b75a2000-b7757000 Dwarf libwine.so.1
ELF b7759000-b777b000 Deferred ld-linux.so.2
ELF b777d000-b777e000 Dwarf [vdso].so


This is a companion app to another which was created with a different compiler, the master app is using the ODBC datasource with Wine without any problems.

If anybody can make sense of that output and point me in the right direction I'd be grateful.