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

Re: segfault in completion when using alias with \ as last character



On Aug 1,  4:45pm, torstenschmits@xxxxxxxxx wrote:
}
} alias foo='bar\'
} foo <tab>
} -> segfault.

Src/Zle/zle_tricky.c:668: BUG: 0 <= wb <= zlemetacs <= we is not true!

That's right after a call to get_comp_string() which we've just been
messing with for a different segfault, but workers/31611 doesn't have
any effect on this one.

The actual crash is here:

0x080c7da3 in ztrsub (t=0x8c0c5d7 "", 
    s=0x8c32001 <Address 0x8c32001 out of bounds>)
    at ../../zsh-5.0/Src/utils.c:4236
4236            if (*s++ == Meta) {
#0  0x080c7da3 in ztrsub (t=0x8c0c5d7 "", 
    s=0x8c32001 <Address 0x8c32001 out of bounds>)
    at ../../zsh-5.0/Src/utils.c:4236
#1  0x08124699 in docomplete (lst=0)
    at ../../../zsh-5.0/Src/Zle/zle_tricky.c:675
#2  0x08123aa9 in completeword (args=0x815ebe0)
    at ../../../zsh-5.0/Src/Zle/zle_tricky.c:232
#3  0x081239cd in completecall (args=0x815ebe0)
    at ../../../zsh-5.0/Src/Zle/zle_tricky.c:208



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