Date: Wed, 3 Nov 2004 00:10:31 GMT From: Parv <parv@pair.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/73404: shells/ksh93 - notify option + output redirected to nonexistent file cause crash w/ segfault Message-ID: <200411030010.iA30AV1q085325@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/73404; it has been noted by GNATS. From: Parv <parv@pair.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/73404: shells/ksh93 - notify option + output redirected to nonexistent file cause crash w/ segfault Date: Tue, 2 Nov 2004 19:03:42 -0500 Additionally ksh93 also crashes when output is directed to an already-existing-named-pipe (which prompted me to send the report originally) ... echo 'pipe already exists' > already-existent-pipe & The (gdb) backtrace looks similar to the one sent previously ... Core was generated by `ksh93'. Program terminated with signal 11, Segmentation fault. #0 job_unlink (pw=0x0) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/sh/jobs.c:1438 1438 job.pwlist = pw->p_nxtjob; (gdb) bt #0 job_unlink (pw=0x0) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/sh/jobs.c:1438 #1 0x8053e49 in job_unpost (pwtop=0xbfbfecf0, notify=1) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/sh/jobs.c:1397 #2 0x8052643 in job_waitsafe (sig=20) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/sh/jobs.c:328 #3 0xbfbfffac in ?? () #4 0x804a1fe in ed_read (context=0x8162048, fd=0, buff=0x816fe60 "", size=4096, reedit=0) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/edit/edit.c:755 #5 0x805159c in slowread (iop=0x814d1e0, buff=0x816fe60, size=4096, handle=0x8163960) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/sh/io.c:1113 #6 0x80c1443 in sfrd () #7 0x80bdb94 in _sffilbuf (f=0x814d1e0, n=-1) at /work/ports/misc/ports/shells/ksh93/work/src/lib/libast/sfio/sffilbuf.c:108 #8 0x80c1c3f in sfreserve (f=0x814d1e0, size=0, type=0) at /work/ports/misc/ports/shells/ksh93/work/src/lib/libast/sfio/sfreserve.c:117 #9 0x80491d3 in exfile () #10 0x8048c26 in sh_main () #11 0x804820c in main (argc=1, argv=0xbfbff3f0) at /work/ports/misc/ports/shells/ksh93/work/src/cmd/ksh93/sh/pmain.c:33 - Parv --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411030010.iA30AV1q085325>