From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>,
zsh-workers@sunsite.auc.dk
Subject: Re: 3.0.6-pre-5 problem
Date: Fri, 25 Jun 1999 09:03:15 +0000 [thread overview]
Message-ID: <990625090315.ZM3925@candle.brasslantern.com> (raw)
In-Reply-To: <199906250622.IAA32689@beta.informatik.hu-berlin.de>
On Jun 25, 8:22am, Sven Wischnowsky wrote:
} Subject: Re: 3.0.6-pre-5 problem
}
} Jos Backus wrote:
} > Interestingly, this backtrace looks quite different from the first one.
}
} (This fact irritates me mightily.)
The backtrace isn't really all that different, it just dies sooner with
debugging enabled.
} Anyway, I couldn't reproduce it but there is no harm in adding some
} security code to execpline(). I guess this will not apply cleanly to
} 3.0.6, though.
I think this patch (6838) should NOT be applied, and we need a different
one instead. Look here:
} - for (pn = jobtab[jn->other].procs; pn; pn = pn->next)
} - if (WIFSTOPPED(pn->status))
} - break;
} + if (jn->stat & STAT_SUPERJOB) {
} + for (pn = jobtab[jn->other].procs; pn; pn = pn->next)
} + if (WIFSTOPPED(pn->status))
} + break;
When I run this on linux inside gdb, it crashes on jobtab[jn->other], and
no wonder ... jn->other is a *process id*. jobtab[] is only 50 elements
long; in my case jn->other == 3819, which puts jobtab[jn->other] way out
in the middle of nowhere.
Now, I see from the comments in zsh.h that jn->other is sometimes supposed
to be a job number, and sometimes supposed to be a PID, which I think is
a really bad style of overloading ... but style aside, there appear to be
cases in execpline() where it's being treated as a subjob number when it
really is a process ID.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1999-06-25 9:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-25 6:22 Sven Wischnowsky
1999-06-25 9:03 ` Bart Schaefer [this message]
1999-06-25 9:17 ` Bart Schaefer
1999-06-25 9:23 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
1999-06-25 12:52 Sven Wischnowsky
1999-06-25 15:56 ` Peter Stephenson
1999-06-25 16:29 ` Bart Schaefer
1999-06-25 17:14 ` Bart Schaefer
1999-06-25 9:38 Sven Wischnowsky
1999-06-25 10:10 ` Bart Schaefer
1999-06-25 9:19 Sven Wischnowsky
1999-06-24 15:05 Jos Backus
1999-06-24 15:26 ` Jos Backus
1999-06-24 18:54 ` Jos Backus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=990625090315.ZM3925@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).