zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Completion problem on right hand side of assignment.
Date: 03 May 1999 12:46:24 +0900	[thread overview]
Message-ID: <rsqpv4iq0hb.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: "Bart Schaefer"'s message of "Sun, 2 May 1999 12:35:01 -0700"

In article <990502123501.ZM10136@candle.brasslantern.com>,
  "Bart Schaefer" <schaefer@brasslantern.com> writes:

> I'm not able to reproduce this on my Linux box.  I tried both a dynamic
> and a non-dynamic build.

OK. I try to find more portable way to reproduce the problem...

... I found.

Make zsh as follows.

  ./configure --enable-zsh-debug --enable-zsh-mem --enable-zsh-mem-debug --enable-zsh-mem-warning --enable-zsh-secure-free
  make

Start zsh as follows.

  Src/zsh -f

Input as follows.

  "fpath=($PWD/Completion/*(/))" <RET>
  ". Completion/Core/compinit" <RET>
  "A=D" <TAB> <TAB> "Z" <TAB> <TAB> <C-U> 
  "A=D" <TAB> (*1) <TAB> "Z" <TAB> (*2)

(*1) zsh outputs "BUG: attempt to free storage at invalid address" on
  Solaris7.
(*2) zsh with --enable-zsh-mem dumps core on BSD/OS 3.0, Solaris7 and
  Debian GNU/Linux.

I think that --enable-zsh-mem is key to reproduce this problem.
But it reproduce on BSD/OS without --enable-zsh-mem.

Backtrace on Debian GNU/Linux is follows.

(gdb) where
#0  0x400cef6f in strlen ()
#1  0x8076551 in dupstring (s=0x902d72 <Address 0x902d72 out of bounds>)
    at mem.c:480
#2  0x80b3937 in makecomplistctl (flags=3) at zle_tricky.c:4795
#3  0x809aee8 in bin_compcall (name=0x81165cc "compcall", argv=0x8116714, 
    ops=0xbfffde24 "", func=0) at compctl.c:2130
#4  0x804af85 in execbuiltin (args=0x81165c4, bn=0x80cd994) at builtin.c:357
#5  0x8059087 in execcmd (cmd=0x81165a4, input=0, output=0, how=2, last1=2)
    at exec.c:1840
#6  0x805680a in execpline2 (pline=0x81166e4, how=2, input=0, output=0, 
    last1=0) at exec.c:926
#7  0x8056011 in execpline (l=0x8116590, how=2, last1=0) at exec.c:771
#8  0x8055cd9 in execlist (list=0x8116580, dont_change_job=1, exiting=0)
    at exec.c:672
#9  0x805b57e in runshfunc (list=0x81069a0, wrap=0x0, 
    name=0x8106fb4 "_default") at exec.c:2834
#10 0x809b5b9 in comp_wrapper (list=0x81069a0, w=0x0, 
    name=0x8106fb4 "_default") at compctl.c:2367
#11 0x805b51f in runshfunc (list=0x81069a0, wrap=0x80cda38, 
    name=0x8106fb4 "_default") at exec.c:2820
#12 0x805b33c in doshfunc (name=0x8106fb4 "_default", list=0x81069a0, 
    doshargs=0x811586c, flags=0, noreturnval=0) at exec.c:2752
#13 0x805af35 in execshfunc (cmd=0x811584c, shf=0x8106980) at exec.c:2650
#14 0x8059002 in execcmd (cmd=0x811584c, input=0, output=0, how=2, last1=2)
    at exec.c:1829
#15 0x805680a in execpline2 (pline=0x811583c, how=2, input=0, output=0, 
    last1=0) at exec.c:926
#16 0x8056011 in execpline (l=0x8115828, how=2, last1=0) at exec.c:771
#17 0x8055c6b in execlist (list=0x81157a4, dont_change_job=1, exiting=0)
    at exec.c:650
#18 0x80732bb in execif (cmd=0x8113e28) at loop.c:380
#19 0x8058e80 in execcmd (cmd=0x8113e28, input=0, output=0, how=2, last1=2)
    at exec.c:1793
#20 0x805680a in execpline2 (pline=0x8113e18, how=2, input=0, output=0, 
    last1=0) at exec.c:926
#21 0x8056011 in execpline (l=0x8113e04, how=2, last1=0) at exec.c:771
---Type <return> to continue, or q <return> to quit---
#22 0x8055c6b in execlist (list=0x8113df4, dont_change_job=1, exiting=0)
    at exec.c:650
