delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/13/08:38:30

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:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=XpUea3RPxMFOBRhoPj1GrlL+T7cV0
vZXFchp11lF+/+jR4wCmYu1YzktG3QZ+Hy7BqEAHamMp+6YKRRSMu41hTAY13oLK
nB9J2QkFzQ9/Rj91cwsZ49lQ3axg1Rc33+m8PHKlKycEAFHQPUGYcCjSmAAXGLN/
5yEdXhyP7YlFgk=
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:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=OV60uuM4UhIGqfZ6B9i+0QqtXXo=; b=OWR
VEocZywsf6/EU30V/oGzybG7GugNP7f/d1X4J8U5owF6uaWSNd/GBqklgje8lNDl
PUJJmbyDXrsL5uYTqsQOMHgHjrlJZzoBVVQ+bsF9Sblb2DHn4m3eUwpl7atXi5c8
L2OgW6gA3v80oKDOb94b6Y6fqRSMoUUuNDqQ2wUk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: =?ISO-8859-1?Q?No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=Ken, UD:malloc_zero.c, =c3=adk, malloc_zeroc?=
X-HELO: NAM03-DM3-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IPk1IQ6zgZln1yOi+2wO6r+8IzZyAqh56mnBJ2oT4ED+y/TgyEmWgxGdhezFbEfGVIxVJsJhqQcw6DJ8Tu0EBa/A8PHKZg9B+1DqqBixC36i7NmgbO8VZhXCehmYj8Ez7YuAXfBQtSNdRhl/cwmRenCE7lQiDXV80lkxjpcqq9fesUrZVHY0pFix7aH6P6t5xwvZM6VuNWCFrDEDSNEs38CB9zCizW4Ola0LJcFMlodQAviDT9VGgd7yA3ceDXpHeDaZv+rx7ECLLJSahnnhmxnMu05vShU8L/lx198piGJCcQuZm7MRimot0wbM2pbLq4u3mVdyn0LQMNVOmA7xbA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MFk7NgfgTDftx4kKfFNmDo3C8Ec/DY1HjFwQRnMc6U0=; b=dQxYYsFuIWkHU7vLBVH9bNhywpXzjLN6enI6zlSZbm3AMO2CfSc0UDU3fTE5viiWc02o0lqk/ZbNQ1GM1+NEEm0CfUJH2HlFKwhy35C/S1R6EI8ipcVvLhQl17+U+ZVsfvZ7fIzp2Wrnj1fz97gi2CqjJjcWsRsqOSPCfhDwnaukbZBqqYTSOkSLFAI1MQSSpgOZS+ZR8+VzWbOvUrp6SrF8e1lm90/G5Ij+Y8p7w7Rh9efysud98vdvKMVLVnm8OqR0EebNKClfUc66jiGtwp5x62VTmqYTcITuCzqdGXxLY+fdDKvolRVmC6knUn+d4HwvWUPe6sBuFfoBw2LvlQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MFk7NgfgTDftx4kKfFNmDo3C8Ec/DY1HjFwQRnMc6U0=; b=bNH//oX/9GoqS6CYw2xdpfMahJ9bcEAeckc7QCx0lFMG6T2UimtfQcnS2Va6yI5Ci+oyZsrzKn53Ls4L9sfMz9WO2U5rTTIR+l/6uy6RmGRifrRxKTSBpLvxtx9Z0fW6OmGT/fYXP9M9HAI4GW9GF+CoSa5+DioxGoAuprJ+Esc=
From: Ken Brown <kbrown AT cornell DOT edu>
To: =?utf-8?B?UGV0ciBTa2/EjcOtaw==?= <pskocik AT gmail DOT com>
CC: cygwin <cygwin AT cygwin DOT com>
Subject: Re: malloc(0) crashing with SIGABRT
Date: Fri, 13 Sep 2019 12:37:24 +0000
Message-ID: <4c1613f7-e763-d087-dd62-779ad5718647@cornell.edu>
References: <366918d8-b505-45be-dc28-303579f17341 AT gmail DOT com> <78e19eb7-956e-cd05-a076-e56ce347bbbe AT gmail DOT com> <e6e9a36c-e388-7e74-850c-4607a74c7643 AT cornell DOT edu> <e20e38ff-49b1-6472-b0a4-faeee0176a7c AT gmail DOT com>
In-Reply-To: <e20e38ff-49b1-6472-b0a4-faeee0176a7c@gmail.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-oob-tlc-oobclassifiers: OLM:127;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Zm5faxIfubPR+UKsZxEmYj6xXAlZDtwaoLDYaDRdgExT0Fc5TCgKZP2yzkMPhC49lW0PQ+kRCoTNeHSouaQkUw==
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x8DCc5nZ007780

On 9/13/2019 3:38 AM, Petr Skočík wrote:
> On 9/12/19 6:12 PM, Ken Brown wrote:
>> gcc -Wall -o malloc_zero malloc_zero.c
> 
> My apologies. It was my own stupid mistake.
> 
> (
> I had
> 
> gcc -include stdlib.h -xc - <<<'int main(){ }' && ./a.out; echo $?
> 
> where I would normally run $aout which in my shell setup is
> a.exe on cygwin and a.out elsewhere, but this time I accidentally
> typed a.out and I happened to have a Linux a.out there and that
> was causing the crash.
> )

No problem.  I'm glad to hear there's no Cygwin issue.

Ken

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019