This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/61303] gccgo: segfault, regression since 4.8.2
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 May 2015 23:27:22 +0000
- Subject: [Bug go/61303] gccgo: segfault, regression since 4.8.2
- Auto-submitted: auto-generated
- References: <bug-61303-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61303
--- Comment #9 from Ian Lance Taylor <ian at airs dot com> ---
>From looking at the code it seems that mmap may be returning MAP_FAILED. That
could lead to this crash. I don't know why mmap would fail, though. It's a
shame that the program works when run under truss.
If you feel like experimenting, look at the call to runtime_SysAlloc near the
start of runtime_netpoll in libgo/runtime/netpoll_select.c. Add something like
if(prfds == nil)
runtime_throw("runtime_SysAlloc returned nil");
and see if you see that error instead of the crash.