[#10492] Ruby 1.8.6 preview3 has been released — "Akinori MUSHA" <knu@...>

Hi,

26 messages 2007/03/04
[#10500] Re: Ruby 1.8.6 preview3 has been released — Hugh Sasse <hgs@...> 2007/03/05

On Mon, 5 Mar 2007, Akinori MUSHA wrote:

[#10507] Dynamic Array#join with block — <noreply@...>

Patches item #9055, was opened at 2007-03-05 19:57

12 messages 2007/03/05
[#10520] Re: [ ruby-Patches-9055 ] Dynamic Array#join with block — Nobuyoshi Nakada <nobu@...> 2007/03/06

Hi,

[#10594] grave bug in 1.8.6's thread implementation — Sylvain Joyeux <sylvain.joyeux@...4x.org>

In ext/thread/thread.c, remove_one leaves the list in an inconsistent state.

15 messages 2007/03/14
[#10596] Re: [PATCH] grave bug in 1.8.6's thread implementation — MenTaLguY <mental@...> 2007/03/14

On Thu, 15 Mar 2007 00:15:57 +0900, Sylvain Joyeux <sylvain.joyeux@m4x.org> wrote:

[#10597] Re: [PATCH] grave bug in 1.8.6's thread implementation — Sylvain Joyeux <sylvain.joyeux@...4x.org> 2007/03/14

> > The fix is in thread-mutex-remove_one.diff.

[#10598] Re: [PATCH] grave bug in 1.8.6's thread implementation — MenTaLguY <mental@...> 2007/03/14

On Thu, 15 Mar 2007 01:19:04 +0900, Sylvain Joyeux <sylvain.joyeux@m4x.org> wrote:

[#10599] Re: [PATCH] grave bug in 1.8.6's thread implementation — Sylvain Joyeux <sylvain.joyeux@...4x.org> 2007/03/14

On Wednesday 14 March 2007 17:29, MenTaLguY wrote:

[#10600] Re: [PATCH] grave bug in 1.8.6's thread implementation — MenTaLguY <mental@...> 2007/03/14

On Thu, 15 Mar 2007 01:48:42 +0900, Sylvain Joyeux <sylvain.joyeux@m4x.org> wrote:

[#10615] Multiton in standard library — TRANS <transfire@...>

Hi--

16 messages 2007/03/15
[#10619] Re: Multiton in standard library — Tom Pollard <tomp@...> 2007/03/16

[#10620] Re: Multiton in standard library — TRANS <transfire@...> 2007/03/16

On 3/15/07, Tom Pollard <tomp@earthlink.net> wrote:

[#10646] Marshal.dump shouldn't complain about singletons if the _dump method is defined — <noreply@...>

Bugs item #9376, was opened at 2007-03-19 15:58

12 messages 2007/03/19
[#10647] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — Urabe Shyouhei <shyouhei@...> 2007/03/19

noreply@rubyforge.org wrote:

[#10648] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — Sylvain Joyeux <sylvain.joyeux@...4x.org> 2007/03/19

On Monday 19 March 2007 18:01, Urabe Shyouhei wrote:

[#10651] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — Yukihiro Matsumoto <matz@...> 2007/03/19

Hi,

[#10665] Re: [ ruby-Bugs-9376 ] Marshal.dump shouldn't complain about singletons if the _dump method is defined — "Chris Carter" <cdcarter@...> 2007/03/20

On 3/19/07, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#10712] Ruby Method Signatures (was Re: Multiton in standard library) — "Rick DeNatale" <rick.denatale@...>

On 3/19/07, TRANS <transfire@gmail.com> wrote:

10 messages 2007/03/21
[#10715] Re: Ruby Method Signatures (was Re: Multiton in standard library) — Jos Backus <jos@...> 2007/03/22

On 3/19/07, TRANS <transfire@gmail.com> wrote:

[#10798] Virtual classes and 'real' classes -- why? — "John Lam (CLR)" <jflam@...>

I was wondering if someone could help me understand why there's a parallel =

12 messages 2007/03/28
[#10799] Re: Virtual classes and 'real' classes -- why? — MenTaLguY <mental@...> 2007/03/28

On Thu, 29 Mar 2007 04:44:16 +0900, "John Lam (CLR)" <jflam@microsoft.com> wrote:

[ ruby-Bugs-9525 ] Inclusion of OpenSSL makes Ruby segfault

From: <noreply@...>
Date: 2007-03-25 19:45:01 UTC
List: ruby-core #10785
Bugs item #9525, was opened at 2007-03-25 03:46
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9525&group_id=426

Category: None
Group: 1.9.x
Status: Open
Resolution: None
Priority: 3
Submitted By: NM RN (knyt)
Assigned to: Nobody (None)
Summary: Inclusion of OpenSSL makes Ruby segfault

Initial Comment:
Adding 'openssl' to ext/Setup produces this on any execution:

###
-- stack frame ------------
-- control frame ----------
c:0001 p:---- s:0000 b:-001 l:000000 d:000000 ------ 
---------------------------
-- backtrace of native function call (Use addr2line) --
0x815a5ea
0x80ce070
0x8133bf8
0xffffe420
0x807f005
0x806ab8f
0x8131c9b
0x8133594
0x813277d
0x81330f7
0x80d48ae
0x806aa6a
0xb7c46878
0x806a9a1
-------------------------------------------------------
[BUG] Segmentation fault
ruby 1.9.0 (2007-03-23) [i686-linux]

Aborted
###

Running those addresses through addr2line on {src}/ruby:

###
/home/kennyt/ruby/vm_dump.c:603
/home/kennyt/ruby/error.c:164
/home/kennyt/ruby/signal.c:459
??:0
/home/kennyt/ruby/ext/openssl/ossl_asn1.c:1123
ext/extinit.c:15
/home/kennyt/ruby/ruby.c:374
/home/kennyt/ruby/ruby.c:1009
/home/kennyt/ruby/ruby.c:881
/home/kennyt/ruby/ruby.c:1274
/home/kennyt/ruby/eval.c:146
/home/kennyt/ruby/main.c:47
??:0
??:0
###

This crash has been in the trunk for a while now, so I guess it hasn't been noticed.

OpenSSL 0.9.8d 28 Sep 2006
OpenSSL 0.9.8e 23 Feb 2007

This is the test file:
###
puts 'test'
###

./miniruby test.rb, of course, works fine.

----------------------------------------------------------------------

Comment By: Abhisek Datta (abhisek)
Date: 2007-03-26 01:14

Message:
Looks like a NULL pointer dereference which is triggered only when OpenSSL is configured as a static extension..

(gdb) r -e 'print "Hello"'
Starting program: /home/me/ROOT/personal/oss/ruby/ruby2/ruby -e 'print "Hello"'
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1212098368 (LWP 11701)]
[New Thread -1208841312 (LWP 11704)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212098368 (LWP 11701)]
0x0809af17 in rb_attr (klass=3082005320, id=14760, read=1, write=1, ex=2) at eval_intern.h:232
232         return th_get_cref(th, cfp->iseq, cfp);
(gdb) x/i $eip
0x809af17 <rb_attr+247>:        mov    0xc(%eax),%eax
(gdb) i r $eax
eax            0x0      0
(gdb)                         

I guess yarv is not initialized when Init_ext() is called? since th_get_ruby_level_cfp() returns NULL..

----------------------------------------------------------------------

Comment By: NM RN (knyt)
Date: 2007-03-25 03:49

Message:
user@host ~/ruby $ gdb ./ruby         
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run test.rb
Starting program: /home/user/ruby/ruby test.rb
[Thread debugging using libthread_db enabled]
[New Thread -1211832656 (LWP 6409)]
[New Thread -1211835488 (LWP 6412)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211832656 (LWP 6409)]
0x080d6097 in rb_attr (klass=3082248120, id=15488, read=1,
write=1, ex=2)
    at eval_intern.h:232
232         return th_get_cref(th, cfp->iseq, cfp);
(gdb) bt
#0  0x080d6097 in rb_attr (klass=3082248120, id=15488,
read=1, write=1, ex=2)
    at eval_intern.h:232
#1  0x0807f325 in Init_ossl_asn1 () at ossl_asn1.c:1122
#2  0x0806aeaf in Init_ext () at ext/extinit.c:15
#3  0x0813208b in require_libraries () at ruby.c:373
#4  0x08133984 in load_file (fname=0xbfe37425 "test.rb", 
    script=<value optimized out>) at ruby.c:1009
#5  0x08132b6d in proc_options (argc=<value optimized out>, 
    argv=<value optimized out>) at ruby.c:878
#6  0x081334e7 in ruby_process_options (argc=2,
argv=0xbfe370e4) at ruby.c:1272
#7  0x080d4c9e in ruby_options (argc=2, argv=0xbfe370e4) at
eval.c:140
#8  0x0806ad8a in main (argc=Cannot access memory at address 0x0
) at main.c:46
(gdb) 


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9525&group_id=426

In This Thread

Prev Next