From: Tanaka Akira Date: 2006-07-23T18:21:42+09:00 Subject: [ruby-dev:29114] Re: irb completion In article <5186BF87-DE31-4E18-9F4F-BDD44D531C41@zenspider.com>, Ryan Davis writes: > % cvs up -r1.8.2.1 lib/irb/completion.rb > % ./miniruby ./runruby.rb --extout=.ext -- ./bin/irb > irb(main):001:0> a=[] > => [] > irb(main):002:0> a.to_a. > Display all 512 possibilities? (y or n) n > irb(main):003:0> def Date.name(explode);end > => nil > irb(main):004:0> a.to_a./Users/ryan/Work/cvs/ruby-lang/ruby18/lib/irb/ > completion.rb:141: [BUG] Bus Error > ruby 1.8.5 (2006-06-27) [i686-darwin8.7.1] > > Abort trap reduced script: % ./ruby -rreadline -e 'Readline.completion_proc = lambda { raise }; p Readline.readline(">>")' >>-e:1: [BUG] Bus Error ruby 1.8.5 (2006-07-21) [powerpc-darwin8.6.0] zsh: abort ./ruby -rreadline -e % gdb ruby GNU gdb 6.1-20040303 (Apple version gdb-413) (Wed May 18 10:17:02 GMT 2005) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared libraries .... done (gdb) run -rreadline -e 'Readline.completion_proc = lambda { raise }; p Readline.readline(">>")' Starting program: /Users/akr/ruby/18/ruby/ruby -rreadline -e 'Readline.completion_proc = lambda { raise }; p Readline.readline(">>")' Reading symbols for shared libraries .. done Reading symbols for shared libraries ... done >> Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () Cannot access memory at address 0x0 Cannot access memory at address 0x0 Cannot access memory at address 0x0 #1 0x001e6280 in readline_readline (argc=Cannot access memory at address 0x0 Cannot access memory at address 0x0 4345712, argv=0x4, self=570425956) at readline.c:86 Cannot access memory at address 0x0 #2 0x0000d944 in rb_call0 (klass=1918640, recv=1918700, id=7057, oid=7057, argc=1, argv=0xbfffe4a0, body=0x1d469c, flags=0) at eval.c:5812 #3 0x0000e34c in rb_call (klass=1918640, recv=1918700, mid=7057, argc=1, argv=0xbfffe4a0, scope=0) at eval.c:6043 #4 0x0000b478 in rb_eval (self=1980900, n=0x6) at eval.c:3445 #5 0x0000b53c in rb_eval (self=1980900, n=0x6) at eval.c:3455 #6 0x0001ab28 in ruby_exec_internal () at eval.c:1606 #7 0x0001ab70 in ruby_exec () at eval.c:1626 #8 0x0001abb8 in ruby_run () at eval.c:1636 #9 0x0000225c in main (argc=4, argv=0xbffff7f8, envp=0x22000264) at main.c:46 (gdb) up #1 0x001e6280 in readline_readline (argc=4345712, argv=0x4, self=570425956) at readline.c:86 86 (*rl_deprep_term_function)(); (gdb) p rl_deprep_term_function $1 = (gdb) p (void *)rl_deprep_term_function $2 = (void *) 0x0 (gdb) -- Tanaka Akira