From owner-freebsd-bugs Fri Sep 19 07:15:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA14323 for bugs-outgoing; Fri, 19 Sep 1997 07:15:32 -0700 (PDT) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA14313; Fri, 19 Sep 1997 07:15:22 -0700 (PDT) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id HAA04957; Fri, 19 Sep 1997 07:15:19 -0700 (PDT) Message-ID: <19970919071518.15473@hydrogen.nike.efn.org> Date: Fri, 19 Sep 1997 07:15:18 -0700 From: John-Mark Gurney To: freebsd-bugs@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Bug in malloc/free References: <199709191221.OAA10145@ws6423.gud.siemens.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <199709191221.OAA10145@ws6423.gud.siemens.at>; from marino.ladavac@siemens.at on Fri, Sep 19, 1997 at 02:21:47PM +0200 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk marino.ladavac@siemens.at scribbled this message on Sep 19: > > > > > >Flushing in abort() should be safe because abort() is not among the > > >functions that are safe to call from a signal handler :-). > > > > Bummer. > > > > So what should I do in malloc when I realize that continuing doesn't > > make sense ? > > > > kill (diesig, getpid()); ? > > for which value of diesig ? > > raise( SIGABRT );? > > or the equivalent > > kill( getpid(), SIGABRT);? what happens what it's masked or caught?? Only SIGKILL and SIGSTOP can't be caught or ignored... (see signal(3) for more info)... -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD