Skip to content

Instantly share code, notes, and snippets.

View dbussink's full-sized avatar

Dirkjan Bussink dbussink

View GitHub Profile
..................
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xb0886000
[Switching to process 26582 thread 0x2603]
0x000573c3 in rubinius::ObjectHeader::copy_body (this=0x1001254, state=0x400210, other=0xb0880768) at vm/oop.cpp:37
37 memcpy(dst, src, other->body_in_bytes(state));
(gdb) bt
#0 0x000573c3 in rubinius::ObjectHeader::copy_body (this=0x1001254, state=0x400210, other=0xb0880768) at vm/oop.cpp:37
#1 0x0011de72 in rubinius::Heap::copy_object (this=0x400398, state=0x400210, orig=0xb0880768) at vm/gc/heap.cpp:40
#2 0x00119dfa in rubinius::BakerGC::saw_object (this=0x40038c, obj=0xb0880768) at vm/gc/baker.cpp:55
..................
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000018
[Switching to process 21072 thread 0x2703]
0x0010747f in rubinius::GarbageCollector::walk_call_frame (this=0xf00fcc, top_call_frame=0xb0c853cc) at vm/gc/gc.cpp:120
120 Object* obj = call_frame->stk[i];
(gdb) bt
#0 0x0010747f in rubinius::GarbageCollector::walk_call_frame (this=0xf00fcc, top_call_frame=0xb0c853cc) at vm/gc/gc.cpp:120
#1 0x001057a0 in rubinius::BakerGC::collect (this=0xf00fcc, data=@0xb1485990) at vm/gc/baker.cpp:156
#2 0x00055c17 in rubinius::ObjectMemory::collect_young (this=0xf00fc0, data=@0x18) at vm/objectmemory.cpp:108
diff --git a/lib/dm-core/transaction.rb b/lib/dm-core/transaction.rb
index 57fa398..ecb4292 100644
--- a/lib/dm-core/transaction.rb
+++ b/lib/dm-core/transaction.rb
@@ -99,7 +99,6 @@ module DataMapper
end
else
raise "Illegal state for commit without block: #{@state}" unless @state == :begin
- each_adapter(:prepare_adapter, [:rollback_and_close_adapter_if_begin, :rollback_prepared_and_close_adapter_if_prepare])
each_adapter(:commit_adapter, [:log_fatal_transaction_breakage])
Starting program: /Users/dirkjan/Documents/projects/rubinius/vm/vm extconf.rb
Reading symbols for shared libraries ++++. done
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for postgres.h... yes
checking for mb/pg_wchar.h... yes
checking for catalog/pg_type.h... yes
Program received signal EXC_BAD_ACCESS, Could not access memory.
gcc -Ivm/external_libs/libtommath -Ivm/external_libs/libgdtoa -Ivm/external_libs/onig -Ivm/external_libs/libffi/include -Ivm/external_libs/libbstring -Ivm/external_libs/libcchash -Ivm/external_libs/libmquark -Ivm/external_libs/libmpa -Ivm/external_libs/libltdl -Ivm/external_libs/libev -Ivm/external_libs/llvm/include -I/usr/local/include -Ivm/test/cxxtest -Ivm -I. -Ivm/assembler -Ivm/assembler/udis86-1.7 -pipe -Wall -Wno-deprecated -DBASE_PATH=\"/Users/dirkjan/Documents/projects/rubinius\" -DRBA_PATH=\"/Users/dirkjan/Documents/projects/rubinius/runtime\" -DENABLE_LLVM -ggdb3 -O2 -Werror -DRBX_PROFILER -c -o vm/builtin/class.o vm/builtin/class.cpp 2>&1
gcc -Ivm/external_libs/libtommath -Ivm/external_libs/libgdtoa -Ivm/external_libs/onig -Ivm/external_libs/libffi/include -Ivm/external_libs/libbstring -Ivm/external_libs/libcchash -Ivm/external_libs/libmquark -Ivm/external_libs/libmpa -Ivm/external_libs/libltdl -Ivm/external_libs/libev -Ivm/external_libs/llvm/include -I/usr/local/include -Ivm/test/cxxtest -Ivm -
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0471b933
0x934069c1 in __s2b_D2A ()
(gdb) bt
#0 0x934069c1 in __s2b_D2A ()
#1 0x000120fc in ruby_strtod (s00=0x2dd94f0 "57262152889751597425762.57804", se=0xbfff390c) at strtod.c:515
#2 0x000ce2e7 in rubinius::String::to_double (this=0x471b933, state=0x471b933) at vm/builtin/string.cpp:304
#3 0x000ce389 in rubinius::String::to_f (this=0x471b933, state=0xe00d90) at vm/builtin/string.cpp:271
#4 0x000f322f in float_from_bstring [inlined] () at vm/parser/grammar_runtime.cpp:55
#5 0x000f322f in rubinius::parser::syd_add_to_parse_tree (state=0xe00d90, parse_state=0x2dd5630, ary=0x19471c0, n=0x471b933, locals=0x0) at vm/parser/grammar_runtime.cpp:810
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.3
:0:Warning: Gem::SourceIndex#search support for String patterns is deprecated
Updating RubyGems to 1.3.3
Installing RubyGems 1.3.3
ERROR: While executing gem ... (Gem::Exception)
[BUG] invalid exec_format "rbx", no %s
diff --git a/lib/dm-core/collection.rb b/lib/dm-core/collection.rb
index c62dd9e..73a83fa 100644
--- a/lib/dm-core/collection.rb
+++ b/lib/dm-core/collection.rb
@@ -80,7 +80,7 @@ module DataMapper
end
properties = model.properties(repository.name)
- fields = properties.key | [ properties.discriminator ].compact | self.query.fields | query.fields
+ fields = properties.key | [ properties.discriminator ].compact | query.fields
dirkjan@nvc1372 ~/Documents/projects/do/do_sqlite3 next $ ../../rubinius/bin/rbx -I"spec:lib" ../../rubinius/bin/spec -f s spec/result_spec.rb
DataObjects::Sqlite3::Result
- should respond to #affected_rows
- should respond to #affected_rows
DataObjects::Sqlite3::Result affected_rows
- should return the number of affected rows
DataObjects::Sqlite3::Result insert_id
dirkjan@nvc1372 ~/Documents/projects/do/do_sqlite3 next $ ../../rubinius/bin/rbx -I"spec:lib" ../../rubinius/bin/spec spec/reader_spec.rb
.........FFF.F.
1)
NoMethodError in 'DataObjects::Sqlite3::Reader close on an open reader should return true'
No method 'be_an_be_a_be_?' on an instance of TrueClass.
kernel/delta/kernel.rb:47:in `method_missing'
/Users/dirkjan/Documents/projects/do/data_objects/lib/data_objects/spec/reader_spec.rb:71:in `__script__ {}'
kernel/common/eval.rb:117:in `instance_eval'
/Users/dirkjan/Documents/projects/rubinius/lib/timeout.rb:134:in `timeout'