Skip to content

Instantly share code, notes, and snippets.

View dbussink's full-sized avatar

Dirkjan Bussink dbussink

View GitHub Profile
diff --git a/lib/iconv.rb b/lib/iconv.rb
index 88342a4..8f26357 100644
--- a/lib/iconv.rb
+++ b/lib/iconv.rb
@@ -153,7 +153,7 @@ class Iconv
is = FFI::MemoryPointer.new(str.size + 10)
is.write_string str, str.size
- l1.write_long is.address
+ l1.write_pointer is.address
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
(gdb) run
Starting program: /home/dbussink/rubinius/bin/rbx -XJ
[Thread debugging using libthread_db enabled]
diff --git a/vm/llvm/inline_primitive.cpp b/vm/llvm/inline_primitive.cpp
index 3a6be9f..1deded8 100644
--- a/vm/llvm/inline_primitive.cpp
+++ b/vm/llvm/inline_primitive.cpp
@@ -101,8 +101,8 @@ namespace rubinius {
Value* anded = BinaryOperator::CreateAnd(lint, rint, "fixnums_anded", ops.current_block());
- Value* fix_mask = ConstantInt::get(Type::Int32Ty, TAG_FIXNUM_MASK);
- Value* fix_tag = ConstantInt::get(Type::Int32Ty, TAG_FIXNUM);
diff --git a/vm/llvm/inline_primitive.cpp b/vm/llvm/inline_primitive.cpp
index 3a6be9f..deee7ae 100644
--- a/vm/llvm/inline_primitive.cpp
+++ b/vm/llvm/inline_primitive.cpp
@@ -101,8 +101,8 @@ namespace rubinius {
Value* anded = BinaryOperator::CreateAnd(lint, rint, "fixnums_anded", ops.current_block());
- Value* fix_mask = ConstantInt::get(Type::Int32Ty, TAG_FIXNUM_MASK);
- Value* fix_tag = ConstantInt::get(Type::Int32Ty, TAG_FIXNUM);
diff --git a/vm/vmmethod.cpp b/vm/vmmethod.cpp
index 5f915c1..8dd7b37 100644
--- a/vm/vmmethod.cpp
+++ b/vm/vmmethod.cpp
@@ -547,17 +547,12 @@ namespace rubinius {
frame->cm = cm;
frame->scope = scope;
-
#ifdef RBX_PROFILER
(gdb) run
Starting program: /Users/dirkjan/Documents/projects/rubinius/bin/rbx -e String\ =\ nil\;\ puts\ \'foo\'
Reading symbols for shared libraries ++++. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0xbf7fffe4
rubinius::VMMethod::interpreter (state=0xf00ff0, vmm=0xfbe680, call_frame=0xbf800270, args=@0xbf800644) at vm/gen/instructions.cpp:200
200 Object** stack_ptr = call_frame->stk - 1;
(gdb) bt
#0 rubinius::VMMethod::interpreter (state=0xf00ff0, vmm=0xfbe680, call_frame=0xbf800270, args=@0xbf800644) at vm/gen/instructions.cpp:200
./bin/rbx -S gem install rdoc
Successfully installed rdoc-2.4.3
1 gem installed
Installing ri documentation for rdoc-2.4.3...
ERROR: While executing gem ... (NoMethodError)
No method 'keys' on an instance of RDoc::Markup::Flow::RULE.
./bin/rbx -S gem install rdoc
Successfully installed rdoc-2.4.3
1 gem installed
Installing ri documentation for rdoc-2.4.3...
ERROR: While executing gem ... (NoMethodError)
No method 'keys' on an instance of RDoc::RI::MethodDescription.
t1 = Thread.new do
sleep 1
100.times do
puts "foo"
end
end
t2 = Thread.new do
sleep 1
100.times do
============
JIT DISABLED
============
Finished in 30.336764 seconds
1581 files, 7971 examples, 25172 expectations, 4 failures, 0 errors
Garbage collector stats: