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

segfault on Subversion 1.1.3 new install

From: Daniel Kehoe <kehoe_at_fortuity.com>
Date: 2005-03-21 09:10:14 CET

On a new install of Subversion 1.1.3, I'm getting a "Segmentation
fault" error on use of "svnadmin create" (or "svn help" and others as

I get a core dump of 565K when I ran "svn help".

When I run "make check" it fails at "FAIL: basic_tests.py 1: basic
checkout of a wc" and when I try "./basic_tests.py -v" it fails at the
first use of "svnadmin create".

My system is a Sun Cobalt Raq550 (similar to Redhat 8 but not similar
enough to use Redhat 8 rpm's). I do not have Apache 2 installed (I want
to use svnserve solely).

I compiled and installed Berkeley DB 4.2.52 to
/usr/local/BerkeleyDB.4.2/ as it was not present on my system.
BerkeleyDB was not found when I ran "configure" so I took the advice I
found on this list and ran configure as
        env LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib" \
        LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.2/lib" ./configure
for a successful "make" and "make install". However "make check" fails
as described above and I get the segfault.

I checked using "ldd" to see if the Berkeley DB libraries are correct
and I get
        # ldd /usr/local/bin/svn | fgrep libdb
         libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
which looks okay to my untrained eye.

I tried to compile again with advice I saw in the FAQ. Before
compiling, I added
to /etc/ld.so.conf
and ran "/sbin/ldconfig" on my system to force an update.

This time, I simple ran "./configure" with no problems, and then "make"
and "make install". But I still get the segfault and the core dump when
I run "svn help".

I compiled again with
        ./configure --enable-maintainer-mode
and did a successful "make && make install".

I really don't know how to use gdb, but I tried, in case it's
        # gdb svn
        GNU gdb 5.0rh-5 Red Hat Linux 7.1
        Copyright 2001 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
        Type "show copying" to see the conditions.
        There is absolutely no warranty for GDB. Type "show warranty" for
        This GDB was configured as "i386-redhat-linux"...
        (gdb) b main
        Breakpoint 1 at 0x804fc93: file subversion/clients/cmdline/main.c,
line 742.
        (gdb) r
        Starting program: /usr/local/bin/svn
        [New Thread 1024 (LWP 19721)]
        [Switching to Thread 1024 (LWP 19721)]

        Breakpoint 1, main (argc=1, argv=0xbffff314)
     at subversion/clients/cmdline/main.c:742
        742 svn_cl__opt_state_t opt_state = { { 0 } };

So that's it, so far. Can you suggest what to try next?


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 21 09:12:54 2005

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

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