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

Stack Trace for Ruby Segfaults

From: David James <james82_at_gmail.com>
Date: 2005-06-21 23:59:34 CEST

Hi Kouhei, Jani:

This stack trace shows a segfault I got on my system with the svnserve
port = 19191. I compiled subversion and APR with debug symbols enabled
and ran Ruby in debug mode.

Cheers,

David

james@syntax% gdb ruby
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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) run -d test/run-test.rb --verbose=verbose
Starting program: /h/46/james/bin/ruby -d test/run-test.rb --verbose=verbose
Exception `Errno::EEXIST' at /h/46/james/lib/ruby/1.8/fileutils.rb:212
- File exists -
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/.ext/svn
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/.ext/svn/ext/core.so:
warning: global variable `$swig_runtime_data_type_pointer2' not
initialized
Exception `LoadError' at /h/46/james/lib/ruby/1.8/tmpdir.rb:12 - No
such file to load -- Win32API
Exception `LoadError' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:8
- No such file to load -- uconv
Loaded suite test
Started
test_change_prop(SvnDeltaTest): Exception `Errno::EEXIST' at
/h/46/james/lib/ruby/1.8/fileutils.rb:212 - File exists - test
Exception `Svn::Error::DIR_NOT_EMPTY' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/.ext/svn/ext/repos.so:0
- Repository creation failed
Could not create top-level directory
'test/repos' exists and is non-empty
E/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/test/util.rb:76:
warning: instance variable @svnserve_pid not initialized

test_changed(SvnDeltaTest): Exception `Errno::EEXIST' at
/h/46/james/lib/ruby/1.8/fileutils.rb:212 - File exists - test
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed1.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed2.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed3.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed4.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed5.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed6.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed7.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed8.txt
.
test_deep_copy(SvnDeltaTest): Exception `Errno::EEXIST' at
/h/46/james/lib/ruby/1.8/fileutils.rb:212 - File exists - test
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/file1.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/dir1/file2.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/dir1/dir2/file3.txt
.
test_changed(SvnInfoTest): Exception `Errno::EEXIST' at
/h/46/james/lib/ruby/1.8/fileutils.rb:212 - File exists - test
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed1.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed2.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed3.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed4.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed5.txt
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed6.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed7.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/changed_dir/changed8.txt
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
removing /tmp/svn_fs4626.0...done
removing /tmp/svn_fs4626.1...done
removing /tmp/svn_fs4626.2...done
removing /tmp/svn_fs4626.3...done
removing /tmp/svn_fs4626.4...done
removing /tmp/svn_fs4626.5...done
removing /tmp/svn_fs4626.6...done
removing /tmp/svn_fs4626.7...done
removing /tmp/svn_fs4626.8...done
removing /tmp/svn_fs4626.9...done
removing /tmp/svn_fs4626.12...done
removing /tmp/svn_fs4626.13...done
removing /tmp/svn_fs4626.14...done
removing /tmp/svn_fs4626.15...done
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
.
test_diff(SvnInfoTest): Exception `Errno::EEXIST' at
/h/46/james/lib/ruby/1.8/fileutils.rb:212 - File exists - test
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/diff1.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/diff3.txt
Exception `Errno::ENOENT' at /h/46/james/lib/ruby/1.8/fileutils.rb:821
- No such file or directory - test/wc/diff4.txt
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
Exception `Uconv::Error' at
/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/svn/info.rb:14
- Uconv::Error
.
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
#8 0x4057b0aa in prompt_for_username_creds (cred_p=0xbfff0280, pb=0x823b6d0,
    parameters=0x85e29e0,
    realmstring=0x81544c0 "b04e7b57-14fa-0310-86db-dd7eb51412b0", first_time=1,
    may_save=1, pool=0x8328920)
    at subversion/libsvn_client/username_providers.c:230
#9 0x4057b161 in username_prompt_first_creds (credentials_p=0xbfff0280,
    iter_baton=0xbfff027c, provider_baton=0x823b6d0, parameters=0x85e29e0,
    realmstring=0x81544c0 "b04e7b57-14fa-0310-86db-dd7eb51412b0",
pool=0x8328920)
    at subversion/libsvn_client/username_providers.c:255
#10 0x40271f45 in svn_auth_first_credentials (credentials=0xbfff02d0,
    state=0xbfff02d8, cred_kind=0x4058b147 "svn.username",
    realmstring=0x81544c0 "b04e7b57-14fa-0310-86db-dd7eb51412b0",
    auth_baton=0x85e2958, pool=0x8328920) at subversion/libsvn_subr/auth.c:198
#11 0x40588567 in get_username (session=0x82a5e58, pool=0x8328920)
    at subversion/libsvn_ra_local/ra_plugin.c:200
#12 0x40588ce2 in svn_ra_local__get_commit_editor (session=0x82a5e58,
    editor=0xbfff049c, edit_baton=0xbfff0498, log_msg=0x82a5a38 "diff path",
    callback=0x40563c50 <svn_client__commit_callback>, callback_baton=0x82b1478,
    lock_tokens=0x82a68a0, keep_locks=1, pool=0x8328920)
    at subversion/libsvn_ra_local/ra_plugin.c:503
#13 0x40583e12 in svn_ra_get_commit_editor (session=0x82a5e58,
editor=0xbfff049c,
    edit_baton=0xbfff0498, log_msg=0x82a5a38 "diff path",
    callback=0x40563c50 <svn_client__commit_callback>, callback_baton=0x82b1478,
    lock_tokens=0x82a68a0, keep_locks=1, pool=0x8328920)
    at subversion/libsvn_ra/ra_loader.c:335
