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



             Bug #: 56172

           Summary: net FAILs on Solaris

    Classification: Unclassified

           Product: gcc

           Version: 4.8.0

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: go

        AssignedTo: i...@airs.com

        ReportedBy: r...@gcc.gnu.org

              Host: *-*-solaris2.*

            Target: *-*-solaris2.*

             Build: *-*-solaris2.*





The libgo net test currently FAILs on Solaris.  With -test.v=true I find



=== RUN TestAddFDReturnsError

panic: runtime error: invalid memory address or nil pointer dereference

[signal 0xb code=0x1 addr=0xe]



goroutine 19 [running]:

created by runtime_MHeap_Scavenger

        /vol/gcc/src/hg/trunk/local/libgo/runtime/mheap.c:408



goroutine 1 [chan receive]:

[...]



Running the test with -test.run=TestAddFDReturnsError under gdb reveals:



Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 3 (LWP 3)]

0xff23db2c in sem_invalid () from /lib/libc.so.1

(gdb) where

#0  0xff23db2c in sem_invalid () from /lib/libc.so.1

#1  0xff23dbf0 in sem_post () from /lib/libc.so.1

#2  0xfdfa1a5c in runtime_semawakeup (mp=0xddc0cf38)

    at /vol/gcc/src/hg/trunk/local/libgo/runtime/thread-sema.c:125

#3  0xfdfa8f48 in kickoff ()

    at /vol/gcc/src/hg/trunk/local/libgo/runtime/proc.c:369

#4  0xff1cb730 in __makecontext_v2 () from /lib/libc.so.1



  sem_invalid () does



    if (sem->sem_magic != SEMA_MAGIC) {

        errno = EINVAL;

        return (-1);

    }



I haven't yet debugged how this happens.



  Rainer

Reply via email to