This is the mail archive of the gdb-prs@sources.redhat.com 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]

Re: symtab/1418: gdb core dumps while reading symbols from shared library


Synopsis: gdb core dumps while reading symbols from shared library

State-Changed-From-To: open->feedback
State-Changed-By: jimb
State-Changed-When: Fri Oct 17 22:38:12 2003
State-Changed-Why:
    I'm unable to reproduce this bug given the directions in the bug report.  Here is a transcript of me debugging a file that dumped core with GDB 6.0 on a Solaris 2.6 box with no problems.
    
    In order for us to fix this bug, we need to be able to reproduce it ourselves, on our own machine.  Please provide  explicit instructions that we can follow to make GDB crash on our own machine, so we can debug the problem.
    
    $ cat shift.c
    #include <stdio.h>
    
    int
    main (int argc, char **argv)
    {
      printf ("%d\n", atoi (argv[1]) << atoi (argv[2]));
    }
    $ gcc -g shift.c -o shift
    $ ./shift
    Segmentation Fault (core dumped)
    $ uname -a
    SunOS delta 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-60
    $ ~/gdb/6.0/sparc/build/gdb/gdb shift core
    GNU gdb 6.0
    Copyright 2003 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "sparc-sun-solaris2.6"...
    Core was generated by `./shift'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/lib/libc.so.1...done.
    Loaded symbols for /usr/lib/libc.so.1
    Reading symbols from /usr/lib/libdl.so.1...done.
    Loaded symbols for /usr/lib/libdl.so.1
    Reading symbols from /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1...done.
    Loaded symbols for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
    #0  0xef73a8f8 in atoi () from /usr/lib/libc.so.1
    (gdb)

http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1418


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