Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Seg fault after unset PATH
- X-seq: zsh-workers 3799
- From: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxxx>
- Subject: Seg fault after unset PATH
- Date: Sat, 14 Mar 1998 16:52:00 +0000
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam.spiers@xxxxxxxxxxxx>
miles:adam ...BUILD/zsh-3.0.5/Src % ./zsh
miles:adam ...BUILD/zsh-3.0.5/Src % unlimit coredumpsize
miles:adam ...BUILD/zsh-3.0.5/Src % unset PATH
miles:adam ...BUILD/zsh-3.0.5/Src % finger
zsh: 7075 segmentation fault ./zsh
miles:adam ...BUILD/zsh-3.0.5/Src % gdb ./zsh 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.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
Core was generated by `./zsh'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libncurses.so.4...done.
Reading symbols from /lib/libc.so.5...done.
Reading symbols from /lib/ld-linux.so.1...done.
#0 0x805c875 in hashcmd (arg0=0x80c734c "finger", pp=0x80e1510) at exec.c:448
448 if (**pp == '/') {
(gdb) bt
#0 0x805c875 in hashcmd (arg0=0x80c734c "finger", pp=0x80e1510) at exec.c:448
#1 0x805f2bd in execcmd (cmd=0x80c7460, input=0, output=0, how=2, last1=2)
at exec.c:1364
#2 0x805d68e in execpline2 (pline=0x80c74a8, how=2, input=0, output=0,
last1=0) at exec.c:802
#3 0x805cf06 in execpline (l=0x80c744c, how=2, last1=0) at exec.c:647
#4 0x805cb27 in execlist (list=0x80c74b8, dont_change_job=0, exiting=0)
at exec.c:527
#5 0x80708ef in loop (toplevel=1) at init.c:131
#6 0x807075a in main (argc=1, argv=0xbffff6b0) at init.c:77
#7 0x804a0cb in ___crt_dummy__ ()
(gdb) q
miles:adam ...BUILD/zsh-3.0.5/Src % echo $ZSH_VERSION
3.0.5
miles:adam ...BUILD/zsh-3.0.5/Src % file zsh
zsh: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked, not stripped
miles:adam ...BUILD/zsh-3.0.5/Src % uname -a
Linux miles.new.ox.ac.uk 2.0.33 #4 Wed Feb 18 10:49:27 GMT 1998 i586 unknown
I built this version of zsh using the spec file from the SRPM
for 3.0.5 on the RedHat contrib site, so no particularly odd
build options:
./configure --prefix=/usr --bindir=/bin --enable-etcdir=/etc/zsh
Feel free to ask if you want more information on reproducing the
bug. Hope this is of some use in tracking it down!
--
Adam Spiers, Computing Officer, New College, Oxford University, UK **
violoncello/modern jazz/juggling/cycling/Perl/Linux fanatic, M$ hater
e-mail: adam.spiers@xxxxxxxxxxxx WWW: http://www.new.ox.ac.uk/~adam/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author