Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash when capturing command output in completion
- X-seq: zsh-workers 34297
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Crash when capturing command output in completion
- Date: Thu, 15 Jan 2015 22:11:21 -0500
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=dQeGE60UofR4D5c0v4lnexU9bO6vgBkzYVJWMZ7oK90=; b=X3qEXM/QABaq0AEMVKSqHF0OKzsWHjmtL+2b9eEDl9pBm9QdXKDuNLj09LyWrGOPtY +jJeOvtV2nfqlMb+kLIZ58ONqCCHE0UOE4RZM99LjFAVVv4Rt39/tY7ei3J1igMcrN5j HbysxIq60wxI4S6qpDIt3RtcSnWOJiYk0BTCY5BXV+FfsQBdxuubGoqLGCkr2Rtda6lt FvrEVFE1ncJsQ7t9jSaktBqVePPIbSWC4ywaJP/FoPkm6SYelMqkg/LMVAmKhf297Nb5 E+jiWhQ2+MGv4ROXc+SWa+4aFq++vtMAffU41MNn6wfNEiRZKB3iIqL8P5YxwpRTY0jw VE5w==
- In-reply-to: <150115162748.ZM23670@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CACeGjnVCkMZrh4iyAqLeuqPbHE+htd=PRNV10UD8kOry7La_TQ@mail.gmail.com> <150115135356.ZM23582@torch.brasslantern.com> <CACeGjnVwLgogjoWwCMOk4d-5R+4QOeishx+kYfV0dfE4RS_L6g@mail.gmail.com> <150115162748.ZM23670@torch.brasslantern.com>
- Sender: ethersoft@xxxxxxxxx
On Thu, Jan 15, 2015 at 7:27 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> What's in your zle-line-init function?
Here's a simpler formulation, requiring only compint:
(gdb) run
Starting program: /raid-3tb/opt/zsh-2015-01-15-1337/bin/zsh -f
legolas-i5% autoload -U compinit
legolas-i5% compinit -u
legolas-i5% installed_packages
apel build c-support calc cc-mode cedet-common debug dired easypg ecb
ecrypto edebug ediff edit-utils efs eieio elib emerge fsf-compat
general-docs gnus ibuffer igrep ilisp ispell mail-lib mmm-mode
net-utils os-utils pc pcl-cvs perl-modes pgg prog-modes ps-print psgml
psgml-dtds python-modes re-builder ruby-modes semantic sgml sh-script
speedbar supercite texinfo text-modes tramp vc xemacs-base
xemacs-devel
legolas-i5% echo $(installed_packages<TAB>
This prints " )" before
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7379d40 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff7379d40 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6367d6a in callcompfunc (s=0x7ffff7ff47a8 "installed_packages",
fn=0x754df0 "_main_complete") at compcore.c:743
#2 0x00007ffff6368ced in makecomplist (s=0x7ffff7ff47a8
"installed_packages", incmd=0, lst=0)
at compcore.c:989
#3 0x00007ffff6366915 in do_completion (dummy=0x7ffff67dab48 <zlehooks+40>,
dat=0x7fffffffd800) at compcore.c:349
#4 0x00000000004682ac in runhookdef (h=0x7ffff67dab48 <zlehooks+40>,
d=0x7fffffffd800)
at module.c:996
#5 0x00007ffff65c02ed in docompletion (s=0x75f128 "", lst=0, incmd=0)
at zle_tricky.c:2282
#6 0x00007ffff65bba42 in docomplete (lst=0) at zle_tricky.c:866
#7 0x00007ffff65ba345 in expandorcomplete (args=0x7ffff67db0c8 <zlenoargs>)
at zle_tricky.c:315
#8 0x00007ffff65b9f2a in completecall (args=0x7ffff67db0c8
<zlenoargs>) at zle_tricky.c:208
#9 0x00007ffff65a7502 in execzlefunc (func=0x7ffff67d76a0 <thingies+1920>,
args=0x7ffff67db0c8 <zlenoargs>, set_bindk=0) at zle_main.c:1345
#10 0x00007ffff65a66d6 in zlecore () at zle_main.c:1066
#11 0x00007ffff65a7060 in zleread (lp=0x6dbcf0 <prompt>, rp=0x0,
flags=3, context=0,
init=0x7ffff65cd14d "zle-line-init", finish=0x7ffff65cd13d
"zle-line-finish")
at zle_main.c:1253
#12 0x00007ffff65a9b65 in zle_main_entry (cmd=1, ap=0x7fffffffdde8) at
zle_main.c:1914
#13 0x000000000044f2a0 in zleentry (cmd=1) at init.c:1516
#14 0x0000000000450197 in inputline () at input.c:287
#15 0x000000000045000b in ingetc () at input.c:221
#16 0x0000000000443699 in ihgetc () at hist.c:361
#17 0x0000000000459b4a in gettok () at lex.c:583
#18 0x0000000000459322 in zshlex () at lex.c:264
#19 0x000000000047c78f in parse_event (endtok=37) at parse.c:538
#20 0x000000000044bd75 in loop (toplevel=1, justonce=0) at init.c:145
#21 0x000000000044f794 in zsh_main (argc=2, argv=0x7fffffffe178) at init.c:1671
#22 0x000000000040e82d in main (argc=2, argv=0x7fffffffe178) at ./main.c:93
(gdb)
- Vin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author