X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:from:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=rr84svYmRwUPkGF2 ns6dyEqotGQmZ3ne+f2tpXN35lT+HGjajrVZQhBd0Gge9wBCIspEvyYcDZFhKoi7 2k+V27OMdHGvr2sSDvOEpCx/BJ1Fi9ktOUDqnlvCKbwAEp4qibKEdm2L7kL+MRmU yNdmsKIRILGtRWBPSqm2xEleJwg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:from:to:references:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=MhCdvEZqfYvvEWDgJgq/+k IeoNc=; b=CfAjwr2QpI+bLAh9T2xjUohWGYc8ajphX7ORyw7UuXR76oIglrAmoU js3p/jQr6yLWD6sL675R4WHpS430k2OBV+fHDm14bdgc2rUsFJa/aftcSR9337rr TGjg7SM9BYY2XO2JMCgnklIkjBJkG6dZlajQ0LYtSGgTSVSi9bxPQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_EXCESS_BASE64,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=twitter, sigabrt, SIGABRT X-HELO: mail-wr1-f47.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:disposition-notification-to :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0kv3N6PUwyDLHdGs5TirwC79ALnBOt2WmJUJUk88ssA=; b=b6Buq5P+5AJPl4vbzYiUdBDRXEBWw+quSyvSJ4daAY9hRfsB6O6wHK2H7RnZOxSZ62 gIpEF7/5rz+25a1+wQXXtPQ54kYwrPdz4d6VDd/BnWREXnTGLkNts7a2KIIVxyPB5r1O u7ZbDTvB7qipnM0xHQLA1CGedyVn+KHD2SzARFPiWHUWUplHE8ujnqGYXIdFw0r+3fep WuMmk6WKsjRZ06o/7Ew4NOLDstU6jIihygD+4mONrtqYHUXT4O9WL2DUg8q7cfWZ2jcl 9n1RCPLDmBb2vboc10+q3LO8H9NVfAC7+ke1eXuuapD3O7r58Qe2Iv83kSfpoTorArBW 2nXA== Subject: malloc(0) crashing with SIGABRT From: =?UTF-8?B?UGV0ciBTa2/EjcOtaw==?= To: cygwin AT cygwin DOT com References: <366918d8-b505-45be-dc28-303579f17341 AT gmail DOT com> X-Tagtoolbar-Keys: D20190909191306258 Message-ID: <78e19eb7-956e-cd05-a076-e56ce347bbbe@gmail.com> Date: Mon, 9 Sep 2019 19:13:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <366918d8-b505-45be-dc28-303579f17341@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit There's been a twitter discussion on how different POSIX platforms handle malloc(0): https://twitter.com/sortiecat/status/1170697927804817412 . As for Cygwin, the answer appears to be "not well", but this should be easy to fix. Best regards, Petr Skocik -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple