From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73637 invoked by alias); 8 May 2015 23:27:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 73347 invoked by uid 48); 8 May 2015 23:27:25 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/61303] gccgo: segfault, regression since 4.8.2 Date: Fri, 08 May 2015 23:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00731.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61303 --- Comment #9 from Ian Lance Taylor --- >>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.