[MacRuby] #1013: Segmentation fault when using readline
#1013: Segmentation fault when using readline ------------------------------+--------------------------------------------- Reporter: pelsen@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Dear MacRuby Developers, When messing aound with MacRuby, I tried readline, but whenever I use it it exits, saying "Segmentation fault". I don't think that's good :). I am running Mac OS X on a Mac Mini, uname -a output: Darwin Brutus.local 10.5.0 Darwin Kernel Version 10.5.0: Fri Nov 5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386 i386 macirb --version output: DietRB (0.5.1) macruby --version output: MacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64] How to reproduce: Brutus:~ patrick$ macirb irb(main):001:0> readline Segmentation fault Brutus:~ patrick$ -- Ticket URL: <http://www.macruby.org/trac/ticket/1013> MacRuby <http://macruby.org/>
#1013: Segmentation fault when using readline ------------------------------+--------------------------------------------- Reporter: pelsen@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): backtrace: {{{ (gdb) bt #0 0x0000000100049bda in argf_next_argv (argf=17184158528) at io.c:3311 #1 0x000000010004c202 in argf_readline (argf=17184158528, sel=<value temporarily unavailable, due to optimizations>, argc=0, argv=0x0) at io.c:3516 #2 0x00000001001396c5 in rb_vm_dispatch (_vm=0x100b0e040, cache=0x100aa0f80, top=17184158528, self=17184158528, klass=0x40030a000, sel=0x10213c090, block=0x0, opt=1 '\001', argc=0, argv=0x0) at dispatcher.cpp:448 #3 0x000000010015e93f in rb_vm_call0 [inlined] () at /Users/lrz/src /macruby-trunk/vm.h:603 #4 0x000000010015e93f in RoxorInterpreter::interpret_call (this=0x10217b470, call=<value temporarily unavailable, due to optimizations>) at vm.h:279 #5 0x000000010015f16a in RoxorInterpreter::interpret_instruction (this=0x10217b470, insn=0x100bbe6f0) at interpreter.cpp:176 #6 0x000000010015f3b4 in RoxorInterpreter::interpret_basicblock (this=0x10217b470, bb=0x100bbe120) at interpreter.cpp:272 #7 0x000000010015efa6 in RoxorInterpreter::interpret_instruction (this=0x10217b470, insn=0x100bbe1b0) at interpreter.cpp:160 #8 0x000000010015f3b4 in RoxorInterpreter::interpret_basicblock (this=0x10217b470, bb=0x100bbdee0) at interpreter.cpp:272 #9 0x0000000100151456 in rb_vm_run (fname=0x4004c0680 "-e", node=0x4004c1580, binding=0x0, inside_eval=false) at vm.cpp:3889 #10 0x000000010002fd10 in ruby_run_node (n=0x4004c1580) at eval.c:211 #11 0x0000000100000cf8 in main (argc=5, argv=0x100b070c0, envp=<value temporarily unavailable, due to optimizations>) at main.cpp:40 }}} Note: this is about IO#readline, not libreadline. -- Ticket URL: <http://www.macruby.org/trac/ticket/1013#comment:1> MacRuby <http://macruby.org/>
#1013: Segmentation fault when using readline ------------------------------+--------------------------------------------- Reporter: pelsen@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: | ------------------------------+--------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 0.7 => MacRuby 0.8 Comment: Should be fixed in r4954. -- Ticket URL: <http://www.macruby.org/trac/ticket/1013#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby