Skip site navigation (1)Skip section navigation (2)
Date:      19 Aug 2002 14:50:18 -0000
From:      Joe Kelsey <>
Subject:   ports/41778: ksh93 dumps core
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

>Number:         41778
>Category:       ports
>Synopsis:       ksh93 dumps core
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 19 08:00:06 PDT 2002
>Originator:     Joe Kelsey
>Release:        FreeBSD 4.6-STABLE i386
System: FreeBSD 4.6-STABLE FreeBSD 4.6-STABLE #18: Tue Aug 6 08:38:39 PDT 2002 i386

	ksh93 dumps core seemingly at random.
	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.)
	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

--- 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;


To Unsubscribe: send mail to
with "unsubscribe freebsd-ports" in the body of the message

Want to link to this message? Use this URL: <>