Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 1996 06:39:38 +1000
From:      davidn@sdev.usn.blaze.net.au (David Nugent)
To:        ejc@gargoyle.bazzle.com (Eric J. Chet)
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: -current as of 10/23/96
Message-ID:  <199610252039.GAA28193@sdev.usn.blaze.net.au>
In-Reply-To: <Pine.BSF.3.95.961024195811.2302A-100000@gargoyle.bazzle.com>; from Eric J. Chet on Oct 24, 1996 20:16:37 -0400
References:  <Pine.BSF.3.95.961024195811.2302A-100000@gargoyle.bazzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Eric J. Chet writes:

> 	Make world as of last night 10/23/96.  Can't login using pdksh
> it dumps with sig 11, csh and tcsh are fine.  I rebuilt ksh same result.
> It only dumps at login, works fine from another shell.

I had the same result, but since I was busy on something else I just
changed shell and thought I'd get back to it when I had time to download
the pdksh sources again. However, since you've done most of the work
already:

> Program terminated with signal 11, Segmentation fault.
> #0  shf_close (shf=0xd0d0d0d0) at shf.c:203
> 203             if (shf->fd >= 0) {


Do you happen to have /etc/malloc.conf symlinked to 'AD'? (BTW, this
has been a *wonderful* help in debugging things I previously never
realised had problems over the last few days :-)).

If so, then the pattern 0xd0d0d0d0 means that it is an uninitialised
value or a variable that previously existed in memory that has been
subsequently freed. It is more likely you'll discover how this happens
in frame 2:

> #2  0x16397 in main (argc=1, argv=0xefbfde54) at main.c:359

Somewhere above there.

To point out the obvious, this most likely a bug in pdksh. :)

The most likely scenario is something like this:

	free(xyz);
	shf_close(xyz->shf);

Or perhaps the programmer is as not initialising memory after allocating
it.  As I said, I haven't looked yet. If you come across the fix, be sure
to cc me the patch. :)

Hope this helps,


David Nugent, Unique Computing Pty Ltd - Melbourne, Australia
Voice +61-3-791-9547 Data/BBS +61-3-792-3507 3:632/348@fidonet
davidn@blaze.net.au http://www.blaze.net.au/~davidn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610252039.GAA28193>