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]

[Bug gdb/14114] New: gdb crashes when stdin is not available


http://sourceware.org/bugzilla/show_bug.cgi?id=14114

             Bug #: 14114
           Summary: gdb crashes when stdin is not available
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: rguenth@gcc.gnu.org
    Classification: Unclassified


> cat x.cmd 
quit
> gdb -batch -x x.cmd 0>&-
Segmentation fault

It seems to crash in

Program terminated with signal 11, Segmentation fault.
#0  _IO_feof (fp=0x0) at feof.c:37
37      feof.c: No such file or directory.
Missing separate debuginfos, use: zypper install
gdb-debuginfo-7.4.50.20120120-81.1.x86_64
(gdb) up
#1  0x0000000000521958 in ?? ()
(gdb) 
#2  0x0000000000522677 in _initialize_charset ()
(gdb) 
#3  0x0000000000657f8a in initialize_all_files ()
(gdb) 
#4  0x000000000062b27f in gdb_init ()

the crash also appears with gdb 7.3 but appearantly not with gdb 7.0.

The situation occured with a daemon forking a gdb to record a backtrace
for it, thus no stdin is available.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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