Zsh Mailing List Archive
Messages sorted by:
Re: coredump on C-c
- X-seq: zsh-workers 31769
- From: Eitan Adler <lists@xxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: coredump on C-c
- Date: Thu, 26 Sep 2013 21:10:18 -0400
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=NScbORTge5HEGZyY5o/ryOzeAjU8xLMQF934wN61SX0=; b=Myn//wiNPtk0rrcNbDIBLG8xOtwsq8jFu+k5PFTlz5guXH38BynLnpBOmLVW9ydmO1 P+o8CHQUnRYf1mXFtamaajDo9ENYKzLNzO6aqJbbZCfjMAxMZE7kRmUb49FC/EQjPAUZ 4Xzm8J8tTeE9gGQqzdQE6NS/VX3nrsYguB488=
- In-reply-to: <CAH+w=7Z4cT4S+1orrB_fdVCmUp5UMOjA8=-YYO1MeYSZOcdwcg@mail.gmail.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAF6rxg==-QKvKC_vBw6kw4ReXE0FAt0B_c7UuWFXSG+km4U00Q@mail.gmail.com> <CAH+w=7Z4cT4S+1orrB_fdVCmUp5UMOjA8=-YYO1MeYSZOcdwcg@mail.gmail.com>
On Thu, Sep 26, 2013 at 5:31 PM, Bart Schaefer
> On Thu, Sep 26, 2013 at 10:52 AM, Eitan Adler <lists@xxxxxxxxxxxxxx> wrote:
>> Sometimes, when pressing Ctrl-c to exit a program I get a coredump. I
>> have not been able to isolate the exact case when this happens.
>> #12 0x000000000053ded6 in zleaftertrap (dummy=0x87ea50 <zshhooks+80>,
>> dat=0x0) at zle_main.c:1856
>> name=0x800930040 "_main_complete") at exec.c:4854
> If this is an accurate backtrace, and you've accurately described the
> circumstances in which you pressed ctrl-c, then it indicates that you've
> invoked completion,
This sounds possible and even likely.
> A first question is, is the first sentence of the previous paragraph
> correct? And if so, what are you doing invoking a program that you might
> have to kill off with ctrl-c from inside a completion widget?
Now that I think about it, it may be pressing ctrl-c to try and stop a
<tab> from completing due the time it takes. I have not been able to
isolate the coredumps yet but I'll be on the lookout for this
> I'd say that
> particular widget is in need of a rewrite.
This is my zshrc: https://code.google.com/p/config/source/browse/zsh/zshrc
and these are the files referenced by my zshrc:
I will try to press ctrl-c during completion to see if that causes the crash.
> ... we should be queuing signals. zfree() does it internally, but that's
> not enough to stop corruption in freeparamnode() if the signal arrives
> before all the parts of the node are cleaned p, and we probably ought to be
> queuing signals around the entire "free all the nodes" loop in
I'm happy to test patches, but I don't know zsh internals well enough
to comment on this.
Messages sorted by: