malloc(0) crashing with SIGABRT

Ken Brown kbrown@cornell.edu
Fri Sep 13 13:21:00 GMT 2019


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
B‹KCB”›Ø›[H™\ܝΈ‹ËØÞYÝÚ[‹˜ÛÛKܛ؛[\Ëš[B‘TNˆ‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘ØÝ[Y[][ÛŽˆ‹ËØÞYÝÚ[‹˜ÛÛKÙØÜËš[B•[œÝXœØÜšX™H[™›Îˆ‹ËØÞYÝÚ[‹˜ÛÛKÛ[ÈÝ[œÝXœØÜšX™K\Ú[\CBƒB


More information about the Cygwin mailing list