Yasushi Shoji <yashi / yashi.com> writes:

> From: Pixel <pixel / mandrakesoft.com>
> Subject: segfaults with -O3 (was: Ruby 1.4.5 install from Mandrake cooker rpms ?problem?)
> Date: 25 Jun 2000 23:56:40 +0200
> 
> > PS: when compiled with gcc-2.95.2, option -O3, ruby segfaults on test.rb, i
> > didn't find the time to restrict the pb though :-(
> 
> what version was it?

starting with 1.4.4

pixel@kenobi:~/rpm/BUILD/ruby-1.4.5>./miniruby sample/test.rb 
[...]
ok 5
ok 6
gc
sample/test.rb:1128: [BUG] Segmentation fault




Info on system:

pixel@kenobi:~/rpm/BUILD/ruby-1.4.5>gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)

pixel@kenobi:~/rpm/BUILD/ruby-1.4.5>/lib/libc.so.6                               
GNU C Library stable release version 2.1.3, by Roland McGrath et al.
Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.95.3 19991030 (prerelease).
Compiled on a Linux 2.2.15-15mdk system on 2000-06-14.
Available extensions:
        GNU libio by Per Bothner
        The C stubs add-on version 2.1.2.
        crypt add-on version 2.1 by Michael Glad and others
        BIND-4.9.7-REL
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Glibc-2.0 compatibility add-on by Cristian Gafton 
        linuxthreads-0.8 by Xavier Leroy
        libthread_db work sponsored by Alpha Processor Inc