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

Segfault in "svn checkout" (svn client 0.23; server at collab.net)

From: Gareth McCaughan <gareth.mccaughan_at_pobox.com>
Date: 2003-06-28 10:45:31 CEST

$ svn co http://svn.collab.net/repos/svn
... lots and lots of "A <filename>" lines , ending with:
A svn/branches/fs-schema-changes/www/webdav-usage.html
A svn/branches/fs-schema-changes/www/project_nav.html
A svn/branches/fs-schema-changes/www/project_status.html
Segmentation fault (core dumped)

$ gdb /usr/local/bin/svn svn.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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-unknown-freebsd"...Deprecated bfd_read called
at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line
933 in fill_symbuf

Core was generated by `svn'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libsvn_client-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_wc-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_ra-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_diff-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_ra_local-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_repos-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_fs-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_delta-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_ra_dav-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_ra_svn-1.so.0...done.
Reading symbols from /usr/local/lib/libsvn_subr-1.so.0...done.
Reading symbols from /usr/local/lib/libaprutil-0.so.9...done.
Reading symbols from /usr/local/lib/libdb4.so.0...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/local/lib/libapr-0.so.9...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/local/lib/libneon.so.23...done.
Reading symbols from /usr/lib/libssl.so.3...done.
Reading symbols from /usr/lib/libcrypto.so.3...done.
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/libexpat.so.4...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x284b77f8 in vfprintf () from /usr/lib/libc.so.4
(gdb) backtrace
#0 0x284b77f8 in vfprintf () from /usr/lib/libc.so.4
#1 0x28481e24 in vsnprintf () from /usr/lib/libc.so.4
#2 0x282e5a81 in ne_set_error () from /usr/local/lib/libneon.so.23
#3 0x282edbc0 in gz_reader () from /usr/local/lib/libneon.so.23
#4 0x282e4568 in ne_read_response_block () from /usr/local/lib/libneon.so.23
#5 0x282e5293 in ne_request_dispatch () from /usr/local/lib/libneon.so.23
#6 0x280f371a in svn_ra_dav__request_dispatch (code=0xbfbff4fc,
    request=0x8078800, session=0x8066800, method=0x280f402c "GET",
    url=0x28028b88
"/repos/svn/!svn/bc/6365/branches/fs-schema-changes/www/project_license.html",
okay_1=200, okay_2=226, pool=0x8079018)
    at subversion/libsvn_ra_dav/util.c:454
#7 0x280ed40e in custom_get_request (sess=0x8066800,
    url=0x28028b88
"/repos/svn/!svn/bc/6365/branches/fs-schema-changes/www/project_license.html",
relpath=0x0, reader=0x280ed4b0 <fetch_file_reader>,
    subctx=0xbfbff570, get_wc_prop=0, cb_baton=0x0, use_base=1,
pool=0x8079018)
    at subversion/libsvn_ra_dav/fetch.c:503
#8 0x280ed69d in simple_fetch_file (sess=0x8066800,
    url=0x28028b88
"/repos/svn/!svn/bc/6365/branches/fs-schema-changes/www/project_license.html",
relpath=0x0, text_deltas=1, file_baton=0x80790a0,
    base_checksum=0x0, editor=0x806d120, get_wc_prop=0, cb_baton=0x0,
    pool=0x8079018) at subversion/libsvn_ra_dav/fetch.c:670
#9 0x280ed770 in fetch_file (sess=0x8066800, rsrc=0x28028b10,
    dir_baton=0x280188f0, editor=0x806d120,
    edit_path=0x81dd330 "branches/fs-schema-changes/www/project_license.html",
    pool=0x8079018) at subversion/libsvn_ra_dav/fetch.c:704
#10 0x280ee486 in svn_ra_dav__do_checkout (session_baton=0x806d288,
    revision=-1, recurse=1, editor=0x806d120, edit_baton=0x806d158,
    pool=0x806d018) at subversion/libsvn_ra_dav/fetch.c:1305
#11 0x2807b9e6 in svn_client__checkout_internal (
    URL=0x8060c18 "http://svn.collab.net/repos/svn", path=0x8060c78 "svn",
    revision=0xbfbff914, recurse=1, timestamp_sleep=0x0, ctx=0xbfbff8ec,
    pool=0x806d018) at subversion/libsvn_client/checkout.c:112
#12 0x2807ba6b in svn_client_checkout (
    URL=0x8060c18 "http://svn.collab.net/repos/svn", path=0x8060c78 "svn",
    revision=0xbfbff914, recurse=1, ctx=0xbfbff8ec, pool=0x806d018)
    at subversion/libsvn_client/checkout.c:151
#13 0x804b2d6 in svn_cl__checkout (os=0x8060050, baton=0xbfbff7a0,
    pool=0x8060018) at subversion/clients/cmdline/checkout-cmd.c:133
#14 0x804dc30 in main (argc=3, argv=0xbfbff9f0)
    at subversion/clients/cmdline/main.c:1026
#15 0x804ae6a in _start ()

Running "svn --version" yields:
svn, version 0.23.0 (r5962)
   compiled Jun 12 2003, 11:01:26

Copyright (C) 2000-2003 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema

I'm running FreeBSD 4.8 on ia32 (more specifically, an Athlon);
this version of Subversion was built from the port in a recent
FreeBSD ports tree. Anything further I should do? Or is this
not interesting on account of being with an old version of Subversion?

I haven't checked whether the segfault is reproducible; so it's conceivable
that dodgy hardware could be at fault. I don't have any strong reason
to believe that my hardware *is* dodgy, though.

My libneon wasn't built with debugging turned on, but apparently
Subversion was. "info locals" in frame #6 says:

error_parser = (ne_xml_parser *) 0x80a8000
rv = 672088108
msg = 0x0
err = (svn_error_t *) 0x0

which may or may not be useful.

-- 
Gareth McCaughan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 28 10:47:47 2003

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.