NetBSD Problem Report #8153
Received: (qmail 17364 invoked from network); 6 Aug 1999 12:30:04 -0000
Message-Id: <199908061229.FAA01090@gandalf.plethora.net>
Date: Fri, 6 Aug 1999 05:29:28 -0700 (PDT)
From: Seebs <seebs@gandalf.plethora.net>
Reply-To: seebs@gandalf.plethora.net
To: gnats-bugs@gnats.netbsd.org
Subject: ksh core dump on alpha
X-Send-Pr-Version: 3.95
>Number: 8153
>Category: bin
>Synopsis: ksh can dump core on alpha
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: mycroft
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 06 05:35:01 +0000 1999
>Closed-Date: Fri Jul 16 17:42:14 +0000 2004
>Last-Modified: Fri Jul 16 17:42:14 +0000 2004
>Originator: Seebs
>Release: 1999/08/06
>Organization:
>Environment:
System: NetBSD gandalf.plethora.net 1.4I NetBSD 1.4I (GANDALF) #0: Fri Aug 6 04:52:25 PDT 1999 seebs@gandalf.plethora.net:/usr/src/sys/arch/alpha/compile/GANDALF alpha
>Description:
SYS=`uname -ms | sed -e 's![/ ]!_!g'`
dumps core about half the time on my alpha. Everything was compiled
with '-mcpu=21164a -Wa,-m21164a', but I think this happened without
that, too.
set -x reports:
+ uname -ms
+ sed -e s![/ ]!_!g
Memory fault (core dumped)
+ SYS=
gdb sez:
#0 alloc (size=4895994880, ap=0x120187048) at alloc.c:101
list says:
96 if (bp == NULL) {
97 aerror(ap, "cannot allocate");
98 return NULL;
99 }
100 if (ap->freelist == &aempty)
101 bp->next = bp;
102 else {
103 bp->next = ap->freelist->next;
104 ap->freelist->next = bp;
105 }
'bp' is $1 = (Block *) 0x123d2f400.
>How-To-Repeat:
SYS=`uname -ms | sed -e 's![/ ]!_!g'`
Repeat until bored.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: mycroft
State-Changed-When: Tue Jul 6 21:22:14 UTC 2004
State-Changed-Why:
Does this problem still occur?
Responsible-Changed-From-To: bin-bug-people->mycroft
Responsible-Changed-By: mycroft
Responsible-Changed-When: Tue Jul 6 21:22:14 UTC 2004
Responsible-Changed-Why:
.
From: seebs@plethora.net (Peter Seebach)
To: gnats-bugs@gnats.netbsd.org
Cc: mycroft@netbsd.org, gnats-admin@netbsd.org
Subject: Re: bin/8153
Date: Tue, 06 Jul 2004 17:16:02 -0500
In message <20040706212334.9225.qmail@mail.netbsd.org>, mycroft@netbsd.org writ
es:
>Synopsis: ksh can dump core on alpha
>
>State-Changed-From-To: open->feedback
>State-Changed-By: mycroft
>State-Changed-When: Tue Jul 6 21:22:14 UTC 2004
>State-Changed-Why:
>Does this problem still occur?
Don't know; my alpha's been down for some time. I may be able to bring
it back up some day.
-s
From: "Charles M. Hannum" <mycroft@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/8153 CVS commit: src/bin/ksh
Date: Wed, 7 Jul 2004 19:20:09 +0000 (UTC)
Module Name: src
Committed By: mycroft
Date: Wed Jul 7 19:20:09 UTC 2004
Modified Files:
src/bin/ksh: alloc.c c_ksh.c c_sh.c c_test.c c_test.h c_ulimit.c
config.h edit.c emacs.c eval.c exec.c expr.c history.c io.c jobs.c
ksh.Man lex.c lex.h main.c misc.c path.c proto.h sh.h shf.c syn.c
trap.c tree.c tree.h var.c vi.c
Log Message:
Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/bin/ksh/alloc.c src/bin/ksh/expr.c \
src/bin/ksh/lex.h src/bin/ksh/path.c src/bin/ksh/proto.h src/bin/ksh/sh.h \
src/bin/ksh/shf.c src/bin/ksh/syn.c src/bin/ksh/trap.c
cvs rdiff -r1.10 -r1.11 src/bin/ksh/c_ksh.c src/bin/ksh/main.c
cvs rdiff -r1.8 -r1.9 src/bin/ksh/c_sh.c src/bin/ksh/exec.c \
src/bin/ksh/misc.c src/bin/ksh/var.c
cvs rdiff -r1.4 -r1.5 src/bin/ksh/c_test.c src/bin/ksh/eval.c \
src/bin/ksh/tree.c
cvs rdiff -r1.2 -r1.3 src/bin/ksh/c_test.h
cvs rdiff -r1.6 -r1.7 src/bin/ksh/c_ulimit.c src/bin/ksh/config.h \
src/bin/ksh/history.c
cvs rdiff -r1.13 -r1.14 src/bin/ksh/edit.c
cvs rdiff -r1.23 -r1.24 src/bin/ksh/emacs.c
cvs rdiff -r1.7 -r1.8 src/bin/ksh/io.c src/bin/ksh/jobs.c src/bin/ksh/vi.c
cvs rdiff -r1.17 -r1.18 src/bin/ksh/ksh.Man
cvs rdiff -r1.9 -r1.10 src/bin/ksh/lex.c
cvs rdiff -r1.3 -r1.4 src/bin/ksh/tree.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: mycroft
State-Changed-When: Fri Jul 16 17:41:51 UTC 2004
State-Changed-Why:
Appears to be fixed.
>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.