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

Re: zsh deep freeze (probably autocompletion-related)



On Dec 7,  5:03pm, Einar Lielmanis wrote:
}
} Steps to reproduce:
} 
} "rm ./\" [enter] [tab]
} 
} zsh freezes hard and cannot be terminated; kill -9 ir required.

I get a crash rather than a freeze.

Program received signal SIGSEGV, Segmentation fault.
0x080bfe09 in chuck (str=0xb7d37000 "$\003\001 \020")
    at ../../zsh-4.0/Src/utils.c:1795
1795        while ((str[0] = str[1]))
(gdb) where
#0  0x080bfe09 in chuck (str=0xb7d37000 "$\003\001 \020")
    at ../../zsh-4.0/Src/utils.c:1795
#1  0x08131568 in get_comp_string ()
    at ../../../zsh-4.0/Src/Zle/zle_tricky.c:1259
#2  0x0812ff58 in docomplete (lst=0)
    at ../../../zsh-4.0/Src/Zle/zle_tricky.c:659
#3  0x0812f395 in completeword (args=0x816d01c)
    at ../../../zsh-4.0/Src/Zle/zle_tricky.c:232
#4  0x0812f2b9 in completecall (args=0x816d01c)
    at ../../../zsh-4.0/Src/Zle/zle_tricky.c:208
#5  0x08121bbc in execzlefunc (func=0x815b3f0, args=0x816d01c, set_bindk=0)
    at ../../../zsh-4.0/Src/Zle/zle_main.c:1312
#6  0x08121263 in zlecore () at ../../../zsh-4.0/Src/Zle/zle_main.c:1050
#7  0x08121817 in zleread (lp=0x816ddc8, rp=0x0, flags=3, context=1)
    at ../../../zsh-4.0/Src/Zle/zle_main.c:1213
#8  0x081235a8 in zle_main_entry (cmd=1, ap=0xbfeee6e4 "\221áC")
    at ../../../zsh-4.0/Src/Zle/zle_main.c:1866
#9  0x0807df9c in zleentry (cmd=1) at ../../zsh-4.0/Src/init.c:1305
#10 0x0807e7c7 in inputline () at ../../zsh-4.0/Src/input.c:278

(gdb) up
#1  0x08131568 in get_comp_string ()
    at ../../../zsh-4.0/Src/Zle/zle_tricky.c:1259
1259                    chuck(tt + zlemetacs - wb - qsub);
(gdb) p tt
$3 = 0xb7d33898 "./x"
(gdb) p zlemetacs
$4 = 7
(gdb) p wb
$5 = 3
(gdb) p qsub
$6 = 0

Looks like zlemetacs is too large.



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