symtab/2005: info line seems to crash in gdb 6.3
Thu Sep 8 05:48:00 GMT 2005

>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
>Release:        gdb-6.3
fedora core 3/4 with gcc-3.4.3 and gcc-4.0.1
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.

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");

Start prog in gdb, break with ^C in sleep, type

info line main 

crashes. The same happens for 

info line *<address of main>



More information about the Gdb-prs mailing list