Skip to content

Instantly share code, notes, and snippets.

View dbussink's full-sized avatar

Dirkjan Bussink dbussink

View GitHub Profile
# Pep translation file (DUTCH)
# Copyright (C) 2008 Nedap N.V.
# All rights reserved.
# Dirkjan Bussink <[email protected]>, 2008
#
msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"POT-Creation-Date: 2009-06-26 14:19+0200\n"
"PO-Revision-Date: 2008-05-08 09:41+0200\n"
dbussink@sv-dimensie ~/rubinius $ ./bin/rbx -Xjit.show
[[[ JIT Queued method 1/0 ]]]
[[[ JIT finished background compiling 1 (block) ]]]
[[[ JIT Queued method 2/1 ]]]
[[[ JIT Queued method 3/1 ]]]
[[[ JIT Queued method 4/1 ]]]
[[[ JIT Queued method 5/1 ]]]
[[[ JIT Queued method 6/1 ]]]
[[[ JIT Queued method 7/1 ]]]
[[[ JIT Queued method 8/1 ]]]
(gdb) run
Starting program: /home/dbussink/rubinius/bin/rbx compile -d -p -I/home/dbussink/rubinius/vm/capi -C,-pipe -C,-Wall -C,-DBASE_PATH=\"/home/dbussink/rubinius\" -C,-DRBA_PATH=\"/home/dbussink/rubinius/runtime\" -C,-ggdb3 lib/ext/readline
[Thread debugging using libthread_db enabled]
[New Thread 0x7f31d0eac6f0 (LWP 21803)]
[New Thread 0x40fb3950 (LWP 21806)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f31d0eac6f0 (LWP 21803)]
0x0000000000697e8e in llvm::ExecutionEngine::getTargetData (this=0x0)
at vm/external_libs/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:146
64-bit capable system running Snow Leopard
>> pp Config::CONFIG
{"INSTALL_SCRIPT"=>"/usr/bin/install -c",
"DEFS"=>"",
"PACKAGE_VERSION"=>"",
"GREP"=>"/usr/bin/grep",
"EXPORT_PREFIX"=>"",
"COMMON_LIBS"=>"",
"sharedstatedir"=>
32-bit *only* Snow Leopard
>> pp Config::CONFIG
{"INSTALL_SCRIPT"=>"/usr/bin/install -c",
"DEFS"=>"",
"PACKAGE_VERSION"=>"",
"GREP"=>"/usr/bin/grep",
"EXPORT_PREFIX"=>"",
"COMMON_LIBS"=>"",
"sharedstatedir"=>
Compiling kernel/loader.rb
Compiling lib/strscan.rb
Compiling lib/stringio.rb
Compiling lib/racc/parser.rb
Compiling lib/ruby_lexer.rb
Compiling lib/ruby_parser.rb
Compiling lib/ruby_parser_extras.rb
Compiling lib/sexp_processor.rb
cp kernel/bootstrap/load_order.txt runtime/bootstrap/load_order.txt
cp kernel/platform/load_order.txt runtime/platform/load_order.txt
diff --git a/kernel/compiler/compile.rb b/kernel/compiler/compile.rb
index 6d07471..0eb5fab 100644
--- a/kernel/compiler/compile.rb
+++ b/kernel/compiler/compile.rb
@@ -93,7 +93,7 @@ class Compiler
# Unqualified
else
$LOAD_PATH.each do |dir|
- if rbc and dir.suffix? '.rba' and File.file? dir and !options[:recompile]
+ if rbc and File.file?(dir) and dir.suffix?('.rba') and !options[:recompile]
it "should destroy a resource that is marked_for_destruction (FAILS)" do
person = Person.create
profile = Profile.create :person => person
p person.profiles
person.send(:child_associations).should_not be_empty
end
Changing the debug to p person.profiles.first makes it fail
dirkjan@nvc1372 ~/Documents/projects/rubinius master $ TOTAL=5000 ~/.multiruby/install/mri_rel_1_9_1/bin/ruby benchmark/rubinius/bm_array_each.rb
Rehearsal ----------------------------------------------
loop 0.000000 0.000000 0.000000 ( 0.000700)
Array#each 2.680000 0.010000 2.690000 ( 2.828684)
------------------------------------- total: 2.690000sec
user system total real
loop 0.000000 0.000000 0.000000 ( 0.000649)
Array#each 2.680000 0.010000 2.690000 ( 2.781970)
dirkjan@nvc1372 ~/Documents/projects/rubinius master $ TOTAL=5000 ~/.multiruby/install/mri_rel_1_8_7/bin/ruby benchmark/rubinius/bm_array_each.rb
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x001084ff in rubinius::GarbageCollector::delete_object (this=0xf0107c, obj=0x1ded97a) at vm/gc/gc.cpp:71
71 object_memory->find_type_info(obj)->cleanup(obj);
(gdb) bt
#0 0x001084ff in rubinius::GarbageCollector::delete_object (this=0xf0107c, obj=0x1ded97a) at vm/gc/gc.cpp:71
#1 0x00106cb2 in rubinius::BakerGC::find_lost_souls (this=0xf0107c) at vm/gc/baker.cpp:264
#2 0x00107658 in rubinius::BakerGC::collect (this=0xf0107c, data=@0xbfff66c0) at vm/gc/baker.cpp:207
#3 0x00056187 in rubinius::ObjectMemory::collect_young (this=0xf01070, data=@0x0) at vm/objectmemory.cpp:108
#4 0x000b55e2 in rubinius::VM::collect_maybe (this=0xf00f00, call_frame=0x0) at vm/vm.cpp:267