Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jun 2003 19:46:35 -0700 (PDT)
From:      Galen Sampson <galen_sampson@yahoo.com>
To:        current@freebsd.org
Subject:   gdb: apropos core dump
Message-ID:  <20030629024635.57160.qmail@web14107.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030629024635.57160.qmail>