https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61303
--- Comment #1 from Maciej BliziĆski <maciej at opencsw dot org> --- I did some more testing. Running it under truss makes the binary work: > truss -f -o /tmp/crashtest.truss bin/crashtest 2014/05/24 17:15:34 Making a request to http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/for-generation/as-dicts/ 2014/05/24 17:15:44 Retrieved {unstable sparc SunOS5.10} with 3704 packages 2014/05/24 17:15:44 Writing {unstable sparc SunOS5.10} to catalog 2014/05/24 17:15:44 Catalog index written successfully Running the same binary without truss makes it crash: > bin/crashtest 2014/05/24 17:16:03 Making a request to http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/for-generation/as-dicts/ [hangs and eventually segfaults] Running the same binary under gdb makes it segfault immediately: > gdb bin/crashtest GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.10". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from bin/crashtest...done. (gdb) run Starting program: /home/maciej/src/opencsw-gar/v2/go/bin/crashtest [Thread debugging using libthread_db enabled] [New Thread 1 (LWP 1)] [New LWP 2 ] [New LWP 3 ] 2014/05/24 17:22:40 Making a request to http://buildfarm.opencsw.org/pkgdb/rest/catalogs/unstable/sparc/SunOS5.10/for-generation/as-dicts/ [New Thread 3 (LWP 3)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 3 (LWP 3)] 0xfe730e98 in memcpy () from /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1 (gdb) where #0 0xfe730e98 in memcpy () from /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1 #1 0xfeb8e00c in runtime_netpoll (block=block@entry=1 '\001') at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-sparcv8plus/gcc-4.9.0/libgo/runtime/netpoll_select.c:163 #2 0xfeb92e98 in findrunnable () at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-sparcv8plus/gcc-4.9.0/libgo/runtime/proc.c:1653 #3 schedule () at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-sparcv8plus/gcc-4.9.0/libgo/runtime/proc.c:1751 #4 0xfeb93138 in runtime_mstart (mp=0xde810800) at /home/maciej/src/opencsw/pkg/gcc4/trunk/work/solaris10-sparc/build-isa-sparcv8plus/gcc-4.9.0/libgo/runtime/proc.c:1000 #5 0xff1faee8 in _lwp_start () from /lib/libc.so.1 Backtrace stopped: previous frame identical to this frame (corrupt stack?)