zsh-workers
 help / color / mirror / code / Atom feed
From: mason@primenet.com.au (Geoff Wing)
To: zsh-workers@sunsite.auc.dk
Subject: bug with completion (after 15 oct?)
Date: 24 Oct 2000 14:33:47 GMT	[thread overview]
Message-ID: <slrn8vb7eb.3nh.mason@coral.primenet.com.au> (raw)

Heyla,
am currently investigating a bug with completion which manifested in the
last week or so:

% zsh.new -f
% cd /tmp; mkdir foo; cd foo; touch bar baz
% ls ba<TAB>	# <TAB><RETURN> or CTRL-U or whatever
bar baz
% ls ba<TAB>	# OK
% exit
% zsh.new
% cd /tmp
% ls ba<TAB>	# <TAB><RETURN> or CTRL-U or whatever
--> completing file
bar   baz
% ls ba<TAB>
zsh: 20301 segmentation fault (core dumped)  zsh.new

A backtrace gives the following - maybe it's useful to someone - but I'll
try to narrow it down to a set of initialisation options.
Hmm, what's worse is that a version compiled --disable-dynamic sometimes
gives a segv a bit later (line 1034).

0x80af60b in compprintlist (showall=0) at complist.c:1023
1023            char **pp = g->ylist;
(gdb) p *lastg
$1 = {name = 0x0, prev = 0x0, next = 0x2, flags = 135607944, mcount = 2, 
  matches = 0x0, lcount = 0, llcount = 1, ylist = 0x8157fc8, ecount = 0, 
  expls = 0x0, ccount = 0, lexpls = 0x0, lmatches = 0x0, lfmatches = 0x1, 
  lallccs = 0x0, num = 0, nbrbeg = 0, nbrend = 2, new = 2, dcount = 1, 
  cols = 6, lins = 0, width = 12, widths = 0x6, totl = 0, shortest = 80, 
  perm = 0x0}
(gdb) bt
#0  0x80af60b in compprintlist (showall=0) at complist.c:1023
#1  0x80b0e6a in complistmatches (dummy=0x80dc2f4, dat=0xbfbfd504)
    at complist.c:1575
#2  0x8072666 in runhookdef (h=0x80dc2f4, d=0xbfbfd504) at module.c:1835
#3  0x80ad4d8 in list_matches (dummy=0x80df6e4, dummy2=0x0)
    at compresult.c:2080
#4  0x8072666 in runhookdef (h=0x80df6e4, d=0x0) at module.c:1835
#5  0x80c309a in zrefresh () at zle_refresh.c:607
#6  0x80b2817 in domenuselect (dummy=0x80dc2b8, dat=0xbfbfd654)
    at complist.c:2271
#7  0x807263f in runhookdef (h=0x80dc2b8, d=0xbfbfd654) at module.c:1829
#8  0x80a09f2 in after_complete (dummy=0x80df720, dat=0xbfbfd6b4)
    at compcore.c:496
#9  0x8072666 in runhookdef (h=0x80df720, d=0xbfbfd6b4) at module.c:1835
#10 0x80c6236 in docomplete (lst=0) at zle_tricky.c:786
#11 0x80c54d7 in expandorcomplete (args=0x80df674) at zle_tricky.c:282
#12 0x80c520d in completecall (args=0x80df674) at zle_tricky.c:176
#13 0x80be7d9 in execzlefunc (func=0x80dd620, args=0x80df674) at zle_main.c:655
#14 0x80be4d1 in zleread (lp=0x80ed4d0 "%b%s%u%m:%B%3c%b%# %B", 
    rp=0x80ed428 "%b%?:2:%h:%l %B%D{%R}%b", flags=3) at zle_main.c:567
#15 0x806519f in inputline () at input.c:265
#16 0x80650e1 in ingetc () at input.c:210
#17 0x805f8f5 in ihgetc () at hist.c:236
#18 0x80689f7 in gettok () at lex.c:628
#19 0x8068346 in yylex () at lex.c:344
#20 0x80786c6 in parse_event () at parse.c:425
#21 0x8062f56 in loop (toplevel=1, justonce=0) at init.c:123
#22 0x8064e6f in zsh_main (argc=1, argv=0xbfbfd85c) at init.c:1197
#23 0x804a6e6 in main (argc=1, argv=0xbfbfd85c) at ./main.c:37
#24 0x804a491 in ___start ()


             reply	other threads:[~2000-10-24 14:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-24 14:33 Geoff Wing [this message]
2000-10-25  7:14 Sven Wischnowsky
2000-10-25  7:49 ` Geoff Wing
2000-10-25  8:17 Sven Wischnowsky
2000-10-25 10:24 ` Geoff Wing
2000-10-25 10:51 Sven Wischnowsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrn8vb7eb.3nh.mason@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).