zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: "Antoine C." <acalando@free.fr>, zsh-workers@zsh.org
Subject: Re: [BUG] abort due to malloc/free problem
Date: Tue, 29 Jan 2019 19:10:53 +0000	[thread overview]
Message-ID: <1fac21a93173caf258314fc3fb6fc64b1340aa58.camel@ntlworld.com> (raw)
In-Reply-To: <2063069324.1568135698.1548687485026.JavaMail.root@zimbra62-e11.priv.proxad.net>

On Mon, 2019-01-28 at 15:58 +0100, Antoine C. wrote:
> I have a set of scripts which crash after some time (can be 10mn or
> more than 1 hour).  These scripts are continually launching subshells
> and commands in background then waiting for them to finish.

From the crashes you've sent it looks like memory corruption that has
already happened some time before.

Given what you are doing, this could well be due to a relative of
problems we've seen before: races between the interrupt handler for
processes and the rest of the code.  It's quite a while since one of
these was reported, but they are very sensitive to conditions.

It's quite likely that sensitivity to timing is why enabling zsh's
memory allocator hides the problem.  That should be a perfectly good
workaround if it happens to work, though it does mean we can't simply
instrument the allocators to debug it.

It's unlikely to be possible to get any further without some concrete
reproduction case.

pws


      reply	other threads:[~2019-01-29 19:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-28 14:58 Antoine C.
2019-01-29 19:10 ` Peter Stephenson [this message]

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=1fac21a93173caf258314fc3fb6fc64b1340aa58.camel@ntlworld.com \
    --to=p.w.stephenson@ntlworld.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).