Red Hat Bugzilla – Bug 146810
print call foo where foo is in library SEGV
Last modified: 2007-11-30 17:10:59 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041220
Description of problem:
With the attached test case calling from within gdb a function local to the main executable works, but apparently calling one which is in a linked lib doesn't and causes a SEGV
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. in attached test case run make
Actual Results: randomthing2
about to test
> The program being debugged was signaled while in a function called from GDB
Expected Results: randomthing2
about to test
Created attachment 110519 [details]
Created attachment 131342 [details]
Fix for the GDB CVS version
Bug is still present in 2006-06-21 GDB CVS. The segfault is just a consequence
of earlier failure to properly load the custom shared library:
Error while mapping shared library sections:
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.
Patch is still not accepted even in the central GDB sources.redhat.com CVS
repository (pending copyright assignment).
Moving to devel as per comment #4.
(checking the "i am providing the requested info" box...)
Created attachment 132971 [details]
Fix for the GDB CVS version, coding style update
Cc removal requested by Elena Zannoni.
A fix is included in gdb-6.5-5.