#14 0x4055f4af in get_ra_editor (ra_session=0xbfff0494, latest_rev=0x0,
    editor=0xbfff049c, edit_baton=0xbfff0498, ctx=0x81643b8,
    base_url=0x83d0250
"file:///nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/test/repos",
    base_dir=0x82ea128
"/nobackup/clgrp/james/ruby/trunk/subversion/bindings/swig/ruby/test/wc",
base_access=0x82ab348, log_msg=0x82a5a38 "diff path",
    commit_items=0x8348580, commit_info=0xbfff0514, is_commit=1,
    lock_tokens=0x82a68a0, keep_locks=1, pool=0x8328920)
    at subversion/libsvn_client/commit.c:626
#15 0x40560ed1 in svn_client_commit2 (commit_info=0xbfff0514, targets=0x83a39d8,
    recurse=1, keep_locks=1, ctx=0x81643b8, pool=0x8328920)
    at subversion/libsvn_client/commit.c:1482
#16 0x40561366 in svn_client_commit (commit_info=0xbfff0514, targets=0x83a39d8,
    nonrecursive=0, ctx=0x81643b8, pool=0x8328920)
    at subversion/libsvn_client/commit.c:1632
#17 0x405433b3 in _wrap_svn_client_commit (argc=4, argv=0x83a39c0,
self=1075560756)
    at subversion/bindings/swig/ruby/svn_client.c:3450
#18 0x0806a268 in call_cfunc ()
#19 0x0805d4d4 in rb_call0 ()
#20 0x08063bb5 in method_call ()
#21 0x080641a9 in bmcall ()
#22 0x0805ba1a in rb_yield_0 ()
#23 0x08062a5c in proc_invoke ()
#24 0x0805d59e in rb_call0 ()
#25 0x0805dfc2 in rb_call ()
#26 0x080581fc in rb_eval ()
#27 0x0805ba34 in rb_yield_0 ()
#28 0x080575b6 in rb_eval ()
#29 0x0805900f in rb_eval ()
#30 0x0805daad in rb_call0 ()
#31 0x0805dfc2 in rb_call ()
#32 0x080581fc in rb_eval ()
#33 0x080571d6 in rb_eval ()
#34 0x0805daad in rb_call0 ()
#35 0x0805dfc2 in rb_call ()
#36 0x080581fc in rb_eval ()
#37 0x0805900f in rb_eval ()
#38 0x0805daad in rb_call0 ()
#39 0x0805dfc2 in rb_call ()
#40 0x0805e0e0 in rb_f_send ()
#41 0x0806a268 in call_cfunc ()
#42 0x0805d4d4 in rb_call0 ()
#43 0x0805dfc2 in rb_call ()
#44 0x0805845f in rb_eval ()
#45 0x0805765d in rb_eval ()
#46 0x0805785e in rb_eval ()
#47 0x0805daad in rb_call0 ()
#48 0x0805dfc2 in rb_call ()
#49 0x080581fc in rb_eval ()
#50 0x0806325e in block_pass ()
#51 0x08056ffa in rb_eval ()
#52 0x0805ba34 in rb_yield_0 ()
#53 0x0805bddb in rb_yield ()
#54 0x080cfc7f in rb_ary_each ()
#55 0x0806a27b in call_cfunc ()
#56 0x0805d4d4 in rb_call0 ()
#57 0x0805dfc2 in rb_call ()
#58 0x080581fc in rb_eval ()
#59 0x080571d6 in rb_eval ()
#60 0x0805daad in rb_call0 ()
#61 0x0805dfc2 in rb_call ()
#62 0x080581fc in rb_eval ()
#63 0x0806325e in block_pass ()
#64 0x08056ffa in rb_eval ()
#65 0x0805ba34 in rb_yield_0 ()
#66 0x0805bddb in rb_yield ()
#67 0x080cfc7f in rb_ary_each ()
#68 0x0806a27b in call_cfunc ()
#69 0x0805d4d4 in rb_call0 ()
#70 0x0805dfc2 in rb_call ()
#71 0x080581fc in rb_eval ()
#72 0x080571d6 in rb_eval ()
#73 0x0805daad in rb_call0 ()
#74 0x0805dfc2 in rb_call ()
#75 0x080581fc in rb_eval ()
#76 0x080571d6 in rb_eval ()
#77 0x0805daad in rb_call0 ()
#78 0x0805dfc2 in rb_call ()
#79 0x080581fc in rb_eval ()
#80 0x08057c4d in rb_eval ()
#81 0x0805daad in rb_call0 ()
#82 0x0805dfc2 in rb_call ()
#83 0x080584a3 in rb_eval ()
#84 0x08057c4d in rb_eval ()
#85 0x0805daad in rb_call0 ()
#86 0x0805dfc2 in rb_call ()
#87 0x080581fc in rb_eval ()
#88 0x08057c4d in rb_eval ()
#89 0x0805daad in rb_call0 ()
#90 0x0805dfc2 in rb_call ()
#91 0x080581fc in rb_eval ()
#92 0x0805800d in rb_eval ()
#93 0x0805daad in rb_call0 ()
#94 0x0805dfc2 in rb_call ()
#95 0x080581fc in rb_eval ()
#96 0x0805daad in rb_call0 ()
#97 0x0805dfc2 in rb_call ()
#98 0x080581fc in rb_eval ()
#99 0x08058320 in rb_eval ()
#100 0x08053d2b in eval_node ()
#101 0x080542c1 in ruby_exec_internal ()
#102 0x08054312 in ruby_exec ()
#103 0x08054334 in ruby_run ()
#104 0x080522fc in rb_secure () at main.c:46
#105 0x4007e5d9 in __libc_start_main () from /lib/libc.so.6

-- 
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 22 00:01:03 2005

This is an archived mail posted to the Subversion Dev mailing list.