NetBSD Problem Report #30215
From hira@po6.nsk.ne.jp Thu May 12 15:10:18 2005
Return-Path: <hira@po6.nsk.ne.jp>
Received: from firefly.localdomain (adsl-4-2038.adsl.nsk.ne.jp [61.198.90.38])
by narn.netbsd.org (Postfix) with ESMTP id 63E3A63B116
for <gnats-bugs@gnats.NetBSD.org>; Thu, 12 May 2005 15:10:18 +0000 (UTC)
Message-Id: <20050512151011.6E10AA553@firefly.localdomain>
Date: Fri, 13 May 2005 00:10:11 +0900 (JST)
From: hira@po6.nsk.ne.jp
To: gnats-bugs@netbsd.org
Subject: /bin/sh dumps core with tabcomplete
X-Send-Pr-Version: 3.95
>Number: 30215
>Category: lib
>Synopsis: /bin/sh dumps core with tabcomplete
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 12 15:11:00 +0000 2005
>Closed-Date: Mon Jun 20 13:57:26 +0000 2005
>Last-Modified: Mon Jun 20 13:57:26 +0000 2005
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 3.99.3
>Organization:
>Environment:
System: NetBSD firefly.localdomain 3.99.3 NetBSD 3.99.3 (PBG4.current) #270: Thu May 12 20:04:01 JST 2005 root@firefly.localdomain:/usr/src/sys/arch/macppc/compile/PBG4.current macppc
Architecture: powerpc
Machine: macppc
>Description:
When completing a filename, /bin/sh dumps core. This does
not happen with revision 1.2 of lib/libedit/filecomplete.c.
% /bin/sh
$ set -o emacs; set -o tabcomplete
[hit tab key]
$ zsh: 16479 segmentation fault (core dumped) /bin/sh
%
>How-To-Repeat:
See above.
>Fix:
Sorry, I don't know.
>Release-Note:
>Audit-Trail:
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30215 CVS commit: src/lib/libedit
Date: Thu, 12 May 2005 15:48:40 +0000 (UTC)
Module Name: src
Committed By: christos
Date: Thu May 12 15:48:40 UTC 2005
Modified Files:
src/lib/libedit: filecomplete.c
Log Message:
PR/30215: Kouichirou Hiratsuka: /bin/sh dumps core with tabcomplete
Don't core-dump when trying to complete an empty line; instead assume ./
To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/lib/libedit/filecomplete.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: peter@netbsd.org
State-Changed-When: Mon, 20 Jun 2005 13:49:39 +0000
State-Changed-Why:
please try the latest rev. of src/lib/libedit/filecomplete.c
State-Changed-From-To: feedback->closed
State-Changed-By: peter@netbsd.org
State-Changed-When: Mon, 20 Jun 2005 13:57:26 +0000
State-Changed-Why:
confirmed by submitter. thanks for the PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.