# Ruby -ne ! dumps core

**URL:** <https://www.ruby-forum.com/t/ruby-ne-dumps-core/109645>\
**Category:** Development\
**Created:** [July 17, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/ruby-ne-dumps-core/109645 "2007-07-17T15:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuke\_ENDOH](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/c89c15/32.png) [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Post date:** [July 17, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/ruby-ne-dumps-core/109645/1 "2007-07-17T15:40:23Z")

</div>

e$B1sF#$H?=$7$^$9!#e(B

1.9 e$B$G0J2\<$N$h$&$K$9$k$HMn$A$^$9!#e(B

## $ ./ruby -vne ! ruby 1.9.0 (2007-07-17 patchlevel 0) [i686-linux] -e:1: syntax error, unexpected $end – control frame ---------- c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------

## – backtrace of native function call (Use addr2line) – 0x80dad35 0x80f34a3 0x80f356b 0x80b2660 0xffffe420 0x80b12dc 0x80b1b8b 0x805c534 0x8056c2a 0xb7dd3ea8 0x8056b61

[BUG] Segmentation fault  
ruby 1.9.0 (2007-07-17) [i686-linux]

e$B%"%!\<%H$7$^$7$?e(B (core dumped)

-n e$B$de(B -p e$B$G%Q!\<%9\<:GT$7$?$iMn$A$k$h$&$G$9!#e(B  
e$B0J2\<$N%Q%C%A$GMn$A$J$/$J$j$^$7$?!#e(B

# Index: ruby.c

— ruby.c (revision 12809)  
+++ ruby.c (working copy)  
@@ -883,10 +883,10 @@  
FL\_UNSET(rb\_load\_path, FL\_TAINT);  
}

- if (do\_print) {

- if (tree && do\_print) {  
tree = rb\_parser\_append\_print(parser, tree);  
}

- if (do\_loop) {

- if (tree && do\_loop) {  
tree = rb\_parser\_while\_loop(parser, tree, do\_line, do\_split);  
}
