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

Crash in copy-earlier-word



If i type a few words and then press copy-earlier-word a few times, i
get this backtrace. seems to be at or after it reaches the first word
on the line.

Program received signal SIGSEGV, Segmentation fault.
zlelineasstring (instr=0x0, inll=3, incs=3, outllp=0x8101760,
outcsp=0x810179c, useheap=0)
    at zle_utils.c:146
146		j = wctomb(s + mb_len, instr[i]);
(gdb) bt
#0  zlelineasstring (instr=0x0, inll=3, incs=3, outllp=0x8101760,
outcsp=0x810179c, useheap=0)
    at zle_utils.c:146
#1  0xa7bd31ce in metafy_line () at zle_tricky.c:943
#2  0xa7bbe999 in insertlastword (args=0xafae3d34) at zle_hist.c:538
#3  0xa7bc64c7 in execzlefunc (func=0xa7be4678, args=0xafae3d34) at
zle_main.c:1094
#4  0xa7bd267c in bin_zle_call (name=0xa7fd4570 "zle", args=0x3,
ops=0xafae3d80, func=0 '\0')
    at zle_thingy.c:696
#5  0xa7bd1738 in bin_zle (name=0xa7fd4570 "zle", args=0xafae3d30,
ops=0xafae3d80, func=0)
    at zle_thingy.c:382
#6  0x08053134 in execbuiltin (args=0xafae3d80, bn=0xa7be5f28) at builtin.c:439
#7  0x0807073e in execcmd (state=0xafae92a0, input=0, output=0,
how=18, last1=2) at exec.c:2558
#8  0x08071055 in execpline2 (state=0xafae92a0, pcode=0, how=18,
input=0, output=0, last1=0)
    at exec.c:1289
#9  0x08071623 in execpline (state=0xafae92a0, slcode=0, how=18,
last1=0) at exec.c:1075
#10 0x08072f93 in execlist (state=0xafae92a0, dont_change_job=1,
exiting=0) at exec.c:881
#11 0x08073971 in doshfunc (name=0x8148310 "copy-earlier-word", prog=0x82b3758,
    doshargs=0xa7a34a04, flags=0, noreturnval=1) at exec.c:781
#12 0xa7bc6402 in execzlefunc (func=0x8148000, args=0xa7be613c) at
zle_main.c:1129
#13 0xa7bc6b18 in zlecore () at zle_main.c:862
#14 0xa7bc759d in zleread (lp=0x8100fb0, rp=0x0, flags=3, context=3)
at zle_main.c:1016
#15 0x0808a4a4 in inputline () at input.c:278
#16 0x0808aaea in ingetc () at input.c:214
#17 0x08081017 in ihgetc () at hist.c:240
#18 0x08096576 in gettok () at lex.c:628
#19 0x08098236 in yylex () at lex.c:344
#20 0x080ba31a in parse_event () at parse.c:451
#21 0x0808733a in loop (toplevel=1, justonce=0) at init.c:128
#22 0x0808a054 in zsh_main (argc=1, argv=0xafae9b44) at init.c:1312
#23 0x08052aae in main (argc=3, argv=0x3) at main.c:93

--
Mikael Magnusson



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