From: Paul Lew <paullew@cisco.com>
To: zsh-workers@sunsite.dk
Cc: Paul Lew <paullew@cisco.com>
Subject: zsh 4.0.4 core dump
Date: Wed, 7 Aug 2002 18:15:03 -0700 [thread overview]
Message-ID: <15697.50711.359543.354374@paullew-ultra.cisco.com> (raw)
We have been using zsh 4.0.4 for a while and experiencing occasional
core dump for the past 6 months. The behavior is if we left a zsh
session there overnight, the first carriage return will cause it to
core.
After build a debugged version, the gdb says:
Program terminated with signal 10, Bus Error.
#0 0x2af38 in bin_dot (name=0x0, argv=0x1, ops=0x39ce7 "", func=-4264968)
at builtin.c:3380
3380 if (!(*t)[0] || ((*t)[0] == '.' && !(*t)[1])) {
(gdb) where
#0 0x2af38 in bin_dot (name=0x0, argv=0x1, ops=0x39ce7 "", func=-4264968)
at builtin.c:3380
#1 0x2ad98 in bin_dot (name=0x9e918 "", argv=0x0, ops=0xa7a90 "precmd",
func=0) at builtin.c:3365
#2 0x310d4 in cond_val (args=0x8, num=139192) at cond.c:396
(gdb) p t
$1 = (char **) 0x81000000
(gdb) p *t
Cannot access memory at address 0x81000000
The source around line 3380 of builtin.c looks like:
3376 if (!*s || (ret && isset(PATHDIRS) && diddot < 2 && dotdot == 0)) {
3377 pushheap();
3378 /* search path for script */
3379 for (t = path; *t; t++) {
3380 ---> if (!(*t)[0] || ((*t)[0] == '.' && !(*t)[1])) {
3381 if (diddot)
3382 continue;
3383 diddot = 1;
3384 buf = dupstring(arg0);
3385 } else
3386 buf = zhtricat(*t, "/", arg0);
Seems like our precmd triggered a bug. Has this been reported at all?
Thanks in advance...
next reply other threads:[~2002-08-08 1:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-08 1:15 Paul Lew [this message]
2002-08-08 10:04 ` Peter Stephenson
2002-08-08 16:03 ` Paul Lew
2002-08-10 5:23 ` Paul Lew
2002-08-10 14:55 ` Bart Schaefer
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=15697.50711.359543.354374@paullew-ultra.cisco.com \
--to=paullew@cisco.com \
--cc=zsh-workers@sunsite.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).