Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: partial word completion



Zsh seems to crash now with this patch.  The third parameter to sub_join()
is NULL, which causes the crash.  Here's the stack trace:

#0  0xed1ac in sub_join (a=0x16e948, b=0x16de38, e=0x0, anew=1)
    at compmatch.c:1683
#1  0xededc in join_clines (o=0x16de38, n=0x16e948) at compmatch.c:1900
#2  0xe5240 in add_match_data (alt=0, str=0x170058 "zsh3.1.5", line=0x16e948, 
    ipre=0x16f278 "", ripre=0x0, isuf=0x16f280 "", pre=0x0, prpre=0x16f340 "", 
    ppre=0x16f298 "", pline=0x0, psuf=0x0, sline=0x0, suf=0x0, flags=1, 
    exact=0) at compcore.c:2205
#3  0xe3ba0 in addmatches (dat=0xefff7a10, argv=0xefff7b70) at compcore.c:1871
#4  0xd9f70 in bin_compadd (name=0x1c42c0 "compadd", argv=0xefff7b08, 
    ops=0xefff7c80 "", func=0) at complete.c:562
#5  0x24a44 in execbuiltin (args=0x1c4228, bn=0x15a70c) at builtin.c:368


Sorry not to provide a simple test case.  If you need that I can investigate
a little more.  The error happened in a directory with many files, and
some simple pruning didn't uncover the error.

-FR.


__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com



Messages sorted by: Reverse Date, Date, Thread, Author