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

Re: svn commit: r39779 - in trunk/subversion: include libsvn_client libsvn_wc svn tests/cmdline

From: Stefan Sperling <stsp_at_elego.de>
Date: Sat, 10 Oct 2009 00:43:50 +0100

On Wed, Oct 07, 2009 at 10:36:08PM -0700, Joe Swatosh wrote:
> On Wed, Oct 7, 2009 at 9:23 AM, Stefan Sperling <stsp_at_elego.de> wrote:
> > On Wed, Oct 07, 2009 at 08:25:17AM -0700, Joe Swatosh wrote:
> >> Please help if you can.  Since this commit the Ruby bindings tests are
> >> segfaulting in
> >> svn_client_diff4 in cancel_func in Release builds, but running fine in
> >> Debug builds.
> >> Since the test sets the cancel_func to nil I am lead to suspect an
> >> uninitialized variable
> >> somewhere, but I can't find it (or anything else).
> >
> > Can you provide a stack trace?
> >
> > Stefan
> >
>
> okay, this is what I get in the debugger with a release build:

This might be unrelated to your particular segfault, but when I run
the ruby tests (took some tweaking to get this going), I run into the
following crash (with a debug build):

test_adm_ensure(SvnWcTest): /home/stsp/svn/prefix/svn-trunk/lib/ruby/site_ruby/1
.8/svn/util.rb:86: [BUG] Segmentation fault

#5 0x0a173c10 in is_child (type=type_uri, path1=0x0,
    path2=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/r
uby/test/repos", pool=0x85e4d018) at subversion/libsvn_subr/dirent_uri.c:668
668 if (SVN_PATH_IS_EMPTY(path1)) /* "" is the parent */
(gdb) p path1
$1 = 0x0

Is this known? Stack trace below.

Stefan

