# \[Bug:1.9\] SEGV by ./ruby -e ''

**URL:** <https://www.ruby-forum.com/t/bug-1-9-segv-by-ruby-e/139929>\
**Category:** Development\
**Created:** [June 9, 2008, 8:02am UTC](https://www.ruby-forum.com/t/bug-1-9-segv-by-ruby-e/139929 "2008-06-09T08:02:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [June 9, 2008, 8:02am UTC](https://www.ruby-forum.com/t/bug-1-9-segv-by-ruby-e/139929/1 "2008-06-09T08:02:47Z")

</div>

e$B0J2\<$N$h$&$Ke(B ./ruby -e ‘’ e$B$,e(B SEGV e$B$7$^$9!#e(B

% ./ruby -e ‘’  
./ruby: [BUG] Segmentation fault  
ruby 1.9.0 (2008-06-09 revision 17041) [i686-linux]

## – stack frame ------------ 0000 (0xb7d36008): 00000004 0001 (0xb7d3600c): 00000001 0002 (0xb7d36010): 00000004 0003 (0xb7d36014): 00000001 \<- lfp \<- dfp – control frame ---------- c:0002 p:-34091400 s:0004 b:0004 l:000003 d:000003 TOP c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :17

## – backtrace of native function call (Use addr2line) – 0x810e8fa 0x813596e 0x81359cb 0x80d4110 0xb7f6c440 0x80d381e 0x80fd5da 0x80d1ff5 0x805b094 0x80589ed 0xb7dcdea8 0x80588f1

zsh: abort (core dumped) ./ruby -e ‘’  
% gdb ./ruby  
GNU gdb 6.4.90-debian  
Copyright © 2006 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/i686/cmov/libthread\_db.so.1”.

(gdb) run -e ‘’  
Starting program: /home/ruby/spawn/ruby/ruby -e ‘’  
Failed to read a valid object file image from memory.  
[Thread debugging using libthread\_db enabled]  
[New Thread -1209902208 (LWP 28299)]  
[New Thread -1208128592 (LWP 28302)]

Program received signal SIGSEGV, Segmentation fault.  
[Switching to Thread -1209902208 (LWP 28299)]  
require\_libraries (opt=0xbffd1784) at ruby.c:458  
458 while (RARRAY\_LEN(list)) {  
(gdb) bt  
#0 require\_libraries (opt=0xbffd1784) at ruby.c:458  
#1 0x080d381e in process\_options (arg=3221034980) at ruby.c:1108  
#2 0x080fd5da in rb\_vm\_call\_cfunc (recv=136088960, func=0x80d3540  
\<process\_options\>, arg=3221034980, blockptr=0x0,  
filename=135957620) at vm.c:1303  
#3 0x080d1ff5 in ruby\_process\_options (argc=3, argv=0xbffd1984) at  
ruby.c:1531  
#4 0x0805b094 in ruby\_options (argc=3, argv=0xbffd1984) at eval.c:104  
#5 0x080589ed in main (argc=3, argv=0xbffd1984, envp=0xbffd1994) at  
main.c:34  
(gdb)
