Date: 19 Aug 2002 14:50:18 -0000 From: Joe Kelsey <joek@mail.flyingcroc.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/41778: ksh93 dumps core Message-ID: <20020819145018.41699.qmail@unx48.staff.flyingcroc.net>
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 >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020819145018.41699.qmail>