public
Created

  • Download Gist
0.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
diff --git a/compile.c b/compile.c
index 535084b..ac91020 100644
--- a/compile.c
+++ b/compile.c
@@ -3105,6 +3105,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
debug_node_start(node);
type = nd_type(node);
+ printf("&type == %p\n", &type); fflush(stdout);
if (node->flags & NODE_FL_NEWLINE) {
ADD_TRACE(ret, nd_line(node), RUBY_EVENT_LINE);
diff --git a/thread_pthread.c b/thread_pthread.c
index ab227e3..bb3e01a 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1425,6 +1425,9 @@ ruby_stack_overflowed_p(const rb_thread_t *th, const void *addr)
else {
return 0;
}
+ printf("size == %"PRIuSIZE"\n", size);
+ printf("base == %p\n", base);
+ printf("addr == %p\n", addr);
size /= 5;
if (size > water_mark) size = water_mark;
if (IS_STACK_DIR_UPPER()) {
1.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
&type == 0x7fff5429b868
&type == 0x7fff54299d58
&type == 0x7fff54298248
&type == 0x7fff54296738
&type == 0x7fff54294c28
size == 3355444
base == 0x7fff5435d7d4
addr == 0x7fff54290fa8
base - addr == 837676
-e:1: [BUG] Segmentation fault
ruby 2.0.0dev (2012-10-03 trunk 37076) [x86_64-darwin12.2.0]
 
-- Control frame information -----------------------------------------------
c:0003 p:---- s:0008 e:000007 CFUNC :compile
c:0002 p:0027 s:0004 e:000e08 EVAL -e:1 [FINISH]
c:0001 p:0000 s:0002 e:000f68 TOP [FINISH]
 
-e:1:in `<main>'
-e:1:in `compile'
 
-- C level backtrace information -------------------------------------------
 
See Crash Report log file under ~/Library/Logs/CrashReporter,
/Library/Logs/CrashReporter, or /Library/Logs/DiagnosticReports, for
the more detail of.
 
-- Other runtime information -----------------------------------------------
 
* Loaded script: -e
 
* Loaded features:
 
0 enumerator.so
1 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/x86_64-darwin12.2.0/enc/encdb.bundle
2 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/x86_64-darwin12.2.0/enc/trans/transdb.bundle
3 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/rubygems/defaults.rb
4 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/x86_64-darwin12.2.0/rbconfig.rb
5 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/rubygems/deprecate.rb
6 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/rubygems/exceptions.rb
7 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/rubygems/custom_require.rb
8 /Users/mrkn/work/ruby.git/.prefix/lib/ruby/2.0.0/rubygems.rb
 
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
 
Abort trap: 6

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.