From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 397836e9 for ; Tue, 29 Jan 2019 19:22:52 +0000 (UTC) Received: (qmail 27786 invoked by alias); 29 Jan 2019 19:22:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 44023 Received: (qmail 18406 invoked by uid 1010); 29 Jan 2019 19:22:41 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-10.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(80.0.253.74):SA:0(-2.0/5.0):. Processed in 4.821385 secs); 29 Jan 2019 19:22:41 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=OO4JIxSB c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=IkcTkHD0fZMA:10 a=ENzkXTmkBXq7CvvSfnkA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1548789054; bh=nvnizvfvuXZfABRdiJaiWa4rGgHkBQmCH/Z0wDQ06oQ=; h=Subject:From:To:Date:In-Reply-To:References; b=ulvKm7/k2cBvvop3aCHvXbscppBX5l+yu/6JRLt1P0kUmANr30n+aC52ignnNLhx3 yqYvX1pqhnOiTv5d5v8zXUTzNl2Ql/8Dhc0IjN82lADKZJ61umb8y8cYLSe/HAFroy 7HJJyD1Q7QuxYveFH5TXlXr3FZhLZrfyWfExTUk9xMPniC2WshdqdnJBNy/ebFJVuy XM5Ue5lORxgs4H4g7naM9XYt6HEvMuE1bfgyJuyyKSGmaP0Jio6et7VP2V7NlTUxxM GqsdmfNYmPXniArA54fp3rzBjJ1aBaQ3yAWsJfhtN8VQQl8xlBNSYuaoETlWMlcLuz ybCU5fG+0baFQ== Message-ID: <1fac21a93173caf258314fc3fb6fc64b1340aa58.camel@ntlworld.com> Subject: Re: [BUG] abort due to malloc/free problem From: Peter Stephenson To: "Antoine C." , zsh-workers@zsh.org Date: Tue, 29 Jan 2019 19:10:53 +0000 In-Reply-To: <2063069324.1568135698.1548687485026.JavaMail.root@zimbra62-e11.priv.proxad.net> References: <2063069324.1568135698.1548687485026.JavaMail.root@zimbra62-e11.priv.proxad.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfGZdqp66FALzVaWaknrLthfn/3M28hiZNm+w2I4kAzptDr7gMnIWsB5PyXsgxU6MMrGj1PIYQQhKq0tWrmjfxoudrCXzG58rrQE6EU0yV4dbk3D9eVTo Q0uZ55dKQtdS4N1ywZcET8iqcuzWQvtakwJq3rCPJWY/VOfRdTU00cQC2AiNmY/Yb0wD0suWDswPoRh7762RvrodXa0EASfSQrI= 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