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

segfault with 0.10.1

From: Edward S. Marshall <esm_at_logic.net>
Date: 2002-03-19 06:55:03 CET

Hi,

Getting a segmentation fault with svn 0.10.1, under both Solaris 7 and
Red Hat Linux 7.2. Figured I'd send this here first; let me know if
anyone wants me to open an issue about it.

The system details:

client 1: Red Hat Linux 7.2, svn 0.10.1, tarball-version of
        apr/apr-util, external neon and db4.
client 2: Red Hat Linux 7.2, svn 0.10.1, cvs (about a week ago) version
        of apr/apr-util, external neon and db4.
client 3: Solaris 7, svn 0.10.1, tarball-version of apr/apr-util/neon,
downloaded db 4.0.14 and built with svn.
server: 0.10.1, uses the same apr/apr-util as client 2, and a cvs
        version of httpd from the same day.

Using svn 0.9.0 on Red Hat 7.2, or 0.10.0 on Solaris, seems to still
work as expected as a client against the repository server, so it would
seem to be a problem introduced with 0.10.1, or PEBKAC on my part
(Problem Exists Between Keyboard And Chair ;-).

I wish I could provide more access to the data involved (a copy of the
repository, access to it, etc), but it's a project for a client. Here's
the traceback from client 1 (the traceback on Solaris is identical):

gdb svn
GNU gdb Red Hat Linux (5.1-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
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) set args co http://svn.logic.net:8080/repos/syncmail/
(gdb) run
Starting program: /opt/dev/bin/svn co
http://svn.logic.net:8080/repos/syncmail/
[New Thread 1024 (LWP 2123)]
esm's password:

A syncmail/mailfilter
A syncmail/mailfilter/lib
A syncmail/mailfilter/lib/unwanted-reply-to
A syncmail/mailfilter/lib/unwanted-from
A syncmail/mailfilter/lib/autoresponse.txt
A syncmail/mailfilter/lib/unwanted-to
A syncmail/mailfilter/bin
A syncmail/mailfilter/bin/rblcheck
A syncmail/mailfilter/bin/dnsmxip
A syncmail/mailfilter/rcs
A syncmail/mailfilter/rcs/std.rc
A syncmail/mailfilter/rcs/filter.rc
A syncmail/mailfilter/rcs/testsuite
A syncmail/mailfilter/rcs/testsuite/basetest.sh
A syncmail/mailfilter/rcs/testsuite/harness
A syncmail/mailfilter/rcs/testsuite/Makefile
A syncmail/mailfilter/rcs/testsuite/sendmail
A syncmail/mailfilter/rcs/testsuite/filter.rc
A syncmail/mailfilter/rcs/testsuite/tests
A syncmail/mailfilter/rcs/testsuite/tests/Forward
A syncmail/mailfilter/rcs/testsuite/tests/From
A syncmail/mailfilter/rcs/testsuite/tests/DNSBL
A syncmail/mailfilter/rcs/testsuite/tests/To
A syncmail/mailfilter/rcs/testsuite/tests/Subject
A syncmail/mailfilter/rcs/testsuite/tests/Body
A syncmail/mailfilter/rcs/testsuite/tests/Reply-To
A syncmail/mailfilter/rcs/testsuite/tests/Duplicate
A syncmail/mailfilter/rcs/testsuite/tests/AutoResponder
A syncmail/mailfilter/rcs/testsuite/tests/Bcc
A syncmail/mailfilter/rcs/filters
A syncmail/mailfilter/rcs/filters/Forward.rc
A syncmail/mailfilter/rcs/filters/From.rc
A syncmail/mailfilter/rcs/filters/X-UIDL.rc
A syncmail/mailfilter/rcs/filters/DNSBL.rc
A syncmail/mailfilter/rcs/filters/Subject.rc
A syncmail/mailfilter/rcs/filters/Body.rc
A syncmail/mailfilter/rcs/filters/TimeZone.rc
A syncmail/mailfilter/rcs/filters/AutoResponder.rc
A syncmail/mailfilter/rcs/filters/NumericDomain.rc
A syncmail/mailfilter/rcs/filters/IEMMC.rc
A syncmail/mailfilter/rcs/filters/InvalidTo.rc
A syncmail/mailfilter/rcs/filters/Bcc.rc
A syncmail/mailfilter/rcs/filters/From-Received.rc
A syncmail/mailfilter/rcs/filters/NumericFrom.rc
A syncmail/mailfilter/rcs/filters/From-To.rc
A syncmail/mailfilter/rcs/filters/To.rc
A syncmail/mailfilter/rcs/filters/Replyable.rc
A syncmail/mailfilter/rcs/filters/X-Advertisement.rc
A syncmail/mailfilter/rcs/filters/From-Message-Id.rc
A syncmail/mailfilter/rcs/filters/Message-Id.rc
A syncmail/mailfilter/rcs/filters/X-Mailer.rc
A syncmail/mailfilter/rcs/filters/MissingTo.rc
A syncmail/mailfilter/rcs/filters/Reply-To.rc
A syncmail/mailfilter/rcs/filters/InvalidFrom.rc
A syncmail/mailfilter/rcs/filters/Duplicate.rc
A syncmail/mailfilter/rcs/filters/Pegasus.rc
A syncmail/mailfilter/rcs/filters/NumericTo.rc
A syncmail/mailfilter/rcs/filters/registry
A syncmail/syncmail

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 2123)]
0x40155d2c in svn_string_create_from_buf (strbuf=0x0, pool=0x8068138)
    at subversion/libsvn_subr/svn_string.c:99