#23 0x805b57e in runshfunc (list=0x810e6dc, wrap=0x0, 
    name=0x810a7f4 "_complete") at exec.c:2834
#24 0x809b5b9 in comp_wrapper (list=0x810e6dc, w=0x0, 
    name=0x810a7f4 "_complete") at compctl.c:2367
#25 0x805b51f in runshfunc (list=0x810e6dc, wrap=0x80cda38, 
    name=0x810a7f4 "_complete") at exec.c:2820
#26 0x805b33c in doshfunc (name=0x810a7f4 "_complete", list=0x810e6dc, 
    doshargs=0x81130a4, flags=0, noreturnval=0) at exec.c:2752
#27 0x805af35 in execshfunc (cmd=0x8113084, shf=0x810e6bc) at exec.c:2650
#28 0x8059002 in execcmd (cmd=0x8113084, input=0, output=0, how=2, last1=2)
    at exec.c:1829
#29 0x805680a in execpline2 (pline=0x8113074, how=2, input=0, output=0, 
    last1=0) at exec.c:926
#30 0x8056011 in execpline (l=0x8113060, how=2, last1=0) at exec.c:771
#31 0x8055c85 in execlist (list=0x8113050, dont_change_job=1, exiting=0)
    at exec.c:656
#32 0x807283c in execfor (cmd=0x8112c6c) at loop.c:104
#33 0x8058e80 in execcmd (cmd=0x8112c6c, input=0, output=0, how=2, last1=2)
    at exec.c:1793
#34 0x805680a in execpline2 (pline=0x8112c5c, how=2, input=0, output=0, 
    last1=0) at exec.c:926
#35 0x8056011 in execpline (l=0x8112c48, how=2, last1=0) at exec.c:771
#36 0x8055c6b in execlist (list=0x8112c38, dont_change_job=1, exiting=0)
    at exec.c:650
#37 0x805b57e in runshfunc (list=0x810e7ec, wrap=0x0, 
    name=0x8114df4 "_main_complete") at exec.c:2834
#38 0x809b5b9 in comp_wrapper (list=0x810e7ec, w=0x0, 
    name=0x8114df4 "_main_complete") at compctl.c:2367
#39 0x805b51f in runshfunc (list=0x810e7ec, wrap=0x80cda38, 
    name=0x8114df4 "_main_complete") at exec.c:2820
#40 0x805b33c in doshfunc (name=0x8114df4 "_main_complete", list=0x810e7ec, 
    doshargs=0x0, flags=0, noreturnval=1) at exec.c:2752
#41 0x80b2cf7 in callcompfunc (s=0x80fc774 "Doc/Z", 
    fn=0x8114df4 "_main_complete") at zle_tricky.c:4480
---Type <return> to continue, or q <return> to quit---
#42 0x80b3369 in makecomplist (s=0x80fc774 "Doc/Z", incmd=0, lst=0)
    at zle_tricky.c:4632
#43 0x80b2135 in docompletion (s=0x8105fa8 "Doc/Z", lst=0, incmd=0)
    at zle_tricky.c:4196
#44 0x80aa85f in docomplete (lst=0) at zle_tricky.c:1000
#45 0x80a951f in expandorcomplete () at zle_tricky.c:469
#46 0x80a92a8 in completecall () at zle_tricky.c:376
#47 0x80a18cd in execzlefunc (func=0x80f719c) at zle_main.c:592
#48 0x80a1468 in zleread (lp=0x80f47b0 "%m%# ", rp=0x0, flags=3)
    at zle_main.c:510
#49 0x806b0da in inputline () at input.c:263
#50 0x806afcd in ingetc () at input.c:208
#51 0x8065a3f in hgetc () at hist.c:206
#52 0x806f8c9 in gettok () at lex.c:526
#53 0x806f225 in yylex () at lex.c:289
#54 0x807f8b8 in parse_event () at parse.c:99
#55 0x806912f in loop (toplevel=1, justonce=0) at init.c:100
#56 0x804a635 in main (argc=2, argv=0xbffffaf4) at ./main.c:77
(gdb) 
-- 
Tanaka Akira


  reply	other threads:[~1999-05-03  3:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-02 16:46 Tanaka Akira
1999-05-02 19:35 ` Bart Schaefer
1999-05-03  3:46   ` Tanaka Akira [this message]
1999-05-03  9:18 Sven Wischnowsky

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=rsqpv4iq0hb.fsf@crane.jaist.ac.jp \
    --to=akr@jaist.ac.jp \
    --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).