This is the mail archive of the gcc-bugs@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]

[Bug go/61303] gccgo: segfault, regression since 4.8.2


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.


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