Core was generated by `ruby'.
Program terminated with signal 6, Aborted.
[...]
(gdb) bt
#0 0x0f893371 in kill () from /usr/lib/libc.so.51.1
#1 0x0f8e1ea3 in abort () at /usr/src/lib/libc/stdlib/abort.c:68
#2 0x0c97fcd2 in rb_bug () from /usr/local/lib/libruby.so.2.0
#3 0x0c9dce1b in sigsegv () from /usr/local/lib/libruby.so.2.0
#4 <signal handler called>
#5 0x0a173c10 in is_child (type=type_uri, path1=0x0,
    path2=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", pool=0x85e4d018) at subversion/libsvn_subr/dirent_uri.c:668
#6 0x0a174ffa in svn_uri_is_child (uri1=0x0,
    uri2=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", pool=0x85e4d018) at subversion/libsvn_subr/dirent_uri.c:1411
#7 0x0d6e3331 in svn_wc__entries_init (path=0x899cb0f0 "/tmp/wc-tmp/wc",
    uuid=0x0,
    url=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", repos_root=0x0, initial_rev=0, depth=svn_depth_infinity,
    pool=0x899cb018) at subversion/libsvn_wc/entries.c:3125
#8 0x0d6c6a75 in init_adm (path=0x899cb0f0 "/tmp/wc-tmp/wc", uuid=0x0,
    url=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", repos=0x0, initial_rev=0, depth=svn_depth_infinity,
    pool=0x899cb018) at subversion/libsvn_wc/adm_files.c:644
#9 0x0d6c6bac in svn_wc__internal_ensure_adm (db=0x899cb110,
    local_abspath=0x899cb0f0 "/tmp/wc-tmp/wc", uuid=0x0,
    url=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", repos=0x0, revision=0, depth=svn_depth_infinity,
    scratch_pool=0x899cb018) at subversion/libsvn_wc/adm_files.c:670
#10 0x0d6c6d81 in svn_wc_ensure_adm4 (wc_ctx=0x899cb100,
    local_abspath=0x899cb0f0 "/tmp/wc-tmp/wc", uuid=0x0,
    url=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", repos=0x0, revision=0, depth=svn_depth_infinity,
    scratch_pool=0x899cb018) at subversion/libsvn_wc/adm_files.c:723
#11 0x0d6d3421 in svn_wc_ensure_adm3 (path=0x80bf9900 "/tmp/wc-tmp/wc",
    uuid=0x0,
    url=0x8058f500 "file:///home/stsp/svn/svn-trunk/subversion/bindings/swig/ruby/test/repos", repos=0x0, revision=0, depth=svn_depth_infinity,
    pool=0x899cb018) at subversion/libsvn_wc/deprecated.c:468
#12 0x05a8ae92 in _wrap_svn_wc_ensure_adm3 (argc=6, argv=0xcfbc7060,
    self=2091034260) at subversion/bindings/swig/ruby/svn_wc.c:16270
#13 0x0c9982c8 in call_cfunc () from /usr/local/lib/libruby.so.2.0
#14 0x0c98be7d in rb_call0 () from /usr/local/lib/libruby.so.2.0
#15 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#16 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#17 0x0c991e6f in block_pass () from /usr/local/lib/libruby.so.2.0
#18 0x0c98807b in rb_eval () from /usr/local/lib/libruby.so.2.0
#19 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#20 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#21 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#22 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#23 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#24 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#25 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#26 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#27 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#28 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#29 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#30 0x0c98ca76 in rb_f_send () from /usr/local/lib/libruby.so.2.0
#31 0x0c9982c8 in call_cfunc () from /usr/local/lib/libruby.so.2.0
#32 0x0c98be7d in rb_call0 () from /usr/local/lib/libruby.so.2.0
#33 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#34 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#35 0x0c986caf in rb_eval () from /usr/local/lib/libruby.so.2.0
#36 0x0c986e3d in rb_eval () from /usr/local/lib/libruby.so.2.0
#37 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#38 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#39 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#40 0x0c991daf in block_pass () from /usr/local/lib/libruby.so.2.0
#41 0x0c98807b in rb_eval () from /usr/local/lib/libruby.so.2.0
#42 0x0c986e3d in rb_eval () from /usr/local/lib/libruby.so.2.0
#43 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#44 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#45 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#46 0x0c991daf in block_pass () from /usr/local/lib/libruby.so.2.0
#47 0x0c98807b in rb_eval () from /usr/local/lib/libruby.so.2.0
#48 0x0c98a328 in rb_yield_0 () from /usr/local/lib/libruby.so.2.0
#49 0x0c98a902 in rb_yield () from /usr/local/lib/libruby.so.2.0
#50 0x0c973017 in rb_ary_each () from /usr/local/lib/libruby.so.2.0
#51 0x0c9982c8 in call_cfunc () from /usr/local/lib/libruby.so.2.0
#52 0x0c98be7d in rb_call0 () from /usr/local/lib/libruby.so.2.0
#53 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#54 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#55 0x0c9869f5 in rb_eval () from /usr/local/lib/libruby.so.2.0
#56 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#57 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#58 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#59 0x0c991daf in block_pass () from /usr/local/lib/libruby.so.2.0
#60 0x0c98807b in rb_eval () from /usr/local/lib/libruby.so.2.0
#61 0x0c986e3d in rb_eval () from /usr/local/lib/libruby.so.2.0
#62 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#63 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#64 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#65 0x0c991daf in block_pass () from /usr/local/lib/libruby.so.2.0
#66 0x0c98807b in rb_eval () from /usr/local/lib/libruby.so.2.0
#67 0x0c98a328 in rb_yield_0 () from /usr/local/lib/libruby.so.2.0
#68 0x0c98a902 in rb_yield () from /usr/local/lib/libruby.so.2.0
#69 0x0c973017 in rb_ary_each () from /usr/local/lib/libruby.so.2.0
#70 0x0c9982c8 in call_cfunc () from /usr/local/lib/libruby.so.2.0
#71 0x0c98be7d in rb_call0 () from /usr/local/lib/libruby.so.2.0
#72 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#73 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#74 0x0c9869f5 in rb_eval () from /usr/local/lib/libruby.so.2.0
#75 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#76 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#77 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#78 0x0c991daf in block_pass () from /usr/local/lib/libruby.so.2.0
#79 0x0c98807b in rb_eval () from /usr/local/lib/libruby.so.2.0
#80 0x0c986e3d in rb_eval () from /usr/local/lib/libruby.so.2.0
#81 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#82 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#83 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#84 0x0c9869f5 in rb_eval () from /usr/local/lib/libruby.so.2.0
#85 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#86 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#87 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#88 0x0c986caf in rb_eval () from /usr/local/lib/libruby.so.2.0
#89 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#90 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#91 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#92 0x0c988f22 in rb_eval () from /usr/local/lib/libruby.so.2.0
#93 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#94 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#95 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#96 0x0c988f22 in rb_eval () from /usr/local/lib/libruby.so.2.0
#97 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#98 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#99 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#100 0x0c988f22 in rb_eval () from /usr/local/lib/libruby.so.2.0
#101 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#102 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#103 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#104 0x0c987432 in rb_eval () from /usr/local/lib/libruby.so.2.0
#105 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#106 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#107 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#108 0x0c98c1e7 in rb_call0 () from /usr/local/lib/libruby.so.2.0
#109 0x0c98c861 in rb_call () from /usr/local/lib/libruby.so.2.0
#110 0x0c987539 in rb_eval () from /usr/local/lib/libruby.so.2.0
#111 0x0c9877f5 in rb_eval () from /usr/local/lib/libruby.so.2.0
#112 0x0c983a24 in ruby_exec_internal () from /usr/local/lib/libruby.so.2.0
#113 0x0c983a71 in ruby_exec () from /usr/local/lib/libruby.so.2.0
#114 0x0c983aa4 in ruby_run () from /usr/local/lib/libruby.so.2.0
#115 0x1c0008fc in main ()

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2405726
Received on 2009-10-10 01:44:09 CEST

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.