This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
symtab/2005: info line seems to crash in gdb 6.3
- From: sk1 at delair dot de
- To: gdb-gnats at sources dot redhat dot com
- Date: 5 Sep 2005 07:31:36 -0000
- Subject: symtab/2005: info line seems to crash in gdb 6.3
- Reply-to: sk1 at delair dot de
>Number: 2005
>Category: symtab
>Synopsis: info line seems to crash in gdb 6.3
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 05 07:38:02 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator: sk1@delair.de
>Release: gdb-6.3
>Organization:
>Environment:
fedora core 3/4 with gcc-3.4.3 and gcc-4.0.1
>Description:
The command "info line xxx" seems to produce a Segmentation Fault if the line can be found.
I've tried it with gcc-3.4.3 and gcc-4.0.1, there is no difference. Using gdb-6.1 works fine.
>How-To-Repeat:
Compile the following program with
gcc -g hw.c -o hw1
#include <stdio.h>
#include <unistd.h>
int main (int argc, char* argv[])
{
printf("Hello world\n");
sleep(100);
}
Start prog in gdb, break with ^C in sleep, type
info line main
crashes. The same happens for
info line *<address of main>
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: