https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91763
Bug ID: 91763
Summary: [10 regression] go.go-torture/execute/printnil.go
FAILs
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: ian at airs dot com, marxin at gcc dot gnu.org, rguenth at
gcc dot gnu.org
Target Milestone: ---
Target: i386-pc-solaris2.11, sparc-sun-solaris2.11
Between 20190910 (r275594) and 20190911 (r275651),
go.go-torture/execute/printnil.go
began to FAIL on Solaris/x86 and Solaris/SPARC:
+FAIL: go.go-torture/execute/printnil.go execution, -flto
(only with -flto, 32 and 64-bit sparc, 32-bit only x86, only when using gas).
SIGABRT: abort
PC=0xfcfb9715 m=0 sigcode=18446744073709551615
goroutine 1 [running]:
__sighndlr
:0
__lwp_sigqueue
:0
Thread 8 received signal SIGABRT, Aborted.
[Switching to Thread 6 (LWP 6)]
0xfcfb9715 in __lwp_sigqueue () from /lib/libc.so.1
(gdb) where
#0 0xfcfb9715 in __lwp_sigqueue () from /lib/libc.so.1
#1 0xfcfb1fbf in thr_kill () from /lib/libc.so.1
#2 0xfcef92fa in raise () from /lib/libc.so.1
#3 0xfcecb226 in abort () from /lib/libc.so.1
#4 0xfdaa67b5 in runtime.throwException ()
at /vol/gcc/src/hg/trunk/local/libgo/runtime/go-unwind.c:128
#5 0xfdf4d907 in runtime.unwindStack ()
at /vol/gcc/src/hg/trunk/local/libgo/go/runtime/panic.go:521
#6 runtime.gopanic (e=...)
at /vol/gcc/src/hg/trunk/local/libgo/go/runtime/panic.go:715
#7 0xfdaa7639 in runtime_panicstring (s=0xfda87a15 "nil pointer dereference")
at /vol/gcc/src/hg/trunk/local/libgo/runtime/panic.c:49
#8 0xfdaa54c8 in __go_runtime_error (i=6)
at /vol/gcc/src/hg/trunk/local/libgo/runtime/go-runtime-error.c:95
#9 0x08053c43 in main.MyType.String (pointer=0x0)
at
/vol/gcc/src/hg/trunk/local/gcc/testsuite/go.go-torture/execute/printnil.go:11
#10 0xfdc04049 in fmt.pp.handleMethods (p=0x8ee0000, verb=115)
at /vol/gcc/src/hg/trunk/local/libgo/go/fmt/print.go:630
#11 0xfdc032ec in fmt.pp.printArg (p=0x8ee0000, arg=..., verb=115)
at /vol/gcc/src/hg/trunk/local/libgo/go/fmt/print.go:713
#12 0xfdc05d8e in fmt.pp.doPrintf (p=0x8ee0000, format=..., a=...)
at /vol/gcc/src/hg/trunk/local/libgo/go/fmt/print.go:1030
#13 0xfdc06866 in fmt.Sprintf (format=..., a=...) at
/vol/gcc/src/hg/trunk/local/libgo/go/fmt/print.go:219
#14 0x08053ccc in main.main () at
/vol/gcc/src/hg/trunk/local/gcc/testsuite/go.go-torture/execute/printnil.go:16
A reghunt identified this patch
2019-09-11 Richard Biener <[email protected]>
* lto-opts.c (lto_write_options): Stream -g when debug is enabled.
* lto-wrapper.c (merge_and_complain): Pick up -g.
(append_compiler_options): Likewise.
(run_gcc): Re-instantiate handling -g0 at link-time.
* doc/invoke.texi (flto): Document debug info generation.
as the culprit. I haven't dug further yet.