[OpenIndiana-discuss] gccgo crashes

Goetz T. Fischer g.fischer at r-a-c.de
Fri Oct 20 01:20:51 UTC 2023


hi,

gccgo keeps crashing. following are the gcc10 results but the same happened with gcc13.
as you can see even something as simple as "env" crashes. the system in question has been updated about 
an hour ago. i don't know whether it worked before or not.
anyway here is some debugging:

mdb -e ::status /usr/gcc/10/bin/go ./core 
debugging core file of go (64-bit) from openindiana
file: /usr/gcc/10/bin/go
initial argv: /usr/gcc/10/bin/go env
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=8

mdb -e ::stack /usr/gcc/10/bin/go ./core 
libgcc_s.so.1`uw_frame_state_for+0x451()
libgcc_s.so.1`_Unwind_Backtrace+0x4b()
libgo.so.16.0.0`backtrace_full+0x69()
libgo.so.16.0.0`runtime_callers+0x66()
libgo.so.16.0.0`runtime.getSiginfo+0x2b()
libgo.so.16.0.0`runtime.sigtrampgo+0x414()
libc.so.1`__sighndlr+6()
libc.so.1`call_user_handler+0x1d1(12, 7fffaefa7ef0, 7fffaefa7b90)
libc.so.1`sigacthandler+0xee(12, 7fffaefa7ef0, 7fffaefa7b80)
0xffffffffffffffff()
libc.so.1`wait4+0xaa(217, 7fff857fe1ec, 0, c0001b8000)
libgo.so.16.0.0`syscall.Wait4+0x3d()
libgo.so.16.0.0`os.Process.wait+0xbf()
libgo.so.16.0.0`os.Process.Wait+0x16()
libgo.so.16.0.0`os..z2fexec.Cmd.Wait+0x44()
libgo.so.16.0.0`os..z2fexec.Cmd.Run+0x28()
libgo.so.16.0.0`os..z2fexec.Cmd.CombinedOutput+0xb4()
cmd..z2fgo..z2finternal..z2fwork.Builder.gccSupportsFlag+0x52d()
cmd..z2fgo..z2finternal..z2fwork.Builder.compilerCmd+0x372()
cmd..z2fgo..z2finternal..z2fwork.Builder.GccCmd+0x90()
cmd..z2fgo..z2finternal..z2fenvcmd.ExtraEnvVarsCostly+0x272()
cmd..z2fgo..z2finternal..z2fenvcmd.runEnv+0x392()
main.main+0x642()
libgo.so.16.0.0`runtime.main+0x385()
libgo.so.16.0.0`runtime.kickoff+0x77()
libc.so.1`resumecontext()


and here is trying to run the "hello world" example:

mdb -e ::status /usr/gcc/10/bin/go ./core
debugging core file of go (64-bit) from openindiana
file: /usr/gcc/10/bin/go
initial argv: /usr/gcc/10/bin/go run .
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=8

mdb -e ::stack /usr/gcc/10/bin/go ./core 
libgcc_s.so.1`uw_frame_state_for+0x451()
libgcc_s.so.1`_Unwind_Backtrace+0x4b()
libgo.so.16.0.0`backtrace_full+0x69()
libgo.so.16.0.0`runtime_callers+0x66()
libgo.so.16.0.0`runtime.getSiginfo+0x2b()
libgo.so.16.0.0`runtime.sigtrampgo+0x414()
libc.so.1`__sighndlr+6()
libc.so.1`call_user_handler+0x1d1(12, 7fffad877ef0, 7fffad877b90)
libc.so.1`sigacthandler+0xee(12, 7fffad877ef0, 7fffad877b80)
0xffffffffffffffff()
libc.so.1`wait4+0xaa(261, 7fff79ffc1ec, 0, c0002d0000)
libgo.so.16.0.0`syscall.Wait4+0x3d()
libgo.so.16.0.0`os.Process.wait+0xbf()
libgo.so.16.0.0`os.Process.Wait+0x16()
libgo.so.16.0.0`os..z2fexec.Cmd.Wait+0x44()
libgo.so.16.0.0`os..z2fexec.Cmd.Run+0x28()
libgo.so.16.0.0`os..z2fexec.Cmd.CombinedOutput+0xb4()
cmd..z2fgo..z2finternal..z2fwork.Builder.gccgoToolID+0x3f7()
cmd..z2fgo..z2finternal..z2fwork.Builder.buildActionID+0xf7e()
cmd..z2fgo..z2finternal..z2fwork.Builder.build+0xdb()
cmd..z2fgo..z2finternal..z2fwork.cmd..z2fgo..z2finternal..z2fwork..thunk0+9()
cmd..z2fgo..z2finternal..z2fwork..1cmd..z2fgo..z2finternal..z2fwork.Builder.Do..func2+0xc0()
cmd..z2fgo..z2finternal..z2fwork..1cmd..z2fgo..z2finternal..z2fwork.Builder.Do..func3+0x113()
cmd..z2fgo..z2finternal..z2fwork.cmd..z2fgo..z2finternal..z2fwork..thunk9+0xa()
libgo.so.16.0.0`runtime.kickoff+0x77()
libc.so.1`resumecontext()
0x190000c00012a258()



More information about the openindiana-discuss mailing list