You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Julian Fitzell <ju...@beta4.com> on 2002/07/25 20:10:02 UTC

Core dump

Hi,

I seem to be having trouble compiling a working client.  The server 
compiles fine and I can connect to it from the windows binary but both 
the alpha tarball and a HEAD checkout (with the windows version) drop 
core as soon as svn is run (even with no parameters).

The only error during the compile is a recurring:

libtool: link: warning: `/usr/lib/libgdbm.la' seems to be moved

Which I have never seen before but can't figure out the origin of.  The 
file is at that location and I know of nothing that would have moved it 
recently.

I tried compiling a client with "--enable-maintainer-mode 
--disable-shared --enable-debug" but it still drops core and a backtrace 
in gdb doesn't give any symbols... is --enable-debug the correct flag? 
It's what's listed in the configure help screen...

I'm using HEAD apache2, apr, apr-util.

It's a RedHat 7.2 box and software versions as follows:

autoconf: 2.52d
automake: 1.5
libtool: 1.4 (1.920 2001/04/24 23:26:18)


Anyone have any ideas?  I'd like to eliminate the libtool warning just 
in case but I can't figure out how.  And then beyond that... I'm out of 
ideas.

Thanks,

Julian
-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Justin Erenkrantz <je...@apache.org>.
On Fri, Jul 26, 2002 at 02:25:05AM +0200, Sander Striker wrote:
> > [julian@cable static-debug-client-build]$ ldd /usr/local/svnstatic/bin/svn
> >          libdb-4.0.so => /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so 
> > (0x4001f000)
> >          libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400a5000)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> What's this doing here?
> Did you pass --with-dbm=db4 to configure?
> And --with-berkeley-db=/path/to/bdb ?

That's probably from the apr-util depedency.  If gdbm is
available, it'll link against it.  So, the gdbm isn't out of the
ordinary.  -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Julian Fitzell <ju...@beta4.com>.
Sander Striker wrote:
>>From: Julian Fitzell [mailto:julian@beta4.com]
>>Sent: 26 July 2002 02:06
> 
> [...]
> 
>>>Try running
>>>
>>>$ ldd /usr/local/svnstatic/bin/svn
>>>
>>>to see which dynamic libraries are being used, are they the ones you
>>>expect?
>>
>>Nothing terribly strange:
>>
>>[julian@cable static-debug-client-build]$ ldd /usr/local/svnstatic/bin/svn
>>         libdb-4.0.so => /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so 
>>(0x4001f000)
>>         libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400a5000)
> 
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> What's this doing here?
> Did you pass --with-dbm=db4 to configure?
> And --with-berkeley-db=/path/to/bdb ?
> 

umm..  I passed both of those to apache when configuring.  Originally, I 
passed --with-berkeley-db to subversion though I've stopped passing it 
at the moment because I've been using just the simple 
--enable-maintainer-mode --disable-shared command line


Julian

-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: Core dump

Posted by Sander Striker <st...@apache.org>.
> From: Julian Fitzell [mailto:julian@beta4.com]
> Sent: 26 July 2002 02:06
[...]
> > Try running
> > 
> > $ ldd /usr/local/svnstatic/bin/svn
> > 
> > to see which dynamic libraries are being used, are they the ones you
> > expect?
> 
> Nothing terribly strange:
> 
> [julian@cable static-debug-client-build]$ ldd /usr/local/svnstatic/bin/svn
>          libdb-4.0.so => /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so 
> (0x4001f000)
>          libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400a5000)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

What's this doing here?
Did you pass --with-dbm=db4 to configure?
And --with-berkeley-db=/path/to/bdb ?

>          libm.so.6 => /lib/libm.so.6 (0x400ac000)
>          libcrypt.so.1 => /lib/libcrypt.so.1 (0x400ce000)
>          libnsl.so.1 => /lib/libnsl.so.1 (0x400fc000)
>          libdl.so.2 => /lib/libdl.so.2 (0x40113000)
>          libz.so.1 => /usr/lib/libz.so.1 (0x40117000)
>          libpthread.so.0 => /lib/libpthread.so.0 (0x40125000)
>          libc.so.6 => /lib/libc.so.6 (0x4013c000)
>          /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> Obviously there used to be more when it wasn't built static but they 
> didn't seem wrong then either.

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Julian Fitzell <ju...@beta4.com>.
Philip Martin wrote:
> Julian Fitzell <ju...@beta4.com> writes:
[...]
> 
> This indicates stack corruption. You have got to stop before this.
> Try setting a breakpoint on main before running svn.  If it stops
> exaimine the stack and see if it looks OK. Then 'step' or 'next' set
> another breakpoint and continue and keep examining the stack until it
> becomes corrupt.

Well, that was useful advice and has generated the weirdest data yet...

[julian@cable static-debug-client-build]$ gdb /usr/local/svnstatic/bin/svn

[...blah blah blah...]

(gdb) break main
Breakpoint 1 at 0x804dfb2: file 
../repos/subversion/clients/cmdline/main.c, line 844.
(gdb) s
The program is not being run.
(gdb) r
Starting program: /usr/local/svnstatic/bin/svn

Program received signal SIGSEGV, Segmentation fault.
0x4000acd0 in ?? ()
(gdb) bt
#0  0x4000acd0 in ?? ()
#1  0x40002902 in ?? ()
#2  0x4000f8f6 in ?? ()
#3  0x40002332 in ?? ()
#4  0x4000217f in ?? ()


I'd figure my whole system is hosed except I just compiled apache2 and a 
new php and they both worked just fine.


> Try running
> 
> $ ldd /usr/local/svnstatic/bin/svn
> 
> to see which dynamic libraries are being used, are they the ones you
> expect?

Nothing terribly strange:

[julian@cable static-debug-client-build]$ ldd /usr/local/svnstatic/bin/svn
         libdb-4.0.so => /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so 
(0x4001f000)
         libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400a5000)
         libm.so.6 => /lib/libm.so.6 (0x400ac000)
         libcrypt.so.1 => /lib/libcrypt.so.1 (0x400ce000)
         libnsl.so.1 => /lib/libnsl.so.1 (0x400fc000)
         libdl.so.2 => /lib/libdl.so.2 (0x40113000)
         libz.so.1 => /usr/lib/libz.so.1 (0x40117000)
         libpthread.so.0 => /lib/libpthread.so.0 (0x40125000)
         libc.so.6 => /lib/libc.so.6 (0x4013c000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Obviously there used to be more when it wasn't built static but they 
didn't seem wrong then either.

> 
>>
>>
>>I attached my config.log just for kicks in case it shows anybody something.
>>
> 
> 
> [snip]
> 
> configure:8357: gcc -o conftest   -g -O2 -pthread  -DNEON_ZLIB   -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE     -L/usr/local/BerkeleyDB.4.0/lib -L/software/builds/apache2/srclib/apr-util/xml/expat/lib conftest.c  >&5
> 
> Hmm, what's in /software/builds/apache2/srclib/apr-util/xml/expat/lib?

That's where I built apache2 from... that could have been the problem 
except we've now eliminated that by moving my installed apache2 out of 
the way so configure can't find apr-config and apu-config.

Thanks for your help.

-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Philip Martin <ph...@codematters.co.uk>.
Julian Fitzell <ju...@beta4.com> writes:


> [julian@cable static-debug-client-build]$ gdb /usr/local/svnstatic/bin/svn
> GNU gdb 5.0
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> 
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) r
> Starting program: /usr/local/svnstatic/bin/svn
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x4000acd0 in ?? ()
> (gdb) bt
> #0  0x4000acd0 in ?? ()
> #1  0x40002902 in ?? ()
> #2  0x4000f8f6 in ?? ()
> #3  0x40002332 in ?? ()
> #4  0x4000217f in ?? ()

This indicates stack corruption. You have got to stop before this.
Try setting a breakpoint on main before running svn.  If it stops
exaimine the stack and see if it looks OK. Then 'step' or 'next' set
another breakpoint and continue and keep examining the stack until it
becomes corrupt.

Try running

$ ldd /usr/local/svnstatic/bin/svn

to see which dynamic libraries are being used, are they the ones you
expect?

> 
> 
> 
> I attached my config.log just for kicks in case it shows anybody something.
> 

[snip]

configure:8357: gcc -o conftest   -g -O2 -pthread  -DNEON_ZLIB   -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE     -L/usr/local/BerkeleyDB.4.0/lib -L/software/builds/apache2/srclib/apr-util/xml/expat/lib conftest.c  >&5

Hmm, what's in /software/builds/apache2/srclib/apr-util/xml/expat/lib?


-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Julian Fitzell <ju...@beta4.com>.
Ben Collins-Sussman wrote:
> Try preceding this step with a serving of Extra Paranoia:
> 
>    * rm /usr/local/bin/apr-config /usr/local/bin/apu-config
>    * rm /usr/local/lib/libsvn* /usr/local/lib/libapr*
>    * ./autogen.sh
>    * ./configure --all-those-options-above
>    * make clean
>    * make

Hmm... no, none of those files are present and I lied before, I *did* 
run autogen.sh :)  I also deleted /usr/local/svnstatic before compiling.

I did make clean before the configure though, that shouldn't make a 
difference, should it?

The only real difference is that I'm building from a directory != the wc 
directory at the moment... but I only started doing that recently 
because I kept rebuilding this so many times, different ways.  My very 
first attempt to compile the tarball version with everything in the 
working copy were equally fruitless.

And it's been months because I was in Europe, but I was compiling svn on 
this box before that!! So it *has* worked :)

Julian
-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Ben Collins-Sussman <su...@collab.net>.
Julian Fitzell <ju...@beta4.com> writes:

> So I moved apache from /usr/local/apache2 to /usr/local/apache2.tmp to
> get it out of the way.  Then I checked out apr and apr-util into the
> wc. Then I did a make clean followed by:
> 
> ../repos/configure --enable-maintainer-mode --disable-shared
> --prefix=/usr/local/svnstatic

Try preceding this step with a serving of Extra Paranoia:

   * rm /usr/local/bin/apr-config /usr/local/bin/apu-config
   * rm /usr/local/lib/libsvn* /usr/local/lib/libapr*
   * ./autogen.sh
   * ./configure --all-those-options-above
   * make clean
   * make

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Julian Fitzell <ju...@beta4.com>.
Ben Collins-Sussman wrote:
> Julian Fitzell <ju...@beta4.com> writes:
> 
> 
>>Hmm... just occurred to me, I didn't compile apache with debugging
>>enabled because the problem was in the svn client, but that means apr
>>and apr-util won't have debugging enabled...  I was using in-tree apr
>>and apr-util at one point but I can't remember if I was trying to gdb
>>at the time...  Ugh, I guess I can just put apr and apr-util back
>>in-tree and try again?
> 
> 
> Definitely.  If you have a non-debuggy libapr/apr-util lying around
> your /usr/local/apache2/libs/ area, then the svn client will link
> against them... even if you have apr and apr-util in your source tree!
>  (There's an issue filed on this.)  That would explain your problem
> perfectly.
> 
> Try moving your apache2 installation to a new name, and rebuild your
> client with --enable-maintainer-mode --disable-shared
> 

sigh...

So I moved apache from /usr/local/apache2 to /usr/local/apache2.tmp to 
get it out of the way.  Then I checked out apr and apr-util into the wc. 
  Then I did a make clean followed by:

../repos/configure --enable-maintainer-mode --disable-shared 
--prefix=/usr/local/svnstatic

make, make install, then:

gdb /usr/local/svnstatic/bin/svn

and.....

Still no backtrace.   I dunno... does everything in my system need to 
have debugging compiled into it? :)  The only other related package 
that's linked in is Berkeley DB... does that need to be debugging too? 
Sorry if this is a dumb question, but I've never been quite clear on how 
all these debugging/non-debugging libs interact

Any other thoughts otherwise?  I'm getting really damn tired of 
re-compiling all this stuff :)  Any other info I can provide that might 
help narrow it down?

Julian


-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Ben Collins-Sussman <su...@collab.net>.
Julian Fitzell <ju...@beta4.com> writes:

> Hmm... just occurred to me, I didn't compile apache with debugging
> enabled because the problem was in the svn client, but that means apr
> and apr-util won't have debugging enabled...  I was using in-tree apr
> and apr-util at one point but I can't remember if I was trying to gdb
> at the time...  Ugh, I guess I can just put apr and apr-util back
> in-tree and try again?

Definitely.  If you have a non-debuggy libapr/apr-util lying around
your /usr/local/apache2/libs/ area, then the svn client will link
against them... even if you have apr and apr-util in your source tree!
 (There's an issue filed on this.)  That would explain your problem
perfectly.

Try moving your apache2 installation to a new name, and rebuild your
client with --enable-maintainer-mode --disable-shared


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Julian Fitzell <ju...@beta4.com>.
Ben Collins-Sussman wrote:
 > Julian Fitzell <ju...@beta4.com> writes:
 >
 >
 >>But the problem hasn't gone away.
 >>
 >>Can someone confirm how to enable debugging symbols?  At least that
 >>way I can figure out where it's dropping core.
 >
 >
 > ./configure --disable-shared --enable-maintainer-mode
 >
 > That's all you should need.  The resulting svn binary should be
 > perfectly gdb'able.
 >
 > But then again, it seems that's how you built it already.  I'm totally
 > mystified at your situation.  I don't know why your gdb isn't showing
 > any stack trace...
 >
 > You're running svn from *within* gdb, right?  Not just trying to gdb
 > the core file?

Originally I was doing "gdb /path/to/svn core" but I have lately been 
trying "gdb /path/to/svn" with no more luck... all I get is:

[julian@cable static-debug-client-build]$ gdb /usr/local/svnstatic/bin/svn
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) r
Starting program: /usr/local/svnstatic/bin/svn

Program received signal SIGSEGV, Segmentation fault.
0x4000acd0 in ?? ()
(gdb) bt
#0  0x4000acd0 in ?? ()
#1  0x40002902 in ?? ()
#2  0x4000f8f6 in ?? ()
#3  0x40002332 in ?? ()
#4  0x4000217f in ?? ()



I attached my config.log just for kicks in case it shows anybody something.


I also have to keep removing Makefile lines about the handbook because 
it bombs during "make install" because of errors about "Cross reference 
to nonexistent node".  I can't imagine it's related but it seems odd 
that no one else is complaining about it.

Hmm... just occurred to me, I didn't compile apache with debugging 
enabled because the problem was in the svn client, but that means apr 
and apr-util won't have debugging enabled...  I was using in-tree apr 
and apr-util at one point but I can't remember if I was trying to gdb at 
the time...  Ugh, I guess I can just put apr and apr-util back in-tree 
and try again?



-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)

-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)

Re: Core dump

Posted by Ben Collins-Sussman <su...@collab.net>.
Julian Fitzell <ju...@beta4.com> writes:

> But the problem hasn't gone away.
> 
> Can someone confirm how to enable debugging symbols?  At least that
> way I can figure out where it's dropping core.

./configure --disable-shared --enable-maintainer-mode

That's all you should need.  The resulting svn binary should be
perfectly gdb'able.  

But then again, it seems that's how you built it already.  I'm totally
mystified at your situation.  I don't know why your gdb isn't showing
any stack trace...

You're running svn from *within* gdb, right?  Not just trying to gdb
the core file?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Core dump

Posted by Julian Fitzell <ju...@beta4.com>.
Julian Fitzell wrote:
> Hi,
> 
> I seem to be having trouble compiling a working client.  The server 
> compiles fine and I can connect to it from the windows binary but both 
> the alpha tarball and a HEAD checkout (with the windows version) drop 
> core as soon as svn is run (even with no parameters).
> 
> The only error during the compile is a recurring:
> 
> libtool: link: warning: `/usr/lib/libgdbm.la' seems to be moved
> 
> Which I have never seen before but can't figure out the origin of.  The 
> file is at that location and I know of nothing that would have moved it 
> recently.
> 
> I tried compiling a client with "--enable-maintainer-mode 
> --disable-shared --enable-debug" but it still drops core and a backtrace 
> in gdb doesn't give any symbols... is --enable-debug the correct flag? 
> It's what's listed in the configure help screen...
> 
> I'm using HEAD apache2, apr, apr-util.
> 
> It's a RedHat 7.2 box and software versions as follows:
> 
> autoconf: 2.52d
> automake: 1.5
> libtool: 1.4 (1.920 2001/04/24 23:26:18)
> 
> 
> Anyone have any ideas?  I'd like to eliminate the libtool warning just 
> in case but I can't figure out how.  And then beyond that... I'm out of 
> ideas.

I guess no one has seen this problem...

I did resolve the libtool error - libgdbm.la had an entry saying that it 
was installed in /usr/local/lib when it was really in /usr/lib - no idea 
why.

But the problem hasn't gone away.

Can someone confirm how to enable debugging symbols?  At least that way 
I can figure out where it's dropping core.

Thanks,

Julian

-- 
julian@beta4.com
Beta4 Productions (http://www.beta4.com)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org