From owner-freebsd-ports Mon Aug 19 8: 0:15 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87F0837B400 for ; Mon, 19 Aug 2002 08:00:08 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77F843E70 for ; Mon, 19 Aug 2002 08:00:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7JF07JU058239 for ; Mon, 19 Aug 2002 08:00:07 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7JF07nr058238; Mon, 19 Aug 2002 08:00:07 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6688D37B400 for ; Mon, 19 Aug 2002 07:50:19 -0700 (PDT) Received: from gilliam.users.flyingcroc.net (gilliam.users.flyingcroc.net [207.246.128.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 179AA43E6E for ; Mon, 19 Aug 2002 07:50:19 -0700 (PDT) (envelope-from joek@mail.flyingcroc.net) Received: from unx48.staff.flyingcroc.net (unx48.staff.flyingcroc.net [207.246.150.48]) by gilliam.users.flyingcroc.net (8.9.3/8.9.3) with SMTP id HAA63533 for ; Mon, 19 Aug 2002 07:50:18 -0700 (PDT) Received: (qmail 41700 invoked by uid 1001); 19 Aug 2002 14:50:18 -0000 Message-Id: <20020819145018.41699.qmail@unx48.staff.flyingcroc.net> Date: 19 Aug 2002 14:50:18 -0000 From: Joe Kelsey Reply-To: Joe Kelsey To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/41778: ksh93 dumps core Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41778 >Category: ports >Synopsis: ksh93 dumps core >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 19 08:00:06 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Joe Kelsey >Release: FreeBSD 4.6-STABLE i386 >Organization: >Environment: System: FreeBSD unx48.staff.flyingcroc.net 4.6-STABLE FreeBSD 4.6-STABLE #18: Tue Aug 6 08:38:39 PDT 2002 joek@unx48.staff.flyingcroc.net:/usr/obj/usr/src/sys/UNX48 i386 >Description: ksh93 dumps core seemingly at random. >How-To-Repeat: in a sufficiently large glob request, say grep stdio */* watch the core dump. (my example generates a glob list of 194 elements. I don't know the exact repeat parameteres.) >Fix: Apparantly, a fix is pending at AT&T. The real problem is in sfio and/or stak. Until then, fix the symptoms with the following patch to src/cmd/ksh93/sh/path.c (which I placed in files/src_cmd_kah93_sh_path.c): --- path.c.orig Mon Mar 11 10:50:16 2002 +++ src/cmd/ksh93/sh/path.c Mon Aug 19 07:07:04 2002 @@ -945,7 +945,8 @@ { register const char *cp = name; while(*cp && *cp!=':') - stakputc(*cp++); + cp++; + stakwrite(name,cp-name); len = staktell()-offset; stakputc(0); } >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message