[#26156] ruby 1.8.3 preview1 — Yukihiro Matsumoto <matz@...>

Hi,

28 messages 2005/05/12

[#26186] ruby_setenv dumps core with mod_ruby/1.4.2 — Tietew <tietew-ml-ruby-dev@...>

Tietew です。

15 messages 2005/05/18
[#26285] Re: ruby_setenv dumps core with mod_ruby/1.4.2 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/06/05

山本です。

[#26325] Re: ruby_setenv dumps core with mod_ruby/1.4.2 — Tietew <tietew-ml-ruby-dev@...> 2005/06/10

Tietew です。

[#26187] IO.select dumps core — Tanaka Akira <akr@...17n.org>

[ruby-talk:142505] で可能性に気がついたのですが、いま実験してみたとこ

31 messages 2005/05/18
[#26255] Re: IO.select dumps core — nobu@... 2005/05/31

なかだです。

[#26256] Re: IO.select dumps core — Tanaka Akira <akr@...17n.org> 2005/06/01

In article <200505311523.j4VFN4Y4005876@sharui.nakada.niregi.kanuma.tochigi.jp>,

[#26257] Re: IO.select dumps core — nobu@... 2005/06/01

なかだです。

[#26262] Re: IO.select dumps core — Tanaka Akira <akr@...17n.org> 2005/06/01

In article <200506010140.j511edY4012889@sharui.nakada.niregi.kanuma.tochigi.jp>,

[#26265] Re: IO.select dumps core — Takahiro Kambe <taca@...> 2005/06/02

In message <87u0khj377.fsf@m17n.org>

[#26365] Re: IO.select dumps core — とみたまさひろ <tommy@...> 2005/06/22

とみたです。

[#26366] Re: IO.select dumps core — nobu@... 2005/06/22

なかだです。

[#26369] Re: IO.select dumps core — とみたまさひろ <tommy@...> 2005/06/23

とみたです。

[#26242] many errors with soap/wsdl test on mswin32 — "U.Nakamura" <usa@...>

こんにちは、なかむら(う)です。

12 messages 2005/05/27
[#26249] Re: many errors with soap/wsdl test on mswin32 — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2005/05/31

山本です。

[ruby-dev:26206] repeated syntax errors causes SEGV

From: Shugo Maeda <shugo@...>
Date: 2005-05-23 02:43:14 UTC
List: ruby-dev #26206
前田です。

添付のスクリプトでSegmentation Faultが発生するようです。

$ ruby-cvs /tmp/test.rb
(eval):2: [BUG] Segmentation fault
ruby 1.9.0 (2005-05-22) [i686-linux]

zsh: abort      ruby-cvs /tmp/test.rb
$ ruby-cvs_1_8 /tmp/test.rb
(eval):2: [BUG] Segmentation fault
ruby 1.8.3 (2005-05-22) [i686-linux]

zsh: abort      ruby-cvs_1_8 /tmp/test.rb

参考までにvalgrindの出力も付けておきます。

$ RUBY=ruby-cvs valgrind-ruby /tmp/test.rb ==30511== Memcheck, a memory
error detector for x86-linux.
==30511== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==30511== Using valgrind-2.4.0, a program supervision framework for
x86-linux.
==30511== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==30511== For more details, rerun with: -v
==30511==
==30511== Invalid read of size 4
==30511==    at 0x1B990FFA: onig_free_body (regcomp.c:4571)
==30511==    by 0x1B9910C5: onig_free (regcomp.c:4587)
==30511==    by 0x1B9516D0: obj_free (gc.c:1165)
==30511==    by 0x1B951537: gc_sweep (gc.c:1053)
==30511==    by 0x1B951AEB: garbage_collect (gc.c:1399)
==30511==    by 0x1B9504A8: rb_newobj (gc.c:393)
==30511==    by 0x1B9A4EC8: str_alloc (string.c:67)
==30511==    by 0x1B9A4F4B: str_new (string.c:89)
==30511==    by 0x1B9A4FE1: rb_str_new (string.c:105)
==30511==    by 0x1B92CFA8: rb_exc_new (error.c:323)
==30511==    by 0x1B92D014: rb_exc_new2 (error.c:331)
==30511==    by 0x1B92FA7A: err_append (error.c:1615)
==30511==  Address 0x1BDBAFE0 is 0 bytes inside a block of size 384 free'd
==30511==    at 0x1B904B04: free (vg_replace_malloc.c:152)
==30511==    by 0x1B950146: ruby_xfree (gc.c:178)
==30511==    by 0x1B9910CD: onig_free (regcomp.c:4588)
==30511==    by 0x1B986D2A: make_regexp (re.c:661)
==30511==    by 0x1B988101: rb_reg_initialize (re.c:1415)
==30511==    by 0x1B9882DE: rb_reg_compile (re.c:1460)
==30511==    by 0x1B9766D2: parser_yyparse (parse.y:3551)
==30511==    by 0x1B977A74: yycompile (parse.y:4480)
==30511==    by 0x1B977D81: rb_compile_string (parse.y:4558)
==30511==    by 0x1B93C8EA: compile (eval.c:6166)
==30511==    by 0x1B93CE68: eval (eval.c:6247)
==30511==    by 0x1B93D191: rb_f_eval (eval.c:6366)
==30511==
==30511== Invalid free() / delete / delete[]
==30511==    at 0x1B904B04: free (vg_replace_malloc.c:152)
==30511==    by 0x1B950146: ruby_xfree (gc.c:178)
==30511==    by 0x1B991097: onig_free_body (regcomp.c:4581)
==30511==    by 0x1B9910C5: onig_free (regcomp.c:4587)
==30511==    by 0x1B9516D0: obj_free (gc.c:1165)
==30511==    by 0x1B951537: gc_sweep (gc.c:1053)
==30511==    by 0x1B951AEB: garbage_collect (gc.c:1399)
==30511==    by 0x1B9504A8: rb_newobj (gc.c:393)
==30511==    by 0x1B9A4EC8: str_alloc (string.c:67)
==30511==    by 0x1B9A4F4B: str_new (string.c:89)
==30511==    by 0x1B9A4FE1: rb_str_new (string.c:105)
==30511==    by 0x1B92CFA8: rb_exc_new (error.c:323)
==30511==  Address 0x1BDBB190 is 0 bytes inside a block of size 134 free'd
==30511==    at 0x1B904B04: free (vg_replace_malloc.c:152)
==30511==    by 0x1B950146: ruby_xfree (gc.c:178)
==30511==    by 0x1B991097: onig_free_body (regcomp.c:4581)
==30511==    by 0x1B9910C5: onig_free (regcomp.c:4587)
==30511==    by 0x1B986D2A: make_regexp (re.c:661)
==30511==    by 0x1B988101: rb_reg_initialize (re.c:1415)
==30511==    by 0x1B9882DE: rb_reg_compile (re.c:1460)
==30511==    by 0x1B9766D2: parser_yyparse (parse.y:3551)
==30511==    by 0x1B977A74: yycompile (parse.y:4480)
==30511==    by 0x1B977D81: rb_compile_string (parse.y:4558)
==30511==    by 0x1B93C8EA: compile (eval.c:6166)
==30511==    by 0x1B93CE68: eval (eval.c:6247)

-- 
前田 修吾

Attachments (1)

test.rb (175 Bytes, text/x-ruby)
s = <<EOF
foo((h @x =>
    </div>
    <div>
      <div>
        <%= bar ).to_s); baz "\n"
quux "</div>\n"
EOF
1000.times do
  begin
    eval(s)
  rescue SyntaxError
  end
end

In This Thread

Prev Next