Bug 146810

Summary: print call foo where foo is in library SEGV
Product: [Fedora] Fedora Reporter: Caolan McNamara <caolanm>
Component: gdbAssignee: Alexandre Oliva <aoliva>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: aoliva, jan.kratochvil, mattdm
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-22 07:36:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 202682    
Attachments:
Description Flags
testcase
none
Fix for the GDB CVS version
none
Fix for the GDB CVS version, coding style update none

Description Caolan McNamara 2005-02-01 19:52:22 UTC
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):
gdb-6.1post-1.20040607.43

How reproducible:
Always

Steps to Reproduce:
1. in attached test case run make

Actual Results:  randomthing2
randomthing
about to test
randomthing2
> The program being debugged was signaled while in a function called from GDB

Expected Results:  randomthing2
randomthing
about to test
randomthing2
randomthing

Additional info:

Comment 1 Caolan McNamara 2005-02-01 19:53:14 UTC
Created attachment 110519 [details]
testcase

Comment 2 Jan Kratochvil 2006-06-22 11:22:25 UTC
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:
libc++test4dl.so: Success.

Comment 3 Matthew Miller 2006-07-10 21:38:05 UTC
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.

Thank you!


Comment 4 Jan Kratochvil 2006-07-10 22:30:54 UTC
Patch is still not accepted even in the central GDB sources.redhat.com CVS
repository (pending copyright assignment).


Comment 5 Matthew Miller 2006-07-11 15:02:09 UTC
Moving to devel as per comment #4.

Comment 6 Matthew Miller 2006-07-11 15:03:54 UTC
(checking the "i am providing the requested info" box...)

Comment 7 Jan Kratochvil 2006-07-25 11:33:22 UTC
Created attachment 132971 [details]
Fix for the GDB CVS version, coding style update

Comment 8 Jan Kratochvil 2006-07-28 07:48:31 UTC
Cc removal requested by Elena Zannoni.


Comment 12 Alexandre Oliva 2006-08-24 07:17:23 UTC
A fix is included in gdb-6.5-5.