[Bug target/93808] [9 Regression] [SH] Ruby crashes with 'Illegal Instruction' when compiled with gcc-9

glaubitz at physik dot fu-berlin.de gcc-bugzilla@gcc.gnu.org
Tue Feb 18 17:32:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93808

--- Comment #5 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Oleg Endo from comment #4)
> (In reply to John Paul Adrian Glaubitz from comment #3)
> > 
> > I have put the compiled source into a tarball so you can have a look
> > yourself:
> > 
> > > https://people.debian.org/~glaubitz/ruby2.5-G7ZWPI.tgz
> 
> Sorry, I will not wade through the whole thing.  If you have it crashing in
> the debugger already, please try to provide a bit more context of the crash.
> Like file name, function name ... something like that would be helpful.

Okay, so the backtrace looks like this:

483         switch (e - p) {
(gdb) bt
#0  0x005380c0 in search_nonascii (e=<optimized out>, p=<optimized out>) at
string.c:483
#1  coderange_scan (p=<optimized out>, len=<optimized out>, enc=0x63d698) at
string.c:505
#2  0x00538866 in rb_enc_str_coderange (str=6750060) at string.c:634
#3  0x00538920 in rb_str_hash (str=6750060) at string.c:3112
#4  0x0052fb94 in do_hash (tab=0x63fe20, key=<optimized out>) at st.c:1479
#5  st_update (tab=0x63fe20, key=<optimized out>, func=0x539fb8
<fstr_update_callback>, arg=2080371772) at st.c:1479
#6  0x00534c46 in register_fstring (str=6750060) at string.c:341
#7  0x0054e06a in register_static_symid_str (id=33, str=<optimized out>) at
symbol.c:417
#8  0x0054e458 in register_static_symid (enc=0x63d698, len=1, name=0x7bfff47f
"!\\\bI", id=33) at symbol.c:407
#9  Init_op_tbl () at symbol.c:46
#10 Init_sym () at symbol.c:86
#11 0x0049085c in rb_call_inits () at inits.c:21
#12 0x00472c86 in ruby_setup () at eval.c:61
#13 0x0047444c in ruby_init () at eval.c:78
#14 0x00418e76 in main (argc=<optimized out>, argv=<optimized out>) at
./main.c:41
(gdb)

I will probably have to rebuild with debug symbols disabled so we can see more.


More information about the Gcc-bugs mailing list