This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242403 - in /trunk: gcc/go/gofrontend/MERGE li...


Author: ian
Date: Mon Nov 14 23:16:04 2016
New Revision: 242403

URL: https://gcc.gnu.org/viewcvs?rev=242403&root=gcc&view=rev
Log:
    runtime: don't crash if signal handler info argument is nil
    
    Apparently on Solaris 10 a SA_SIGINFO signal handler can be invoked with
    a nil info argument.  I would not have believed it but I've now seen it
    happen, and the sigaction man page actually says "If the second argument
    is not equal to NULL, it points to a siginfo_t structure...."  So, if
    that happens, don't crash.
    
    Also fix another case where we want to make sure that &T{} does not
    allocate.
    
    Reviewed-on: https://go-review.googlesource.com/33150

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/libgo/go/runtime/signal_gccgo.go
    trunk/libgo/go/runtime/signal_sigtramp.go
    trunk/libgo/runtime/go-signal.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]