Yukihiro Matsumoto wrote:

> Hi,
>
> In message "[ruby-talk:5157] Compile Problem with 1.6.1"
>     on 00/09/28, Scott Billings <aerogems / netins.net> writes:
>
> |When I try to compile Ruby 1.6.1, I get the following error:
>
> Would you mind if I suspect AthlonGCC bug?
>
> Ruby compiled by gcc 2.95.2 just works fine on my Debian GNU/Linux
> (woody) box.  Send me stack trace if you can get it.
>
>   % gdb miniruby
>   ...
>   (gdb) r mkconfig.rb
>   ... segmentation fault ...
>   (gdb) where
>   ... stack trace output ..
>
>                                                         matz.

Well, an AthlonGCC bug might be the cause, but I've had no problems
with any other app compiled with it.

Anyway, compiled in debugging info, all other flags the same, here's
the output I get from gdb:

(gdb) r mkconfig.rb
Starting program: /downloads/ruby-1.6.1/miniruby mkconfig.rb
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.

Program received signal SIGSEGV, Segmentation fault.
0x400bd5fe in free () from /lib/libc.so.6
(gdb) where
#0  0x400bd5fe in free () from /lib/libc.so.6
#1  0x8087510 in rb_yyparse () at /usr/share/misc/bison.simple:743
#2  0x80877cd in yycompile (f=0x8118c28 "mkconfig.rb", line=2) at
parse.y:1922
#3  0x8094319 in rb_compile_file (f=0xbffff89f "mkconfig.rb",
file=1075269100,
    start=2) at parse.y:2004
#4  0x80a7671 in load_file (fname=0xbffff89f "mkconfig.rb", script=1)

    at ruby.c:821
#5  0x80a72cb in proc_options (argc=0, argv=0xbffff734) at ruby.c:704

#6  0x80a7a7f in ruby_process_options (argc=2, argv=0xbffff734) at
ruby.c:1000
#7  0x80616fc in ruby_options (argc=2, argv=0xbffff734) at
eval.c:1102
#8  0x805075d in main (argc=2, argv=0xbffff734, envp=0xbffff740) at
main.c:44
(gdb)

I've also been told that this sounds very similar to a problem being
had by a couple of people with Tru64.

Hope that helps some.....

-Scott-