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

Ruby bindings 1.4.0 core dump on Ubuntu Breezy

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-10-05 07:44:59 CEST

I'm working on building Subversion 1.4.0 packages for Ubuntu Breezy
Badger. This is a backport of Debian's 1.4.0 package.

I'm getting a core dump during the Ruby check:

$ make check-swig-rb
cd /home/blair/Packages/ubuntu/blair/subversion/subversion-1.4.0/
BUILD/subversion/bindings/swig/ruby; \
   /usr/bin/ruby1.8 -I /home/blair/Packages/ubuntu/blair/subversion/
subversion-1.4.0/subversion/bindings/swig/ruby \
     /home/blair/Packages/ubuntu/blair/subversion/subversion-1.4.0/
subversion/bindings/swig/ruby/test/run-test.rb \
     --verbose=normal
Loaded suite test
Started
/home/blair/Packages/ubuntu/blair/subversion/subversion-1.4.0/
subversion/bindings/swig/ruby/test/util.rb:47: [BUG] Segmentation fault
ruby 1.8.3 (2005-06-23) [i486-linux]

This is at the GC.start at

   def gc
     if $DEBUG
       before_pools = Svn::Core::Pool.number_of_pools
       puts
       puts "before pools: #{before_pools}"
     end
     GC.start
     if $DEBUG
       after_pools = Svn::Core::Pool.number_of_pools
       puts "after pools: #{after_pools}"
       STDOUT.flush
     end
   end

I wasn't able to get a coredump when I passed -d to ruby.

Stacktrace is below and here's the end of the strace of a core dump:

open("test/tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
getdents64(3, /* 2 entries */, 4096) = 48
sigprocmask(SIG_BLOCK, NULL, []) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
sigprocmask(SIG_SETMASK, [], NULL) = 0
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
rmdir("test/tmp") = 0
sigprocmask(SIG_BLOCK, NULL, []) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(2, "/home/blair/Packages/ubuntu/blai"..., 109) = 109
write(2, "[BUG] ", 6) = 6
write(2, "Segmentation fault", 18) = 18
write(2, "\nruby 1.8.3 (2005-06-23) [i486-l"..., 39) = 39

Anything else I can provide to help?

Regards,
Blair

(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7d849d1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7d862e9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7f10c17 in rb_bug () from /usr/lib/libruby1.8.so.1.8
#4 0xb7f78c09 in ruby_posix_signal () from /usr/lib/libruby1.8.so.1.8
#5 <signal handler called>
#6 0xb7f31f04 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#7 0xb7f3209a in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#8 0xb7f3209a in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#9 0xb7f31f2b in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#10 0xb7f32362 in rb_gc_mark_maybe () from /usr/lib/libruby1.8.so.1.8
#11 0xb7f7bc43 in st_foreach () from /usr/lib/libruby1.8.so.1.8
#12 0xb7f30efa in mark_tbl () from /usr/lib/libruby1.8.so.1.8
#13 0xb7f31f42 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#14 0xb7f32362 in rb_gc_mark_maybe () from /usr/lib/libruby1.8.so.1.8
#15 0xb7f7bc43 in st_foreach () from /usr/lib/libruby1.8.so.1.8
#16 0xb7f30efa in mark_tbl () from /usr/lib/libruby1.8.so.1.8
#17 0xb7f31f54 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#18 0xb7f32362 in rb_gc_mark_maybe () from /usr/lib/libruby1.8.so.1.8
#19 0xb7f7bc43 in st_foreach () from /usr/lib/libruby1.8.so.1.8
#20 0xb7f30efa in mark_tbl () from /usr/lib/libruby1.8.so.1.8
#21 0xb7f31f54 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#22 0xb7f31c80 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#23 0xb7f32362 in rb_gc_mark_maybe () from /usr/lib/libruby1.8.so.1.8
#24 0xb7f7bc43 in st_foreach () from /usr/lib/libruby1.8.so.1.8
#25 0xb7f30efa in mark_tbl () from /usr/lib/libruby1.8.so.1.8
#26 0xb7f31f54 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#27 0xb7f31c80 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#28 0xb7f31c80 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#29 0xb7f31c80 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#30 0xb7f32249 in rb_gc_call_finalizer_at_exit ()
    from /usr/lib/libruby1.8.so.1.8
#31 0xb7f3227f in rb_gc_mark_frame () from /usr/lib/libruby1.8.so.1.8
#32 0xb7f323ee in rb_gc_mark_maybe () from /usr/lib/libruby1.8.so.1.8
#33 0xb7f32d51 in rb_gc () from /usr/lib/libruby1.8.so.1.8
#34 0xb7f32d73 in rb_gc_start () from /usr/lib/libruby1.8.so.1.8
#35 0xb7f146e4 in rb_iterator_p () from /usr/lib/libruby1.8.so.1.8
#36 0xb7f1f16b in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#37 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#38 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#39 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#40 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#41 0xb7f1c680 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#42 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#43 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#44 0xb7f1c680 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#45 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#46 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#47 0xb7f1c680 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#48 0xb7f1e15a in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#49 0xb7f1d210 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#50 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#51 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#52 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#53 0xb7f275b4 in rb_apply () from /usr/lib/libruby1.8.so.1.8
#54 0xb7f1d320 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#55 0xb7f223b7 in rb_need_block () from /usr/lib/libruby1.8.so.1.8
#56 0xb7f23413 in rb_yield () from /usr/lib/libruby1.8.so.1.8
#57 0xb7f02a6a in rb_ary_each () from /usr/lib/libruby1.8.so.1.8
#58 0xb7f146e4 in rb_iterator_p () from /usr/lib/libruby1.8.so.1.8
#59 0xb7f1f16b in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#60 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#61 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#62 0xb7f1eae4 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#63 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#64 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#65 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#66 0xb7f275b4 in rb_apply () from /usr/lib/libruby1.8.so.1.8
#67 0xb7f1d320 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#68 0xb7f223b7 in rb_need_block () from /usr/lib/libruby1.8.so.1.8
#69 0xb7f23413 in rb_yield () from /usr/lib/libruby1.8.so.1.8
#70 0xb7f02a6a in rb_ary_each () from /usr/lib/libruby1.8.so.1.8
#71 0xb7f146e4 in rb_iterator_p () from /usr/lib/libruby1.8.so.1.8
#72 0xb7f1f16b in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#73 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#74 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#75 0xb7f1eae4 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#76 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#77 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#78 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#79 0xb7f1eae4 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#80 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#81 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#82 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#83 0xb7f1ca9e in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#84 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#85 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#86 0xb7f1c680 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#87 0xb7f1ca9e in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#88 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#89 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#90 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#91 0xb7f1ca9e in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#92 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#93 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#94 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#95 0xb7f1c443 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#96 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#97 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#98 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#99 0xb7f1f896 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.1.8
#100 0xb7f1fc42 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.
1.8
#101 0xb7f1c528 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.
1.8
#102 0xb7f1c5c3 in rb_thread_trap_eval () from /usr/lib/libruby1.8.so.
1.8
#103 0xb7f29646 in rb_eval_string () from /usr/lib/libruby1.8.so.1.8
#104 0xb7f29696 in ruby_exec () from /usr/lib/libruby1.8.so.1.8
#105 0xb7f2b7d5 in ruby_run () from /usr/lib/libruby1.8.so.1.8
#106 0x080486ac in main ()

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 5 07:45:22 2006

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.