Bug 99075 - gdb segfaults when trying to step into libc
Summary: gdb segfaults when trying to step into libc
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gdb
Version: 1.0
Hardware: athlon
OS: Linux
medium
high
Target Milestone: ---
Assignee: Elena Zannoni
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-14 02:30 UTC by Robin Green
Modified: 2015-01-08 00:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-04-10 15:24:57 UTC
Embargoed:


Attachments (Terms of Use)
Session transcript, including backtrace (17.25 KB, text/plain)
2003-07-14 02:46 UTC, Robin Green
no flags Details
patch (477 bytes, patch)
2003-07-18 21:49 UTC, Robin Green
no flags Details | Diff

Description Robin Green 2003-07-14 02:30:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030515

Description of problem:
I just started using gdb and hit a repeatable segfault when trying to step into
libc (this was by accident, but gdb shouldn't blow up because I step into the
wrong thing!) For example, gdb ls, set a breakpoint on an opendir() line, and
then step. Segfault.

I've compiled the following packages myself (for target athlon-redhat-linux-gnu)
and installed the corresponding generated -debuginfo packages:

glibc-2.3.2-57
coreutils-5.0-4
gdb-5.3post-1.20021129.37

The segfault can also be reproduced with the gdb installed from the gdb rpm in
RedHat 9, although without a debuginfo package I couldn't immediately verify if
the function it occurred in was the same.

Version-Release number of selected component (if applicable):
5.3post-1.20021129.37rh

How reproducible:
Always

Steps to Reproduce:
1. gdb ls
2. break 2157
3. run
4. step
    

Actual Results:  Segmentation fault

Expected Results:  Either an error message, a step into libc, or a step over libc.

Additional info: Backtrace attached.

Comment 1 Robin Green 2003-07-14 02:46:13 UTC
Created attachment 92903 [details]
Session transcript, including backtrace

I've included a full backtrace with locals, and then one without locals at the
end.

Comment 2 Robin Green 2003-07-18 21:49:24 UTC
Created attachment 93011 [details]
patch

Comment 3 Elena Zannoni 2003-08-25 15:26:19 UTC
Could you please try a more recent version of gdb?
I am not able to reproduce with:
coreutils-4.5.3-26
gdb-5.3.90-0.20030710.16

Comment 4 David Lawrence 2006-04-10 15:24:57 UTC
Closing due to inactivity. Please feel free to reopen this bug or refile this
bug against the latest release Fedora Core if you feel this bug is still
relevant today.

Thank you


Note You need to log in before you can comment on or make changes to this bug.