[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Access violation during commit with JavaHL.

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-05-10 20:01:41 CEST

I took a brief tour through JavaHL history, but the only possibly
related change which jumped out at me was:

------------------------------------------------------------------------
r13090 | pmayweg | 2005-02-20 10:33:31 -0800 (Sun, 20 Feb 2005) | 16 lines

Adding the JNIUtil::preprocessPath method to take of care escaping uri pathes,
converting the path to the internal representation etc. This method is used
by the Path and Target class. Converting all uses of pathes to use either of
these classes.
 * subversion/bindings/java/javahl/native/JNIUtil.cpp
 * subversion/bindings/java/javahl/native/JNIUtil.h
    new method JNIUtil::preprocessPath
 * subversion/bindings/java/javahl/native/Targets.cpp
 * subversion/bindings/java/javahl/native/Targets.h
    new method error_occured to check for error in JNIUtil::preprocessPath
 * subversion/bindings/java/javahl/native/Path.h
 * subversion/bindings/java/javahl/native/Path.cpp
    new method error_occured to check for error in JNIUtil::preprocessPath
 * subversion/bindings/java/javahl/native/SVNClient.cpp
    tansfering all pathes and urles to either Path or Target to cleanup.

------------------------------------------------------------------------

...which could be related to the apr_xlate_conv_buffer(). Hard to
say, especially since changes to the core libraries can have just as
big an impact on the behavior of the bindings.

On Wed, 10 May 2006, Lieven Govaerts wrote:

> Hi,
>
>
> one of my colleagues had a problem when committing the results of a merge. We
> provides our teams with scripts to merge branches (and store the rev. nrs) and
> when he used that script to commit the working copy the Java VM crashed with an
> Access Violation.
>
> The scripts are developed in Java and use JavaHL as their interface to
> Subversion. We use the JavaHL library that's included with svn 1.2.3.
>
> Attached to this mail is the log of the VM crash.
>
> Unfortunately, the next time he ran the script the commit worked fine, so I
> can't reproduce it anymore.
>
> Maybe someone has seen this problem already and can inform me if it's solved in
> 1.3.1?
>
> thanks,
>
> Lieven.
>
> ----------------------------------------------------------
> C:\Projects\H026>commitintegrate MAINT_V0002.02.00
> INFO Committing integration into MAINT_V0002.02.00
>
> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
> PC=0x6EE6BF5E
> Function=apr_xlate_conv_buffer+0x9E
> Library=C:\Program Files\Subversion\bin\libaprutil.dll
>
> Current Java thread:
> at org.tigris.subversion.javahl.SVNClient.commit(Native Method)
> at org.tigris.subversion.javahl.SVNClient.commit(SVNClient.java:418)
> at
> be.post.processes.svn.merge.SVNClientWrapper.commit(SVNClientWrapper.java:265)
> at be.post.processes.svn.merge.Merge.commitIntegrate(Merge.java:293)
> at be.post.processes.svn.merge.MergeTask.execute(MergeTask.java:48)
> at be.post.processes.svn.merge.PstMerge.dispatch(PstMerge.java:101)
> at be.post.processes.svn.merge.PstMerge.main(PstMerge.java:30)
>
> Dynamic libraries:
> 0x00400000 - 0x00406000 C:\Java\j2sdk1.4.2_02\bin\java.exe
> 0x77F80000 - 0x77FFC000 C:\WINNT\system32\ntdll.dll
> 0x7C2D0000 - 0x7C335000 C:\WINNT\system32\ADVAPI32.dll
> 0x7C570000 - 0x7C623000 C:\WINNT\system32\KERNEL32.dll
> 0x77D30000 - 0x77DA8000 C:\WINNT\system32\RPCRT4.dll
> 0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll
> 0x08000000 - 0x08138000 C:\Java\j2sdk1.4.2_02\jre\bin\client\jvm.dll
> 0x77E10000 - 0x77E79000 C:\WINNT\system32\USER32.dll
> 0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.dll
> 0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
> 0x10000000 - 0x10007000 C:\Java\j2sdk1.4.2_02\jre\bin\hpi.dll
> 0x007C0000 - 0x007CE000 C:\Java\j2sdk1.4.2_02\jre\bin\verify.dll
> 0x007D0000 - 0x007E9000 C:\Java\j2sdk1.4.2_02\jre\bin\java.dll
> 0x007F0000 - 0x007FD000 C:\Java\j2sdk1.4.2_02\jre\bin\zip.dll
> 0x18470000 - 0x18561000 C:\Program Files\merge\lib\libsvnjavahl-1.dll
> 0x18570000 - 0x18582000 C:\Program Files\Subversion\bin\intl3_svn.dll
> 0x6EEC0000 - 0x6EEE1000 C:\Program Files\Subversion\bin\libapr.dll
> 0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.dll
> 0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL
> 0x74FF0000 - 0x75002000 C:\WINNT\system32\MSWSOCK.dll
> 0x77980000 - 0x779A4000 C:\WINNT\system32\DNSAPI.DLL
> 0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.dll
> 0x18590000 - 0x18696000 C:\Program Files\Subversion\bin\LIBEAY32.dll
> 0x186A0000 - 0x186D2000 C:\Program Files\Subversion\bin\SSLEAY32.dll
> 0x780C0000 - 0x78121000 C:\WINNT\system32\MSVCP60.dll
> 0x186E0000 - 0x1878D000 C:\Program Files\Subversion\bin\libdb43.dll
> 0x719B0000 - 0x719B8000 C:\WINNT\system32\SHFOLDER.dll
> 0x6EE60000 - 0x6EE89000 C:\Program Files\Subversion\bin\libaprutil.dll
> 0x6EE50000 - 0x6EE59000 C:\Program Files\Subversion\bin\libapriconv.dll
> 0x782C0000 - 0x782CC000 C:\WINNT\System32\rnr20.dll
> 0x77340000 - 0x77353000 C:\WINNT\system32\iphlpapi.dll
> 0x77520000 - 0x77525000 C:\WINNT\system32\ICMP.DLL
> 0x77320000 - 0x77337000 C:\WINNT\system32\MPRAPI.DLL
> 0x75150000 - 0x75160000 C:\WINNT\system32\SAMLIB.DLL
> 0x7CDC0000 - 0x7CE13000 C:\WINNT\system32\NETAPI32.DLL
> 0x751C0000 - 0x751C6000 C:\WINNT\system32\NETRAP.dll
> 0x77BF0000 - 0x77C01000 C:\WINNT\system32\NTDSAPI.dll
> 0x77950000 - 0x7797B000 C:\WINNT\system32\WLDAP32.DLL
> 0x7C340000 - 0x7C34F000 C:\WINNT\system32\SECUR32.DLL
> 0x7CE20000 - 0x7CF0F000 C:\WINNT\system32\OLE32.DLL
> 0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.DLL
> 0x773B0000 - 0x773DF000 C:\WINNT\system32\ACTIVEDS.DLL
> 0x77380000 - 0x773A3000 C:\WINNT\system32\ADSLDPC.DLL
> 0x77830000 - 0x7783E000 C:\WINNT\system32\RTUTILS.DLL
> 0x77880000 - 0x7790E000 C:\WINNT\system32\SETUPAPI.DLL
> 0x7C0F0000 - 0x7C154000 C:\WINNT\system32\USERENV.DLL
> 0x774E0000 - 0x77514000 C:\WINNT\system32\RASAPI32.DLL
> 0x774C0000 - 0x774D1000 C:\WINNT\system32\rasman.dll
> 0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.dll
> 0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
> 0x70A70000 - 0x70AD6000 C:\WINNT\system32\SHLWAPI.DLL
> 0x77360000 - 0x77379000 C:\WINNT\system32\DHCPCSVC.DLL
> 0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
> 0x777F0000 - 0x777F5000 C:\WINNT\system32\rasadhlp.dll
> 0x74FD0000 - 0x74FEE000 C:\WINNT\system32\msafd.dll
> 0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
> 0x69BF0000 - 0x69C0D000 C:\WINNT\system32\NTMARTA.DLL
> 0x77800000 - 0x7781E000 C:\WINNT\system32\WINSPOOL.DRV
> 0x76620000 - 0x76631000 C:\WINNT\system32\MPR.DLL
> 0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
> 0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
> 0x76BF0000 - 0x76BFB000 C:\WINNT\system32\PSAPI.DLL
>
> Heap at VM Abort:
> Heap
> def new generation total 576K, used 313K [0x10010000, 0x100b0000, 0x104f0000)
> eden space 512K, 58% used [0x10010000, 0x1005ae10, 0x10090000)
> from space 64K, 22% used [0x10090000, 0x10093988, 0x100a0000)
> to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
> tenured generation total 1408K, used 111K [0x104f0000, 0x10650000,
> 0x14010000)
> the space 1408K, 7% used [0x104f0000, 0x1050bf78, 0x1050c000, 0x10650000)
> compacting perm gen total 4096K, used 1657K [0x14010000, 0x14410000,
> 0x18010000)
> the space 4096K, 40% used [0x14010000, 0x141ae4f0, 0x141ae600, 0x14410000)
>
> Local Time = Mon May 08 12:08:27 2006
> Elapsed Time = 103
> #
> # The exception above was detected in native code outside the VM
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.2_02-b03 mixed mode)
> #
> # An error report file has been saved as hs_err_pid1996.log.
> # Please refer to the file for further information.
> #
>
>
> ****************
> Another exception has been detected while we were handling last error.
> Dumping information about last error:
> ERROR REPORT FILE = hs_err_pid1996.log
> PC = 0x6ee6bf5e
> SIGNAL = -1073741819
> FUNCTION NAME = apr_xlate_conv_buffer
> OFFSET = 0x9E
> LIBRARY NAME = C:\Program Files\Subversion\bin\libaprutil.dll
> Please check ERROR REPORT FILE for further information, if there is any.
> Good bye.

  • application/pgp-signature attachment: stored
Received on Wed May 10 20:02:25 2006

This is an archived mail posted to the Subversion Dev mailing list.