gdb: apropos core dump

From: Galen Sampson (galen_sampson_at_yahoo.com)
Date: 06/29/03

  • Next message: Kenneth D. Merry: "cardbus network problem with -current"
    Date: Sat, 28 Jun 2003 19:46:35 -0700 (PDT)
    To: current@freebsd.org
    
    

    Hello all,

    I was recently playing around with gdb. I do not use it much but I found that
    it had an apropos command. I hoped that apropos would make it quicker for me
    to find information about gdb's commands so I wouldn't have to go hunting in
    info. Turns out there is a bug in gdb on current where apropos causes gdb to
    dump core. I did not build my gdb with debugging symbols but the problem can
    be reproduced easily:

    Script started on Sat Jun 28 18:38:10 2003
    [101] galen@andromeda:~> gdb
    GNU gdb 5.2.1 (FreeBSD)
    Copyright 2002 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 "i386-undermydesk-freebsd".
    (gdb) apropos
    REGEXP string is empty
    (gdb) apropos foo
    Segmentation fault (core dumped)
    [102] galen@andromeda:~> exit
    exit

    Script done on Sat Jun 28 18:38:23 2003

    As you can see from the output the core dump only happens when a string is
    entered. This is from a world build from sources dated 6/28/03, but I also
    noticed it on a world from a week ago.

    regards,
    Galen Sampson

    __________________________________
    Do you Yahoo!?
    SBC Yahoo! DSL - Now only $29.95 per month!
    http://sbc.yahoo.com
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Kenneth D. Merry: "cardbus network problem with -current"

    Relevant Pages

    • Re: NPTL patch for linux 2.4.28
      ... I have already checked the core files size ... Please point me to NPTL patch location or the kernel SRPM if you could. ... > While debugging a simple multithreaded application using gdb linux ... exec file is newer than core file. ...
      (Linux-Kernel)
    • Re: FreeBSD 8.0-BETA2/amd64 crashes on SMP under load
      ... GNU gdb 6.1.1 [FreeBSD] ... GDB is free software, covered by the GNU General Public License, and you are ... GDB can't read core files on this machine. ...
      (freebsd-current)
    • Re: FreeBSD 8.0-BETA2/amd64 crashes on SMP under load
      ... hob% sudo kgdb -n 1 ... GNU gdb 6.1.1 ... GDB can't read core files on this machine. ... The stratum of the kgdb target was changed from highest ...
      (freebsd-current)
    • Re: solaris nscd cores
      ... I need to get better gdb output, ... Core was generated by `/usr/sbin/nscd'. ... >> Has anyone else seen core dumps from their Solaris nscd process ... >> Do You Yahoo!? ...
      (Incidents)
    • Re: FreeBSD 8.0-BETA2/amd64 crashes on SMP under load
      ... because core GDB doesn't know how to deal with all FreeBSD ... kgdb doesn't actually use the regular core target at all, ... is the kgdb target used at all? ...
      (freebsd-current)