http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51874

--- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> 2012-01-27 12:52:29 UTC ---
The chan.go testcase also fails on 32-bit IRIX, but in a different way:

> ./chan.x
panic: runtime error: invalid memory address or nil pointer dereference

Running it under gdb, I find:

Program received signal SIGSEGV, Segmentation fault.
runtime_mcall (pfn=0x823198 <schedule>)
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/proc.c:283
283             if (g == nil || !g->fromgogo) {
(gdb) where
#0  runtime_mcall (pfn=0x823198 <schedule>)
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/proc.c:283
#1  0x0081b9e0 in runtime_chanrecv (t=<optimized out>, c=0x2030b000, 
    ep=0x20102f60 "", selected=0x0, received=0x0)
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/chan.c:333
#2  0x0081bae0 in __go_receive_small (t=<optimized out>, c=<optimized out>)
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/chan.c:432
#3  0x10002418 in main.main () at /vol/gcc/src/doc/bugs/chan.go:10
#4  0x00822994 in runtime_main ()
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/proc.c:371
#5  0x00823960 in kickoff ()
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/proc.c:237
#6  0x0faee6d0 in _sethostname () from /usr/lib32/libc.so.1
#7  0x008225f4 in runtime_mcall (pfn=0x823198 <schedule>)
    at /vol/gcc/src/hg/trunk/local/libgo/runtime/proc.c:281
#8  0x00000000 in ?? ()

It may be an issue that IRIX is an emutls target.

On 64-bit IRIX, I get

> ./chan.x64
panic: 0

as on Solaris/SPARC.

    Rainer

Reply via email to