Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 1996 20:16:37 -0400 (EDT)
From:      "Eric J. Chet" <ejc@gargoyle.bazzle.com>
To:        freebsd-current@freebsd.org
Subject:   -current as of 10/23/96
Message-ID:  <Pine.BSF.3.95.961024195811.2302A-100000@gargoyle.bazzle.com>

next in thread | raw e-mail | index | archive | help
Hello
	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.

gargoyle# gdb /usr/local/bin/ksh ksh.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.13 (i386-unknown-freebsd), 
Copyright 1994 Free Software Foundation, Inc...
Core was generated by `ksh'.
Program terminated with signal 11, Segmentation fault.
#0  shf_close (shf=0xd0d0d0d0) at shf.c:203
203             if (shf->fd >= 0) {
(gdb) 

(gdb) where
#0  shf_close (shf=0xd0d0d0d0) at shf.c:203
#1  0x1664b in include (name=0x15d78 "/etc/profile", argc=0, argv=0x0, 
    intr_ok=1) at main.c:487
#2  0x16397 in main (argc=1, argv=0xefbfde54) at main.c:359

shf.c-------------
int
shf_close(shf)
        struct shf *shf;
{
        int ret = 0;

        if (shf->fd >= 0) {
                ret = shf_flush(shf);
                if (close(shf->fd) < 0)
                        ret = EOF;
        }
        if (shf->flags & SHF_ALLOCS)
                afree(shf, shf->areap);
        else if (shf->flags & SHF_ALLOCB)
                afree(shf->buf, shf->areap); 

        return ret;
}

shf->fd contains the fd from opening "/etc/profile"

Any ideas?

Thanks,


                                              Eric J. Chet
                                               - ejc@bazzle.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.961024195811.2302A-100000>