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

Re: Stack Trace for Ruby Segfaults

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2005-06-22 03:29:28 CEST

On 2005-06-22 09:51+0900, Kouhei Sutou wrote:
> Hi,
>
> > test_diff_path(SvnInfoTest): Exception `Errno::EEXIST' at
> > /h/46/james/lib/ruby/1.8/fileutils.rb:212 - File exists - test
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > (gdb) backtrace
> > #0 0x080bba65 in st_lookup ()
> > #1 0x08052966 in search_method ()
> > #2 0x080529cd in rb_get_method_body ()
> > #3 0x0805de36 in rb_call ()
> > #4 0x0805e047 in rb_apply ()
> > #5 0x401d349a in callback (info=1078858984)
> > at /nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c:409
> > #6 0x0805c96a in rb_rescue2 ()
> > #7 0x401d4ac5 in svn_swig_rb_auth_username_prompt_func (cred=0xbfff0280,
> > baton=0x401a74a0, realm=0x81544c0 "b04e7b57-14fa-0310-86db-dd7eb51412b0",
> > may_save=1, pool=0x8328920)
> > at /nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c:1031
>
> I think the problem can be fixed the patch at
> http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=101652
>
> Could you try the patch?
I am sorry to say, but this patch didn't help.

Mine is segfaulting here:
(gdb) run -I /home/jaa/svn/svn/trunk/subversion/bindings/swig/ruby
/home/jaa/svn/svn/trunk/subversion/bindings/swig/ruby/test/run-test.rb
--verbose=verbose
Starting program: /usr/bin/ruby -I /home/jaa/svn/svn/trunk/subversion/bindings/swig/ruby
/home/jaa/svn/svn/trunk/subversion/bindings/swig/ruby/test/run-test.rb --verbose=verbose
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 46912506657504 (LWP 5649)]
Loaded suite test
Started
test_change_prop(SvnDeltaTest): .
test_changed(SvnDeltaTest): .
test_deep_copy(SvnDeltaTest): .
test_changed(SvnInfoTest): .
test_diff(SvnInfoTest):
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912506657504 (LWP 5649)]
0x00002aaaaac08204 in rb_hash_foreach () from /usr/lib/libruby18.so.1.8
#0 0x00002aaaaac08204 in rb_hash_foreach () from /usr/lib/libruby18.so.1.8
#1 0x00002aaaab6f53a9 in r2c_hash (hash=18446744072338819352, func=0x2aaaab6f5300 <r2c_hash_i>,
    ctx=0x7ffffffb3330, pool=0xcc8dd8)
    at /home/jaa/svn/svn/trunk/subversion/bindings/swig/ruby/libsvn_swig_ruby/swigutil_rb.c:342
#2 0x00002aaaab5d5e88 in _wrap_svn_prop_diffs ()
   from /home/jaa/tmpfs/build/obj-svn-trunk/subversion/bindings/swig/ruby/.ext/svn/ext/core.so
#3 0x00002aaaaabf3138 in rb_thread_schedule () from /usr/lib/libruby18.so.1.8
#4 0x00002aaaaabfa3fd in rb_apply () from /usr/lib/libruby18.so.1.8
#5 0x00002aaaaabfa47e in rb_apply () from /usr/lib/libruby18.so.1.8
#6 0x00002aaaaabf5cf5 in rb_iter_break () from /usr/lib/libruby18.so.1.8
#7 0x00002aaaaabf6adf in rb_yield () from /usr/lib/libruby18.so.1.8
#8 0x00002aaaaabf2c71 in rb_thread_schedule () from /usr/lib/libruby18.so.1.8
...

This is with your patch and I get the same result without the patch.

BR, Jani

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 22 03:30:18 2005

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.