From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26429 invoked by alias); 12 Jun 2012 19:49:38 -0000 Received: (qmail 26412 invoked by uid 22791); 12 Jun 2012 19:49:37 -0000 X-SWARE-Spam-Status: No, hits=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_FD X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jun 2012 19:49:25 +0000 From: "tromey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14202] BFD: reopening /tmp/9501_._navl_3.0.0.32-9657_amd64_plugins_ad.plg: No such file or directory Date: Tue, 12 Jun 2012 19:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q2/txt/msg00222.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14202 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #2 from Tom Tromey 2012-06-12 19:49:04 UTC --- (In reply to comment #0) > gdb console in netbeans 7.1.2 shows the following message: > > =library-loaded,id="/tmp/9501_._navl_3.0.0.32-9657_amd64_plugins_ad.plg" This means gdb saw your program load this shared library. > 15-stack-list-frames > BFD: reopening /tmp/9501_._navl_3.0.0.32-9657_amd64_plugins_ad.plg: No such > file or directory At this point, gdb tries to reopen the library (not sure why, but there can be various reasons); but at this point it has been deleted. > 2. appears gdb thinks there should be a /tmp file, and there are no /tmp files > created in this debugging session. Apparently not the case. gdb tries to lazily load debuginfo sections. This could cause this problem -- but you say the file is stripped, so I would guess it is something else. There's sort of a known problem here where BFD can close file descriptors and reopen them, which is not always safe in scenarios like this. One thing that might help is a stack trace at the point where gdb emits this message. I'm not entirely sure what to do in this area. Changing BFD not to close fds would be nice, but won't work on all hosts (or perhaps, I have heard, not even all filesystems). Eagerly mapping debuginfo sections might help (if that is the bug here), but that hurts memory use always to support a relatively obscure scenario (deleting a .so after dlopening it). -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.