From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22652 invoked from network); 3 May 1999 03:46:43 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 May 1999 03:46:43 -0000 Received: (qmail 28547 invoked by alias); 3 May 1999 03:46:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6189 Received: (qmail 28540 invoked from network); 3 May 1999 03:46:26 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: Completion problem on right hand side of assignment. References: <990502123501.ZM10136@candle.brasslantern.com> MIME-Version: 1.0 (generated by AKEMI 1.13.1 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCP2U+PUJOGyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 03 May 1999 12:46:24 +0900 In-Reply-To: "Bart Schaefer"'s message of "Sun, 2 May 1999 12:35:01 -0700" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.1 (=?ISO-2022-JP?B?GyRCP2UbKEI=?= =?ISO-2022-JP?B?GyRCPj1CThsoQg==?=) FLAM-DOODLE/1.12.5 (=?ISO-2022-JP?B?GyRCRlAbKEI=?= 10R4.0/7.0) Emacs/20.3.8 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <990502123501.ZM10136@candle.brasslantern.com>, "Bart Schaefer" 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/*(/))" ". Completion/Core/compinit" "A=D" "Z" "A=D" (*1) "Z" (*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
) 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 to continue, or q 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 to continue, or q 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