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

Re: r727 doesn't build w/ --disable-shared

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-01-08 14:09:36 CET

On Tue, Jan 08, 2002 at 01:11:38AM -0800, Colin Putney wrote:
 
> I can add a few more data points to this one.
>
> The Bus Error is caused when apr attempts to call a null function
> pointer. Specifically, apr_pvsprintf() calls apr_vformatter(), passing
> it a pointer to psprintf_flush(), which gets called to add bits of
> formatted string to the string buffer. Somehow apr_pvsprintf() passes a
> null pointer, which causes the crash.
>
> Two things I've managed to determine:
>
> 1) This doesn't seem to be related to the fact that psprintf_flush() is
> declared as a static function
>
> 2) configuring for shared libraries (ie, no --disable-shared) doesn't
> fix the problem, but it might affect where the crash occurs.

yeah, i traced it to about this point and then ran out of
patience/time... i don't have the faintest idea why it's happening
though...

> I'm going to play around with it some more tomorrow, but in the
> meantime, here's a gdb backtrace taken from a statically linked svn
> (note the first parameter to apr_vformatter() in frame #1) :
>
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> 0x00000000 in ?? ()
> (gdb) bt
> #0 0x00000000 in ?? ()
> Cannot access memory at address 0x0
> #1 0x00065b3c in apr_vformatter (flush_func=0, vbuff=0xbfffec68,
> fmt=0xc054a " gmt_off %06d)", ap=0xbfffed18 "?\200") at

the problem is that according to what i can read of the source,
flush_func can't ever be 0... compiler bug or corrupted memory? or
i'm just reading the source wrong.

good luck tracking this down. if i develop more time/patience i'll
look into it some more as well.

-garrett

-- 
garrett rooney                     Unix was not designed to stop you from 
rooneg@electricjellyfish.net       doing stupid things, because that would  
http://electricjellyfish.net/      stop you from doing clever things.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:55 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.