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

            Bug ID: 103847
           Summary: gccgo SIGSEGV in libgo standard library on sparc64
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: matoro_gcc_bugzilla at matoro dot tk
                CC: cmang at google dot com
  Target Milestone: ---

$ go version
go version go1.16.5 gccgo (Gentoo 11.2.1_p20211127 p2) 11.2.1 20211127
linux/sparc64

$ gccgo -v
Using built-in specs.
COLLECT_GCC=gccgo
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/sparc64-unknown-linux-gnu/11.2.1/lto-wrapper
Target: sparc64-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-11.2.1_p20211127/work/gcc-11-20211127/configure
--host=sparc64-unknown-linux-gnu --build=sparc64-unknown-linux-gnu
--prefix=/usr --bindir=/usr/sparc64-unknown-linux-gnu/gcc-bin/11.2.1
--includedir=/usr/lib/gcc/sparc64-unknown-linux-gnu/11.2.1/include
--datadir=/usr/share/gcc-data/sparc64-unknown-linux-gnu/11.2.1
--mandir=/usr/share/gcc-data/sparc64-unknown-linux-gnu/11.2.1/man
--infodir=/usr/share/gcc-data/sparc64-unknown-linux-gnu/11.2.1/info
--with-gxx-include-dir=/usr/lib/gcc/sparc64-unknown-linux-gnu/11.2.1/include/g++-v11
--with-python-dir=/share/gcc-data/sparc64-unknown-linux-gnu/11.2.1/python
--enable-languages=c,c++,go --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo
11.2.1_p20211127 p2' --disable-esp --enable-libstdcxx-time
--with-build-config=bootstrap-lto --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu --disable-multilib
--disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp
--disable-libada --disable-cet --disable-systemtap
--disable-valgrind-annotations --disable-vtable-verify --disable-libvtv
--without-zstd --enable-lto --with-isl --disable-isl-version-check
--enable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20211127 (Gentoo 11.2.1_p20211127 p2) 

$ uname -a
Linux 5.15.11-gentoo-sparc64 #1 SMP sparc64 sun4v UltraSparc T4 (Niagara4)
GNU/Linux


I am attempting to build a simple go application using gccgo on this sparc64
host, but keep getting compiler SEGV inside the libgo standard library.  This
is happening for pretty much all commands except for simple version checks.

When trying to build from a fresh clone, the crash seem to be in network
related code as dependencies are pulled down.

When trying to build in an environment where dependencies are pre-downloaded,
the crash seems to be in semaphore synchronization.

Both runs were done with GOMAXPROCS=1 in order to make the traceback logs
deterministic.  I also attempted to bootstrap the gc compiler using gcc, but
got the same results.  I've attached the crash logs from the two different
types of builds I attempted as build-with-network.log and
build-without-network.log, respectively.

Reply via email to