[ruby-core:66445] segvs after r48551

From: Aaron Patterson <tenderlove@...>
Date: 2014-11-24 22:47:27 UTC
List: ruby-core #66445
Hi,

I'm getting segvs when running this program:

  $ ./ruby -e'puts Process::CLOCK_REALTIME'

The backtrace leads me to believe the symbol is getting GC'd:

Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00000001001dc057 in str_replace_shared_without_enc (str2=4320647240, str=0) at string.c:874
warning: Source file is more recent than executable.
874         if (RSTRING_LEN(str) <= RSTRING_EMBED_LEN_MAX) {
(gdb) bt
#0  0x00000001001dc057 in str_replace_shared_without_enc (str2=4320647240, str=0) at string.c:874
#1  0x00000001001e38fd in str_replace_shared (str2=4320647240, str=0) at string.c:892
#2  0x00000001001be535 in str_new_shared (klass=4304277200, str=0) at string.c:900
#3  0x00000001001ceba2 in rb_sym_to_s (sym=12) at string.c:8599
#4  0x0000000100265803 in call_cfunc_0 (func=0x1001ceb70 <rb_sym_to_s>, recv=12, argc=0, argv=0x0) at vm_insnhelper.c:1193
#5  0x00000001002644b2 in vm_call0_cfunc_with_frame (th=0x100508f90, ci=0x7fff5fbfd7c0, argv=0x0) at vm_eval.c:127
#6  0x0000000100263df5 in vm_call0_cfunc (th=0x100508f90, ci=0x7fff5fbfd7c0, argv=0x0) at vm_eval.c:144
#7  0x00000001002638f1 in vm_call0_body (th=0x100508f90, ci=0x7fff5fbfd7c0, argv=0x0) at vm_eval.c:184
#8  0x0000000100250dc1 in vm_call0 (th=0x100508f90, recv=12, id=3233, argc=0, argv=0x0, me=0x100517ee0, defined_class=4304273720) at vm_eval.c:59
#9  0x0000000100262dbe in rb_call0 (recv=12, mid=3233, argc=0, argv=0x0, scope=CALL_FCALL, self=4304184600) at vm_eval.c:348
#10 0x0000000100251c48 in rb_call (recv=12, mid=3233, argc=0, argv=0x0, scope=CALL_FCALL) at vm_eval.c:610
#11 0x0000000100251eac in rb_funcall (recv=12, mid=3233, n=0) at vm_eval.c:812
#12 0x00000001001c013f in rb_obj_as_string (obj=12) at string.c:1111
#13 0x00000001000acf19 in rb_io_puts (argc=1, argv=0x100600028, out=4304184600) at io.c:7096


-- 
Aaron Patterson
http://tenderlovemaking.com/

In This Thread

Prev Next