Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

BUG: jobs -d causes core dump



When I attempt to run "jobs -l -d" I get a core dump, with the following
stack trace.

I think the problem occurs when there is a job in the background that was
started in the current directory.  It seems like the pathname in the Job
structure is a NULL pointer at that time.  

-FR

#0  0xb63d8 in unmeta (file_name=0x0) at utils.c:2498
2498        for (t = file_name, p = fn; *t && p < fn + 4 * PATH_MAX - 1; p++)
(gdb) where
#0  0xb63d8 in unmeta (file_name=0x0) at utils.c:2498
#1  0xae568 in fprintdir (s=0x0, f=0x1709b0) at utils.c:404
#2  0x61838 in printjob (jn=0x16eb60, lng=5, synch=2) at jobs.c:737
#3  0x63864 in bin_fg (name=0x17f168 "jobs", argv=0xefffe6f0, 
    ops=0xefffe7a0 "", func=3) at jobs.c:1273
#4  0x24bb4 in execbuiltin (args=0x17f138, bn=0x15ec70) at builtin.c:368
#5  0x3f020 in execcmd (state=0xefffebd8, input=0, output=0, how=18, last1=2)
    at exec.c:2257
#6  0x3a394 in execpline2 (state=0xefffebd8, pcode=1027, how=18, input=0, 
    output=0, last1=0) at exec.c:1183
#7  0x39194 in execpline (state=0xefffebd8, slcode=5122, how=18, last1=0)
    at exec.c:976
#8  0x387cc in execlist (state=0xefffebd8, dont_change_job=0, exiting=0)
    at exec.c:821
#9  0x3832c in execode (p=0x17f0e0, dont_change_job=0, exiting=0) at exec.c:727
#10 0x59ea8 in loop (toplevel=1, justonce=0) at init.c:150
#11 0x23c68 in main (argc=1, argv=0xefffed64) at ./main.c:86


__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/



Messages sorted by: Reverse Date, Date, Thread, Author