zsh-workers
 help / color / mirror / code / Atom feed
From: "Mikael Magnusson" <mikachu@gmail.com>
To: "Peter Stephenson" <pws@csr.com>
Cc: "Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: Re: zsh 4.3.4 released
Date: Mon, 23 Apr 2007 18:07:55 +0200	[thread overview]
Message-ID: <237967ef0704230907x3054fbdah5e0baa4df5da73d9@mail.gmail.com> (raw)
In-Reply-To: <200704231506.l3NF6Njx011759@news01.csr.com>

On 23/04/07, Peter Stephenson <pws@csr.com> wrote:
> "Mikael Magnusson" wrote:
> > (gdb) print tindent
> > $12 = -2
>
> Thanks.  This is the problem; tindent should never be less than zero.
> I'm not sure why I'm not seeing it; it might suggest the structure with
> the function in it is already corrupt at the point where you run
> "which".
>
> The following patch should stop the crash (so it's probably worth
> having) and report at the point where it first becomes confused, though
> it doesn't address the underlying problem.

With latest cvs, it still crashes, but differently.

Program received signal SIGSEGV, Segmentation fault.
0xa7dc90cc in memcpy () from /lib/libc.so.6
(gdb) bt
#0  0xa7dc90cc in memcpy () from /lib/libc.so.6
#1  0x080d0e1b in taddstr (s=0x80e4c4a "esac") at text.c:81
#2  0x080d1e19 in gettext2 (state=0xaf8659c0) at text.c:594
#3  0x080d0f9e in getpermtext (prog=0x8115538, c=0x8116a64) at text.c:141
#4  0x08081057 in printshfuncnode (hn=0x8115560, printflags=32) at
hashtable.c:889
#5  0x080619f7 in bin_whence (nam=0xa7f362a0 "which", argv=0xaf865c50,
ops=0xaf865ca0, func=0)
    at builtin.c:3050
#6  0x080536bd in execbuiltin (args=0xa7f36278, bn=0x80e73a8) at builtin.c:438
#7  0x0807496c in execcmd (state=0xaf866080, input=0, output=0,
how=18, last1=2) at exec.c:2670
#8  0x08070cd1 in execpline2 (state=0xaf866080, pcode=195, how=18,
input=0, output=0, last1=0)
    at exec.c:1343
#9  0x0806fc28 in execpline (state=0xaf866080, slcode=4098, how=18,
last1=0) at exec.c:1129
#10 0x0806f355 in execlist (state=0xaf866080, dont_change_job=0,
exiting=0) at exec.c:935
#11 0x0806ef63 in execode (p=0xa7f36220, dont_change_job=0, exiting=0)
at exec.c:793
#12 0x0808996c in loop (toplevel=1, justonce=0) at init.c:180
#13 0x0808c470 in zsh_main (argc=2, argv=0xaf8661b4) at init.c:1347
#14 0x08052d12 in main (argc=2, argv=0xaf8661b4) at ./main.c:93
(gdb) frame 1
#1  0x080d0e1b in taddstr (s=0x80e4c4a "esac") at text.c:81
81		memcpy(tptr, s, sl);
(gdb) print tptr
$1 = 0x1ffffff <Address 0x1ffffff out of bounds>
(gdb) print s
$2 = 0x80e4c4a "esac"
(gdb) print sl
$3 = 4
(gdb) print tbuf
$4 = 0x0
(gdb) print tlim
$5 = 0x4000000 <Address 0x4000000 out of bounds>
(gdb) print tsiz
$6 = 67108864
(gdb) print tindent
$7 = 0
(gdb) print tnewlins
$8 = 1

Don't know if it would help but here's the zwc file too,
http://mikachu.ath.cx/dot-zshurxvt.zwc

-- 
Mikael Magnusson


  parent reply	other threads:[~2007-04-23 16:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200704161647.l3GGl2FE027950@news01.csr.com>
     [not found] ` <20070419120758.e9774528.pws@csr.com>
2007-04-19 19:44   ` Paul Ackersviller
     [not found]   ` <237967ef0704201440g1c072ca8l451439d2ec8578bf@mail.gmail.com>
     [not found]     ` <20070423104151.1f5f368e.pws@csr.com>
     [not found]       ` <237967ef0704230550k41ddb13fy60deebd526ecc5ec@mail.gmail.com>
2007-04-23 13:18         ` Peter Stephenson
2007-04-23 14:22           ` Mikael Magnusson
2007-04-23 15:06             ` Peter Stephenson
2007-04-23 16:00               ` Mikael Magnusson
2007-04-23 16:40                 ` Peter Stephenson
2007-04-23 17:07                   ` Peter Stephenson
2007-04-23 17:18                   ` Mikael Magnusson
2007-04-23 16:07               ` Mikael Magnusson [this message]
     [not found]         ` <BB046CA812535C45BD0029AA9D04BA79C66F39@KL-SRV57.lmsintl.com>
2007-04-23 14:01           ` Peter Stephenson
     [not found]             ` <BB046CA812535C45BD0029AA9D04BA79C66F72@KL-SRV57.lmsintl.com>
2007-04-23 15:14               ` Peter Stephenson

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=237967ef0704230907x3054fbdah5e0baa4df5da73d9@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=pws@csr.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).