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

Re: Subversion 1.4.0 crashes in libapr.dll on Windows

From: Kenneth Porter <shiva_at_sewingwitch.com>
Date: 2006-10-27 21:21:16 CEST

--On Friday, October 27, 2006 10:04 AM -0400 Garrett Rooney
<rooneg@electricjellyfish.net> wrote:

> Could you possibly get a backtrace? The fact that the error occurs in
> the apr hash code is interesting, but in order for that information to
> be really useful we'd need to know which hash it's talking about, what
> is going on when it gets to this point, etc.

I just shut down the debugger so I could get work done. ;)

I had imported a large directory tree and the "committed" message was about
to be printed. This is happening in the code that gets a translation handle
to convert from UTF8 to CP1252 to print the message to the console. The key
pointer in the hash entry was pointing to unallocated memory after the hash
table. From what I could discover statically, the key is allocated from the
same pool using the APR strcat function. I wasn't able to discover where it
would get freed and thought perhaps it was garbage-collected with the pool
destruction.

Meanwhile, I used gflags.exe to request pageheap processing on svn.exe, so
guard pages will get put around kernel-level allocations and kernel-level
frees will happen immediately. This may help to uncover where the premature
free is happening.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Oct 27 21:21:36 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.