This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 gdb/14202] BFD: reopening/tmp/9501_._navl_3.0.0.32-9657_amd64_plugins_ad.plg: No such file ordirectory


http://sourceware.org/bugzilla/show_bug.cgi?id=14202

--- Comment #3 from Terry Buckley <tbuckley at isc8 dot com> 2012-06-13 14:01:56 UTC ---
(In reply to comment #2)
> (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).

Tom,

Why does gdb keep track of a library that has been stripped and has no
information? Seems like it should ignore the plugins and when the breakpoint is
hit it will not have the problem of "No such file or directory"

Terry

-- 
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.


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