bzr 1.6.1/win32: hard crash because wrong libapr.dll is loaded

Kuno Meyer kuno.meyer at gmx.ch
Tue Sep 9 08:37:20 BST 2008


Hi all

I'm not sure where to report the following issue, therefore I use the bazaar mailing list as fall back. (Please let me know if another place would've been more appropriate.)

I wanted to report that the bzr-svn plugin from the 1.6.1 Windows installer has some path problems: The libapr dlls aren't loaded from the local Bazaar directory, but from the concurring SVN installation. Unfortunately, the two DLL versions aren't binary compatible, leading in my case to a NULL pointer access violation and an abrupt termination of the bzr.exe process.

I've attached a WinDbg trace log to illustrate the issue. Please note the last few "ModLoad" lines where DLLs from C:\Program Files\Subversion are processed.

Cheers 
Kuno

-----

CommandLine: "C:\Program Files\Bazaar\bzr.exe" info
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is: 
ModLoad: 00400000 0040a000   image00400000
ModLoad: 7c900000 7c9b0000   ntdll.dll
ModLoad: 7c800000 7c8f5000   C:\WINDOWS\system32\kernel32.dll
ModLoad: 7c340000 7c396000   C:\Program Files\Bazaar\MSVCR71.dll
(1274.14e8): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffde000 ecx=00000003 edx=00000008 esi=00241f48 edi=00241eb4
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000202
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll - 
ntdll!DbgBreakPoint:
7c901230 cc              int     3
0:000> g
ModLoad: 1e000000 1e208000   C:\Program Files\Bazaar\PYTHON25.DLL
ModLoad: 7e410000 7e4a1000   C:\WINDOWS\system32\USER32.dll
ModLoad: 77f10000 77f57000   C:\WINDOWS\system32\GDI32.dll
ModLoad: 77dd0000 77e6b000   C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000   C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 7c9c0000 7d1d7000   C:\WINDOWS\system32\SHELL32.dll
ModLoad: 77c10000 77c68000   C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77f60000 77fd6000   C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 76390000 763ad000   C:\WINDOWS\system32\IMM32.DLL
ModLoad: 773d0000 774d3000   C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
ModLoad: 5d090000 5d12a000   C:\WINDOWS\system32\comctl32.dll
ModLoad: 1d1a0000 1d1b5000   C:\Program Files\Bazaar\lib\_ctypes.pyd
ModLoad: 774e0000 7761d000   C:\WINDOWS\system32\ole32.dll
ModLoad: 77120000 771ab000   C:\WINDOWS\system32\OLEAUT32.dll
ModLoad: 1ea40000 1ea5a000   C:\Program Files\Bazaar\lib\win32file.pyd
ModLoad: 1e7d0000 1e7ec000   C:\Program Files\Bazaar\lib\pywintypes25.dll
ModLoad: 71a50000 71a8f000   C:\WINDOWS\system32\MSWSOCK.dll
ModLoad: 71ab0000 71ac7000   C:\WINDOWS\system32\WS2_32.dll
ModLoad: 71aa0000 71aa8000   C:\WINDOWS\system32\WS2HELP.dll
ModLoad: 76bb0000 76bb5000   C:\WINDOWS\system32\sfc.dll
ModLoad: 76c60000 76c8a000   C:\WINDOWS\system32\sfc_os.dll
ModLoad: 76c30000 76c5e000   C:\WINDOWS\system32\WINTRUST.dll
ModLoad: 77a80000 77b14000   C:\WINDOWS\system32\CRYPT32.dll
ModLoad: 77b20000 77b32000   C:\WINDOWS\system32\MSASN1.dll
ModLoad: 76c90000 76cb8000   C:\WINDOWS\system32\IMAGEHLP.dll
ModLoad: 10000000 1003d000   C:\Program Files\Bazaar\lib\_hashlib.pyd
ModLoad: 0ffd0000 0fff8000   C:\WINDOWS\system32\rsaenh.dll
ModLoad: 1d100000 1d121000   C:\Program Files\Bazaar\lib\_elementtree.pyd
ModLoad: 003b0000 003d1000   C:\Program Files\Bazaar\lib\pyexpat.pyd
ModLoad: 003e0000 003e6000   C:\Program Files\Bazaar\lib\bzrlib._patiencediff_c.pyd
ModLoad: 003f0000 003fd000   C:\Program Files\Bazaar\lib\_socket.pyd
ModLoad: 010f0000 0116a000   C:\Program Files\Bazaar\lib\_ssl.pyd
ModLoad: 71ad0000 71ad9000   C:\WINDOWS\system32\WSOCK32.dll
ModLoad: 01170000 01177000   C:\Program Files\Bazaar\lib\bzrlib._knit_load_data_c.pyd
ModLoad: 01180000 01251000   C:\Program Files\Bazaar\plugins\svn\client.pyd
ModLoad: 6eec0000 6eee1000   C:\Program Files\Bazaar\plugins\svn\libapr.dll
ModLoad: 01260000 01272000   C:\Program Files\Bazaar\plugins\svn\intl3_svn.dll
ModLoad: 13000000 130c4000   C:\Program Files\Bazaar\plugins\svn\libdb44.dll
ModLoad: 76080000 760e5000   C:\WINDOWS\system32\MSVCP60.dll
ModLoad: 6ee60000 6ee89000   C:\Program Files\Bazaar\plugins\svn\libaprutil.dll
ModLoad: 6ee50000 6ee59000   C:\Program Files\Bazaar\plugins\svn\libapriconv.dll
ModLoad: 01280000 01389000   C:\Program Files\Bazaar\plugins\svn\LIBEAY32.dll
ModLoad: 01390000 013c2000   C:\Program Files\Bazaar\plugins\svn\SSLEAY32.dll
ModLoad: 013d0000 0146e000   C:\Program Files\Bazaar\plugins\svn\ra.pyd
ModLoad: 01470000 014d0000   C:\Program Files\Bazaar\plugins\svn\repos.pyd
ModLoad: 015d0000 01620000   C:\Program Files\Bazaar\plugins\svn\wc.pyd
ModLoad: 6e060000 6e066000   C:\Program Files\Subversion\iconv\windows-1252.so
ModLoad: 01e20000 01e29000   C:\Program Files\Subversion\bin\libapriconv-1.dll
ModLoad: 01e30000 01e50000   C:\Program Files\Subversion\bin\libapr-1.dll
ModLoad: 6ee40000 6ee45000   C:\Program Files\Subversion\iconv\_tbl_simple.so
ModLoad: 01e20000 01e29000   C:\Program Files\Subversion\bin\libapriconv-1.dll
ModLoad: 01e30000 01e50000   C:\Program Files\Subversion\bin\libapr-1.dll
(1274.14e8): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=014d80c0 ebx=00000000 ecx=00000000 edx=00000000 esi=014dc2a0 edi=00000000
eip=01e37bfc esp=001284d0 ebp=001284dc iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00210246
*** WARNING: Unable to verify checksum for C:\Program Files\Subversion\bin\libapr-1.dll
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Program Files\Subversion\bin\libapr-1.dll - 
libapr_1!apr_pool_create_ex+0x3c:
01e37bfc 8b03            mov     eax,dword ptr [ebx]  ds:0023:00000000=????????

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the bazaar mailing list