From owner-freebsd-current@FreeBSD.ORG Sat Jun 28 19:46:36 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7834C37B401 for ; Sat, 28 Jun 2003 19:46:36 -0700 (PDT) Received: from web14107.mail.yahoo.com (web14107.mail.yahoo.com [216.136.172.137]) by mx1.FreeBSD.org (Postfix) with SMTP id 11DE744005 for ; Sat, 28 Jun 2003 19:46:36 -0700 (PDT) (envelope-from galen_sampson@yahoo.com) Message-ID: <20030629024635.57160.qmail@web14107.mail.yahoo.com> Received: from [209.86.0.119] by web14107.mail.yahoo.com via HTTP; Sat, 28 Jun 2003 19:46:35 PDT Date: Sat, 28 Jun 2003 19:46:35 -0700 (PDT) From: Galen Sampson To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: gdb: apropos core dump X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 02:46:36 -0000 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