[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:26141] Re: [ruby:trunk] yaml access invalid memory area

From: Tanaka Akira <akr@...>
Date: 2009-10-17 06:01:04 UTC
List: ruby-core #26141
In article <E1Mz1y1-0003ti-4p@x61.netlab.jp>,
  Yukihiro Matsumoto <matz@ruby-lang.org> writes:

> Syck seems to have implicit limitation of length of tokens.  I
> consider it a bug, and it should be fixed, but I feel it is quite
> difficult to fix (as _why disappeared).

I see.  It is possible SEGV with longer input.

% ./ruby -ryaml -ve 'YAML.load("a: b\n" + "c"*10000000)'          
ruby 1.9.2dev (2009-10-17 trunk 25380) [i686-linux]
/home/ruby/tcio/lib/ruby/1.9.1/yaml.rb:133: [BUG] Segmentation fault
ruby 1.9.2dev (2009-10-17 trunk 25380) [i686-linux]

-- control frame ----------
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :load
c:0004 p:0019 s:0011 b:0011 l:000010 d:000010 METHOD /home/ruby/tcio/lib/ruby/1.9.1/yaml.rb:133
c:0003 p:0025 s:0006 b:0006 l:001344 d:0016fc EVAL   -e:1
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001344 d:001344 TOP   
---------------------------
-e:1:in `<main>'
/home/ruby/tcio/lib/ruby/1.9.1/yaml.rb:133:in `load'
/home/ruby/tcio/lib/ruby/1.9.1/yaml.rb:133:in `load'

-- C level backtrace information -------------------------------------------
./ruby(rb_vm_bugreport+0x6c) [0x81508f2]
./ruby [0x8182e71]
./ruby(rb_bug+0x36) [0x8182ecc]
./ruby [0x80eb0f2]
[0xb7fd2410]
./ruby(rb_enc_vsprintf+0x99) [0x80f1e61]
./ruby(rb_vsprintf+0x20) [0x80f1efb]
./ruby(rb_raise+0x1e) [0x8184ced]
/home/ruby/tcio/lib/ruby/1.9.1/i686-linux/syck.so(rb_syck_bad_anchor_handler+0) [0xb7ad2875]
/home/ruby/tcio/lib/ruby/1.9.1/i686-linux/syck.so(syckerror+0x66) [0xb7ae40e0]
/home/ruby/tcio/lib/ruby/1.9.1/i686-linux/syck.so(syckparse+0x1170) [0xb7ae5ffd]
/home/ruby/tcio/lib/ruby/1.9.1/i686-linux/syck.so(syck_parse+0x33) [0xb7ad9156]
/home/ruby/tcio/lib/ruby/1.9.1/i686-linux/syck.so(syck_parser_load+0x13a) [0xb7ad2e63]
./ruby [0x8146498]
./ruby [0x8146347]
./ruby [0x8145886]
./ruby [0x814155a]
./ruby [0x814deed]
./ruby(rb_iseq_eval_main+0x2b) [0x814e560]
./ruby [0x805e3bb]
./ruby(ruby_exec_node+0x1c) [0x805e4c4]
./ruby(ruby_run_node+0x3b) [0x805e498]
./ruby(main+0x74) [0x805cfa8]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7df2455]
./ruby [0x805cea1]

[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
-- 
Tanaka Akira

In This Thread

Prev Next