Def m() yield end; m(&lambda {})

[ruby-dev:29022] e$B$N%9%/%j%W%H$,4V0c$C$F$$$F!":n$j$J$*$7$F!“e(B
[email protected]$r$”$2$F$$$?$H$3$m!"e(Bcore e$B$rEG$/%1!<%9$,=P$F$-$^$7$?!#e(B

% ./ruby -ve ‘def m() yield end; m(&lambda {})’
ruby 1.9.0 (2006-07-14) [i686-linux]
zsh: segmentation fault (core dumped) ./ruby -ve ‘def m() yield end;
m(&lambda {})’
% gdb ruby core
GNU gdb 6.4-debian
Copyright 2005 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 “i486-linux-gnu”…Using host libthread_db
library “/lib/tls/libthread_db.so.1”.

Core was generated by `./ruby -ve def m() yield end; m(&lambda {})’.
Program terminated with signal 11, Segmentation fault.

warning: Can’t read pathname for load map: /.
Reading symbols from /lib/tls/libdl.so.2…done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libcrypt.so.1…done.
Loaded symbols for /lib/tls/libcrypt.so.1
Reading symbols from /lib/tls/libm.so.6…done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libc.so.6…done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2…done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x08064a86 in rb_yield_0 (val=6, self=3084302880, klass=0, flags=0)
at eval.c:4822
4822 else if (lambda && RARRAY(val)->len != 0 &&
(gdb) bt
#0 0x08064a86 in rb_yield_0 (val=6, self=3084302880, klass=0, flags=0)
at eval.c:4822
#1 0x0805e808 in rb_eval (self=3084302880, n=)
at eval.c:3017
#2 0x0806190b in rb_call0 (klass=,
recv=3084302880,
id=10761, oid=10761, argc=0, argv=0x0, block=0xbfa241d0,
body=0xb7d5b65c,
flags=16) at eval.c:5847
#3 0x08061cf3 in rb_call (klass=3084307740, recv=3084302880, mid=10761,
argc=0, argv=0x0, block=0xbfa241d0, scope=CALLING_FCALL, iter=0)
at eval.c:5970
#4 0x0805e4e3 in rb_eval (self=3084302880, n=)
at eval.c:3317
#5 0x0806cef0 in ruby_exec_internal () at eval.c:1593
#6 0x0806cf26 in ruby_exec () at eval.c:1608
#7 0x0806cf50 in ruby_run () at eval.c:1624
#8 0x0805459c in main (argc=6, argv=0x6, envp=0xbfa244f4) at main.c:43
(gdb)

e$B$J$*!"8e$G$^$?JL$K=q$-$^$9$,!"e(B[ruby-dev:29022] e$B$Oe(B
ArgumentError e$B$NHf3S$r4V0c$C$F$$$F!"[email protected]$b4V0c$C$F$$$^$9!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs