Ruby bindings core dump
From: Blair Zajac <blair_at_orcaware.com>
Date: 2007-02-16 20:32:52 CET
I've been getting consistent core dumps in a simple Ruby script using
/usr/local/lib/ruby/site_ruby/1.8/svn/util.rb:60:in
#0 0x001027a2 in ?? () from /lib/ld-linux.so.2
Below is the script. Is there something that the Ruby bindings are not
Regards,
-- Blair Zajac, Ph.D. <blair@orcaware.com> Subversion training, consulting and support http://www.orcaware.com/svn/ #!/usr/local/bin/ruby require 'fileutils' require 'svn/client' $root_repos = "#{Dir.getwd}/repos" $root_wc = "#{Dir.getwd}/wc" FileUtils.remove_dir($root_repos, true) FileUtils.remove_dir($root_wc, true) system("svnadmin create --fs-type bdb #{$root_repos}") $ctx = Svn::Client::Context.new $ctx.add_simple_provider $ctx.add_username_prompt_provider(0) do |cred, realm, username, may_save| cred.username = 'blairzajac' cred.may_save = false end $ctx.checkout("file://#{$root_repos}", $root_wc) global_log_message = "" def make_dir(show_name) show_dir = "#{$root_wc}/#{show_name}" unless File.directory?(show_dir) print "Adding #{show_dir}..." $ctx.mkdir(show_dir) global_log_message = "Adding show '#{show_name}'." $ctx.set_log_msg_func do |items| [true, "Adding show '#{show_name}'."] end $ctx.commit([$root_wc]) puts '' end end (0..1000).each do |i| d = "abc#{i}" puts d make_dir(d) end --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Fri Feb 16 20:33:13 2007 |
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.