zsh-workers
 help / color / mirror / code / Atom feed
* More crashes in menu complete
@ 2006-10-31  1:38 Mikael Magnusson
  2006-10-31 10:28 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Magnusson @ 2006-10-31  1:38 UTC (permalink / raw)
  To: zsh-workers

Here are two backtraces, i just did kill <tab> and pressed and
released shift a couple of times, doing complete-word and
reverse-menu-complete and got these two backtraces, the first sort of
sucks because i didn't have debug symbols when it crashed, but i
recompiled with and got at least the source line.

Program terminated with signal 11, Segmentation fault.
#0  0xa7aa6fc5 in singledraw () at complist.c:1787
1787	    g = mgtab[ml1 * columns + mc1];
(gdb) bt
#0  0xa7aa6fc5 in singledraw () at complist.c:1787
#1  0xa7aaa599 in complistmatches (dummy=0xa7ae1850, dat=0x68636170)
at complist.c:333
#2  0xa7adfb07 in list_matches (dummy=0xa7b16fa0, dummy2=0x0) at
compresult.c:2252
#3  0xa7aff5fb in zrefresh () at zle_refresh.c:913
#4  0xa7aac32d in domenuselect (dummy=0xa7ae1814, dat=0xaf994950) at
complist.c:2424
#5  0x080a6c02 in runhookdef (h=0xa7ae1814, d=0xaf994950) at module.c:1868
#6  0xa7acb3b0 in after_complete (dummy=0xa7b16fdc, dat=0x68636170) at
compcore.c:514
#7  0xa7b06d00 in docomplete (lst=0) at zle_tricky.c:854
#8  0xa7b08e2f in completeword (args=0x68636170) at zle_tricky.c:219
#9  0xa7b03079 in completecall (args=0x35393b) at zle_tricky.c:205
#10 0xa7af6575 in execzlefunc (func=0xa7b143b8, args=0xa7b1729c,
set_bindk=0) at zle_main.c:1251
#11 0xa7af6900 in zlecore () at zle_main.c:1007
#12 0xa7af73ec in zleread (lp=0x81042b0, rp=0x8104be8,
flags=1751343472, context=1751343472)
    at zle_main.c:1166
#13 0x0808be04 in inputline () at input.c:277
#14 0x0808c43a in ingetc () at input.c:536
#15 0x08082931 in quietgethist (ev=1751343472) at hist.c:931
#16 0x00000000 in ?? ()


Program terminated with signal 11, Segmentation fault.
#0  0xa7a0bff5 in singledraw () at complist.c:1788
1788	    clprintm(g, mtab[ml1 * columns + mc1], mcc1, ml1, lc1,
(gdb) bt
#0  0xa7a0bff5 in singledraw () at complist.c:1788
#1  0xa7a0f5c9 in complistmatches (dummy=0xa7a46870, dat=0x68636170)
at complist.c:1909
#2  0xa7a44b37 in list_matches (dummy=0xa7a7c000, dummy2=0x0) at
compresult.c:2253
#3  0xa7a6462b in zrefresh () at zle_refresh.c:919
#4  0xa7a1135d in domenuselect (dummy=0xa7a46834, dat=0xaf909fd0) at
complist.c:2395
#5  0x080a6c22 in runhookdef (h=0xa7a46834, d=0xaf909fd0) at module.c:1876
#6  0xa7a303e0 in after_complete (dummy=0xa7a7c03c, dat=0x68636170) at
compcore.c:515
#7  0xa7a6bd30 in docomplete (lst=0) at zle_tricky.c:859
#8  0xa7a6de5f in completeword (args=0x68636170) at zle_tricky.c:232
#9  0xa7a680a9 in completecall (args=0x20302e30) at zle_tricky.c:208
#10 0xa7a5b5a5 in execzlefunc (func=0xa7a79418, args=0xa7a7c2fc,
set_bindk=0) at zle_main.c:1253
#11 0xa7a5b930 in zlecore () at zle_main.c:1019
#12 0xa7a5c41c in zleread (lp=0x81042d0, rp=0x8104c08,
flags=1751343472, context=1751343472)
    at zle_main.c:1173
#13 0x0808be24 in inputline () at input.c:278
#14 0x0808c45a in ingetc () at input.c:214
#15 0x08082951 in ihgetc () at hist.c:240
#16 0x08097cf6 in gettok () at lex.c:628
#17 0x080998c6 in yylex () at lex.c:344
#18 0x080bbb1a in parse_event () at parse.c:451
#19 0x08088c9a in loop (toplevel=1, justonce=0) at init.c:128
#20 0x0808b9d8 in zsh_main (argc=1, argv=0xaf90aa64) at init.c:1334
#21 0x08052dde in main (argc=1751343472, argv=0x68636170) at ./main.c:93


-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: More crashes in menu complete
  2006-10-31  1:38 More crashes in menu complete Mikael Magnusson
@ 2006-10-31 10:28 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2006-10-31 10:28 UTC (permalink / raw)
  To: zsh-workers

"Mikael Magnusson" wrote:
> Here are two backtraces, i just did kill <tab> and pressed and
> released shift a couple of times, doing complete-word and
> reverse-menu-complete and got these two backtraces, the first sort of
> sucks because i didn't have debug symbols when it crashed, but i
> recompiled with and got at least the source line.
> 
> Program terminated with signal 11, Segmentation fault.
> #0  0xa7aa6fc5 in singledraw () at complist.c:1787
> 1787	    g = mgtab[ml1 * columns + mc1];

I think this depends on the detailed output of the matches.  It will
crash here if it's miscounted the number of matches that it can
fit on the screen.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-31 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-31  1:38 More crashes in menu complete Mikael Magnusson
2006-10-31 10:28 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).