zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-workers@zsh.org>, Antoine C. <acalando@free.fr>
Subject: Re: Re : Re: Re : [BUG] Crash due to malloc call in signal handler
Date: Wed, 18 Dec 2019 10:01:38 +0000	[thread overview]
Message-ID: <1576663298.4536.12.camel@samsung.com> (raw)
In-Reply-To: <1548982683.1013827769.1576607530234.JavaMail.root@zimbra62-e11.priv.proxad.net>

On Tue, 2019-12-17 at 19:32 +0100, Antoine C. wrote:
> Good news(!), I finally get another crash with a backtrace, despite 
> Peter's last patch. This one, like the previous, is triggered by debug
> code because of two simultaneous free() calls from main and signal 
> contexts.

Great, thanks.

OK, the suspect here is the arithmetic code --- it looks like it's
running unprotected against signals, despite the fact it can set
variables.  Arithmetic is a quick operation, so hopefully we can block
fairly high up the stack.  I should get a chance to look later
(but I don't think this is rocket science from this point on so maybe
someone will beat me to it).

pws

> #9  0x000055e115ce40f4 in zhandler (sig=17) at signals.c:648
...
> #23 0x000055e115c7cddf in execarith (state=0x7ffea5b39110, do_exec=0) at exec.c:5111


       reply	other threads:[~2019-12-18 10:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191217183216epcas1p1e81fb3dc675bab810e8d29ac0f53242c@epcas1p1.samsung.com>
     [not found] ` <1548982683.1013827769.1576607530234.JavaMail.root@zimbra62-e11.priv.proxad.net>
2019-12-18 10:01   ` Peter Stephenson [this message]
2019-12-18 10:44     ` Peter Stephenson
2019-12-22 18:44       ` Re : " Antoine C.

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=1576663298.4536.12.camel@samsung.com \
    --to=p.stephenson@samsung.com \
    --cc=acalando@free.fr \
    --cc=zsh-workers@zsh.org \
    /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).