99 return svn_string_ncreate (strbuf->data, strbuf->len, pool);
(gdb) where
#0 0x40155d2c in svn_string_create_from_buf (strbuf=0x0,
pool=0x8068138)
    at subversion/libsvn_subr/svn_string.c:99
#1 0x40031f9f in expand_keyword (keywords=0xbfffcca0,
is_valid_p=0xbfffcc98,
    keyword=0x80f5710 "LastChangedBy",
    path=0x80f53e0 "syncmail/syncmail/index.c", pool=0x8068138)
    at subversion/libsvn_wc/props.c:1234
#2 0x40032166 in svn_wc__get_keywords (keywords=0xbfffccf8,
    path=0x80f53e0 "syncmail/syncmail/index.c", force_list=0x0,
pool=0x8068138)
    at subversion/libsvn_wc/props.c:1320
#3 0x4002e9e8 in file_xfer_under_path (path=0x80687e8,
    name=0x806a7e9 ".svn/tmp/text-base/index.c.svn-base",
    dest=0x806a7e1 "index.c", action=svn_wc__xfer_cp_and_translate,
    pool=0x8068138) at subversion/libsvn_wc/log.c:103
#4 0x4002f088 in log_do_file_xfer (loggy=0x8069ee8,
    name=0x806a7e9 ".svn/tmp/text-base/index.c.svn-base",
    action=svn_wc__xfer_cp_and_translate, atts=0x8079be0)
    at subversion/libsvn_wc/log.c:416
#5 0x4002fe11 in start_handler (userData=0x8069ee8,
    eltname=0x80866c7 "cp-and-translate", atts=0x8079be0)
    at subversion/libsvn_wc/log.c:938
#6 0x4016024f in doContent (parser=0x8079a08, startTagLevel=0,
    enc=0x40173b80,
    s=0xbfffd0e6 "<cp-and-translate\n dest=\"index.c\"\n
name=\".svn/tmp/tex---Type <return> to continue, or q <return> to
quit---
t-base/index.c.svn-base\"/>\n<modify-entry\n name=\"index.c\"\n
kind=\"file\"\n revision=\"49\"/>\n<modify-entry\n
name=\"index.c\"\n text-time=\"work"...,
    end=0xbfffd282 "us>HTTP/1.1 200
OK</D:status>\n</D:propstat>\n</D:response>\n<D:response
xmlns:S=\"svn:\" xmlns:C=\"svn:custom:\" xmlns:lp3=\"svn:\"
xmlns:lp1=\"DAV:\"
xmlns:lp2=\"http://apache.org/dav/props/\">\n<D:href>/repos/sy"...,
nextPtr=0xbfffce78) at expat-lite/xmlparse.c:1299
#7 0x4015f8e5 in contentProcessor (parser=0x8079a08,
    start=0xbfffcf00 "<mv\n
dest=\".svn/prop-base/index.c.svn-base\"\n
name=\".svn/tmp/prop-base/index.c.svn-base\"/>\n<readonly\n
name=\".svn/prop-base/index.c.svn-base\"/>\n<mv\n
dest=\".svn/props/index.c\"\n name=\".svn/tmp/p"...,
    end=0xbfffd282 "us>HTTP/1.1 200
OK</D:status>\n</D:propstat>\n</D:response>\n<D:response
xmlns:S=\"svn:\" xmlns:C=\"svn:custom:\" xmlns:lp3=\"svn:\"
xmlns:lp1=\"DAV:\"
xmlns:lp2=\"http://apache.org/dav/props/\">\n<D:href>/repos/sy"...,
endPtr=0xbfffce78) at expat-lite/xmlparse.c:955
#8 0x4015f4d4 in XML_Parse (parser=0x8079a08,
    s=0xbfffcf00 "<mv\n dest=\".svn/prop-base/index.c.svn-base\"\n
name=\".svn/tmp/prop-base/index.c.svn-base\"/>\n<readonly\n
name=\".svn/prop-base/index.c.svn-base\"/>\n<mv\n
dest=\".svn/props/index.c\"\n name=\".svn/tmp/p"..., len=898,
isFinal=0) at expat-lite/xmlparse.c:783
#9 0x40156fa8 in svn_xml_parse (svn_parser=0x80d7c78,
    buf=0xbfffcf00 "<mv\n dest=\".svn/prop-base/index.c.svn-base\"\n
name=\"---Type <return> to continue, or q <return> to quit---
.svn/tmp/prop-base/index.c.svn-base\"/>\n<readonly\n
name=\".svn/prop-base/index.c.svn-base\"/>\n<mv\n
dest=\".svn/props/index.c\"\n name=\".svn/tmp/p"..., len=898,
is_final=0) at subversion/libsvn_subr/xml.c:273
#10 0x400300dc in svn_wc__run_log (path=0x80687e8, pool=0x8068138)
    at subversion/libsvn_wc/log.c:1018
#11 0x40036167 in svn_wc_install_file (
    file_path=0x80682a0 "syncmail/syncmail/index.c", new_revision=49,
    new_text_path=0x8068730
"syncmail/syncmail/.svn/tmp/text-base/index.c.svn-base",
props=0x8068398, is_full_proplist=0, new_URL=0x0, pool=0x8068138)
    at subversion/libsvn_wc/update_editor.c:1498
#12 0x40036228 in close_file (file_baton=0x8068240)
    at subversion/libsvn_wc/update_editor.c:1539
#13 0x400acfe0 in close_file (file_baton=0x8068230)
    at subversion/libsvn_delta/compose_editors.c:194
#14 0x400ada25 in wrap_close_file (file_baton=0x8068208)
    at subversion/libsvn_delta/default_editor.c:495
#15 0x40042b9a in fetch_file (sess=0x805f998, rsrc=0x80ad488,
    dir_baton=0x80e3ca0, vuh=0xbffff0d0, editor=0x8057bf0,
pool=0x8064128)
    at subversion/libsvn_ra_dav/fetch.c:673
#16 0x400431ef in svn_ra_dav__do_checkout (session_baton=0x8057d10,
    revision=-1, recurse=1, editor=0x8057bf0, edit_baton=0x8057be0)
    at subversion/libsvn_ra_dav/fetch.c:1022
#17 0x4001b5e2 in svn_client_checkout (before_editor=0x0,
---Type <return> to continue, or q <return> to quit---
    before_edit_baton=0x0, after_editor=0x8057b58,
after_edit_baton=0x805ba28,
    auth_baton=0x8057b10, URL=0x8057b00, path=0x8057b48,
revision=0xbffff2c0,
    recurse=1, xml_src=0x0, pool=0x8057948)
    at subversion/libsvn_client/checkout.c:120
#18 0x0804a784 in svn_cl__checkout (os=0x8057a60, opt_state=0xbffff2c0,
    pool=0x8057948) at subversion/clients/cmdline/checkout-cmd.c:123
#19 0x0804c88e in main (argc=3, argv=0xbffff3b4)
    at subversion/clients/cmdline/main.c:1060
#20 0x4022d627 in __libc_start_main (main=0x804c2d0 <main>, argc=3,
    ubp_av=0xbffff3b4, init=0x8049cd4 <_init>, fini=0x804ed70 <_fini>,
    rtld_fini=0x4000dcc4 <_dl_fini>, stack_end=0xbffff3ac)
    at ../sysdeps/generic/libc-start.c:129
(gdb)

The directory it's dying on has directories named "help", "images", and
"templates", and contains the files "index.c" and "syncmail.cgi". As I'm
still able to keep working using the older client, I'll make a backup of
the repository as it stands right now if anyone wants me to run further
tests.

-- 
Edward S. Marshall <esm@logic.net>
http://esm.logic.net/

Received on Tue Mar 19 06:55:42 2002

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.