Bug #1860
closed文字列連結でsegfault
Description
=begin
下記のスクリプトを読みこませるとsegfaultが発生します。
$ cat bug.rb
path="/opt/"
config = '--config='
"#{path}/.config"
==============
$ ruby19 bug.rb
bug.rb: [BUG] Segmentation fault
ruby 1.9.2dev (2009-08-02 trunk 24353) [i686-linux]
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:002324 d:002324 TOP¶
-- C level backtrace information -------------------------------------------
/usr/lib/libruby19.so.1.9(rb_vm_bugreport+0x72) [0x273042]
/usr/lib/libruby19.so.1.9 [0x17c8a7]
/usr/lib/libruby19.so.1.9(rb_bug+0x3a) [0x17c94a]
/usr/lib/libruby19.so.1.9 [0x21165d]
[0x130410]
/usr/lib/libruby19.so.1.9(rb_enc_compatible+0x33) [0x14fec3]
/usr/lib/libruby19.so.1.9 [0x1c25cd]
/usr/lib/libruby19.so.1.9 [0x1c28cc]
/usr/lib/libruby19.so.1.9(ruby_yyparse+0x5781) [0x1cba51]
/usr/lib/libruby19.so.1.9 [0x1d754a]
/usr/lib/libruby19.so.1.9(ruby_suppress_tracing+0x113) [0x276343]
/usr/lib/libruby19.so.1.9(rb_parser_compile_file+0x8d) [0x1c12dd]
/usr/lib/libruby19.so.1.9 [0x20f906]
/usr/lib/libruby19.so.1.9(rb_ensure+0x99) [0x17dfc9]
/usr/lib/libruby19.so.1.9 [0x210669]
/usr/lib/libruby19.so.1.9(ruby_process_options+0x5b) [0x210b6b]
/usr/lib/libruby19.so.1.9(ruby_options+0x8d) [0x17fa5d]
ruby19(main+0x6c) [0x804872c]
/lib/libc.so.6(__libc_start_main+0xe5) [0x3696e5]
ruby19 [0x8048621]
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
Aborted
=end
Updated by nobu (Nobuyoshi Nakada) about 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r24356.
=end