ruby-changes:3638
From: ko1@a...
Date: Sat, 19 Jan 2008 20:43:40 +0900 (JST)
Subject: [ruby-changes:3638] akr - Ruby:r15127 (trunk): * encoding.c (enc_new): don't free rb_encoding to avoid SEGV by
akr 2008-01-19 20:43:24 +0900 (Sat, 19 Jan 2008) New Revision: 15127 Modified files: trunk/ChangeLog trunk/encoding.c Log: * encoding.c (enc_new): don't free rb_encoding to avoid SEGV by `miniruby -e exit' on x86_64 GNU/Linux. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15127&r2=15126&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=15127&r2=15126&diff_format=u Index: encoding.c =================================================================== --- encoding.c (revision 15126) +++ encoding.c (revision 15127) @@ -73,7 +73,7 @@ static VALUE enc_new(rb_encoding *encoding) { - VALUE enc = Data_Wrap_Struct(rb_cEncoding, enc_mark, -1, encoding); + VALUE enc = Data_Wrap_Struct(rb_cEncoding, enc_mark, 0, encoding); encoding->auxiliary_data = (void *)enc; return enc; } Index: ChangeLog =================================================================== --- ChangeLog (revision 15126) +++ ChangeLog (revision 15127) @@ -1,3 +1,8 @@ +Sat Jan 19 20:41:29 2008 Tanaka Akira <akr@f...> + + * encoding.c (enc_new): don't free rb_encoding to avoid SEGV by + `miniruby -e exit' on x86_64 GNU/Linux. + Sat Jan 19 18:40:19 2008 Tadayoshi Funaba <tadf@d...> * lib/date.rb (once): use an instance variable which points a hash @@ -2679,7 +2684,7 @@ Sun Dec 23 09:07:02 2007 Tanaka Akira <akr@f...> * include/ruby/encoding.h, encoding.c, re.c, io.c, parse.y, numeric.c, - ruby.c, transcode.c, ext/nkf/nkf.c: rename rb_ascii_encoding. to + ruby.c, transcode.c, ext/nkf/nkf.c: rename rb_ascii_encoding to rb_ascii8bit_encoding. rb_ascii_encoding is ambiguous with ASCII-8BIT and US-ASCII. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/