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]

symtab/2005: info line seems to crash in gdb 6.3


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


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