You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Alexander L. Belikoff" <ab...@vallinor4.com> on 2004/01/20 03:11:11 UTC
svnadmin load 0.36 segfaults on Fedora 1
Hello everyone - not sure whether this should be posted here or opened in
IssueZilla. Let me know if I'm wrong.
Anyway, I'm getting svnadmin load in 0.36 reliably segfault on any input.
1. Environment:
- Fedora Linux Core 1 (with all updates)
- kernel 2.4.22-1.2149.nptlsmp
- BDB db4-4.1.25-14
- glibc-2.3.2-101.4
- SVN 0.36 pulled as .tgz file, built via 'configure --prefix=... && make &&
make install'
2. The problem:
$ svnadmin create /home/abel/svtt
$ svnadmin load /home/abel/svtt < /dev/null
Segmentation fault
$ gdb /opt/svn/bin/svnadmin
GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)
Copyright 2003 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-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".
(gdb) r load /home/abel/svtt < /dev/null
Starting program: /mnt/dsk2/opt/svn/bin/svnadmin load /home/abel/svtt <
/dev/null
[Thread debugging using libthread_db enabled]
[New Thread -1084757472 (LWP 16531)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1084757472 (LWP 16531)]
apr_palloc (pool=0xf2f638, size=15922744) at apr_pools.c:632
632 apr_pools.c: No such file or directory.
in apr_pools.c
(gdb) The program is running. Exit anyway? (y or n) y
$
I've blown the build tree unfortunately, but if I recall correctly, the
problem was with the pointer inside pool structure that was invalid (not NULL
but some bogus value).
$ ldd /opt/svn/bin/svnadmin
libsvn_repos-1.so.0 => /opt/svn/lib/libsvn_repos-1.so.0 (0x009c8000)
libsvn_fs-1.so.0 => /opt/svn/lib/libsvn_fs-1.so.0 (0x00280000)
libsvn_delta-1.so.0 => /opt/svn/lib/libsvn_delta-1.so.0 (0x00816000)
libsvn_subr-1.so.0 => /opt/svn/lib/libsvn_subr-1.so.0 (0x0089f000)
libaprutil-0.so.0 => /opt/svn/lib/libaprutil-0.so.0 (0x00111000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x008d6000)
libdb-4.1.so => /lib/tls/libdb-4.1.so (0x00125000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x001e7000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00ac8000)
libapr-0.so.0 => /opt/svn/lib/libapr-0.so.0 (0x00df5000)
librt.so.1 => /lib/tls/librt.so.1 (0x001f7000)
libm.so.6 => /lib/tls/libm.so.6 (0x0020b000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x0022d000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00d45000)
libdl.so.2 => /lib/libdl.so.2 (0x008d1000)
libc.so.6 => /lib/tls/libc.so.6 (0x002ae000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0075a000)
Let me know if I could help with tracking this problem down.
--
Alexander L. Belikoff GPG f/pr: 0D58 A804 1AB1 4CD8 8DA9
Bloomberg L.P. 424B A86E CD0D 8424 2701
abel *at* vallinor4 *dot* com (http://pgp5.ai.mit.edu for the key)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnadmin load 0.36 segfaults on Fedora 1
Posted by "Alexander L. Belikoff" <ab...@vallinor4.com>.
On Monday 19 January 2004 22:42, kfogel@collab.net wrote:
> "Alexander L. Belikoff" <ab...@vallinor4.com> writes:
> > $ svnadmin load /home/abel/svtt < /dev/null
> > Segmentation fault
>
> > Let me know if I could help with tracking this problem down.
>
> Can you debug into it with source available?
Will try to tonight (I'm unfamiliar w/ APR though)...
--
Alexander L. Belikoff GPG f/pr: 0D58 A804 1AB1 4CD8 8DA9
Bloomberg L.P. 424B A86E CD0D 8424 2701
abel *at* vallinor4 *dot* com (http://pgp5.ai.mit.edu for the key)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnadmin load 0.36 segfaults on Fedora 1
Posted by kf...@collab.net.
"Alexander L. Belikoff" <ab...@vallinor4.com> writes:
> $ svnadmin load /home/abel/svtt < /dev/null
> Segmentation fault
I couldn't reproduce this on a Debian GNU/Linux system with a
relatively recent svnadmin. I just get a reasonable error:
subversion/libsvn_repos/load.c:155: (apr_err=200003)
svn: Premature end of content data in dumpstream.
> Let me know if I could help with tracking this problem down.
Can you debug into it with source available?
-K
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnadmin load 0.36 segfaults on Fedora 1
Posted by "Alexander L. Belikoff" <ab...@vallinor4.com>.
Sorry for missing stack trace:
(gdb) r load /home/abel/svtt < /dev/null
Starting program: /mnt/dsk2/opt/svn/bin/svnadmin load /home/abel/svtt <
/dev/null
[Thread debugging using libthread_db enabled]
[New Thread -1084708320 (LWP 16781)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1084708320 (LWP 16781)]
apr_palloc (pool=0x4cb638, size=5027384) at apr_pools.c:632
632 apr_pools.c: No such file or directory.
in apr_pools.c
(gdb) bt
#0 apr_palloc (pool=0x4cb638, size=5027384) at apr_pools.c:632
#1 0x004c979a in svn_stringbuf_ncreate ()
from /opt/svn/lib/libsvn_repos-1.so.0
#2 0x004c97f7 in svn_stringbuf_create () from
/opt/svn/lib/libsvn_repos-1.so.0
#3 0x004c9062 in svn_stream_readline () from /opt/svn/lib/libsvn_repos-1.so.0
#4 0x004a983f in svn_repos_parse_dumpstream (stream=0x935c008,
parse_fns=0x935c078, parse_baton=0x935c0a0,
cancel_func=0x8049680 <check_cancel>, cancel_baton=0x0, pool=0x935b920)
at subversion/libsvn_repos/load.c:404
#5 0x004aa6d5 in svn_repos_load_fs (repos=0x935be10, dumpstream=0x935c008,
feedback_stream=0x935c068, uuid_action=svn_repos_load_uuid_default,
parent_dir=0x0, cancel_func=0x8049680 <check_cancel>, cancel_baton=0x0,
pool=0x935b920) at subversion/libsvn_repos/load.c:1050
#6 0x08049cd0 in subcommand_load (os=0x935b958, baton=0xbfe93000,
pool=0x935b920) at subversion/svnadmin/main.c:515
#7 0x0804a73f in main (argc=15, argv=0xbfe930f4)
at subversion/svnadmin/main.c:1051
(gdb)
(gdb) p *pool
$1 = {parent = 0x5555000a, child = 0x203a4449, sibling = 0xa0a7325,
ref = 0x44002f00, cleanups = 0x65706d75, allocator = 0x202a0064,
subprocesses = 0x72207325, abort_fn = 0x73697665, user_data = 0x206e6f69,
tag = 0x2e646c25 <Address 0x2e646c25 out of bounds>, active = 0x6556000a,
self = 0x69666972, self_first_avail = 0x6465 <Address 0x6465 out of bounds>}
(gdb) p *(pool->active)
Cannot access memory at address 0x6556000a
--
Alexander L. Belikoff GPG f/pr: 0D58 A804 1AB1 4CD8 8DA9
Bloomberg L.P. 424B A86E CD0D 8424 2701
abel *at* vallinor4 *dot* com (http://pgp5.ai.mit.edu for the key)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnadmin load 0.36 segfaults on Fedora 1
Posted by "Alexander L. Belikoff" <ab...@vallinor4.com>.
On Monday 19 January 2004 22:55, D.J. Heap wrote:
> I've been building and testing (including several large dumps and loads)
> on a standard FC1 w/updates for a while and haven't had any trouble. I
> did build Apache 2.0.48 from source myself and I don't have an smp
> machine or kernel.
That's scary... I've specifically tried (and succeeded) building svn w/out
pulling any extra packages. It built just fine.
I'll try to replicate the problem w/ a ump kernel. BTW, the machine is ump but
apparently HyperThreading makes the system select an SMP kernel by default.
--
Alexander L. Belikoff GPG f/pr: 0D58 A804 1AB1 4CD8 8DA9
Bloomberg L.P. 424B A86E CD0D 8424 2701
abel *at* vallinor4 *dot* com (http://pgp5.ai.mit.edu for the key)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svnadmin load 0.36 segfaults on Fedora 1
Posted by "D.J. Heap" <dj...@shadyvale.net>.
On Mon, 2004-01-19 at 20:11, Alexander L. Belikoff wrote:
> Hello everyone - not sure whether this should be posted here or opened in
> IssueZilla. Let me know if I'm wrong.
>
> Anyway, I'm getting svnadmin load in 0.36 reliably segfault on any input.
>
> 1. Environment:
> - Fedora Linux Core 1 (with all updates)
> - kernel 2.4.22-1.2149.nptlsmp
> - BDB db4-4.1.25-14
> - glibc-2.3.2-101.4
> - SVN 0.36 pulled as .tgz file, built via 'configure --prefix=... && make &&
> make install'
[snip]
I've been building and testing (including several large dumps and loads)
on a standard FC1 w/updates for a while and haven't had any trouble. I
did build Apache 2.0.48 from source myself and I don't have an smp
machine or kernel.
DJ
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org