From owner-freebsd-bugs Wed Oct 2 16: 5:46 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C115737B401; Wed, 2 Oct 2002 16:05:45 -0700 (PDT) Received: from postal1.lbl.gov (postal1.lbl.gov [128.3.7.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF06A43E6E; Wed, 2 Oct 2002 16:05:44 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Received: from postal1.lbl.gov (localhost [127.0.0.1]) by postal1.lbl.gov (8.11.2/8.11.2) with ESMTP id g92N5iN09771; Wed, 2 Oct 2002 16:05:44 -0700 (PDT) Received: from lbl.gov (gracie.lbl.gov [131.243.2.175]) by postal1.lbl.gov (8.11.2/8.11.2) with ESMTP id g92N5gq09752; Wed, 2 Oct 2002 16:05:42 -0700 (PDT) Message-ID: <3D9B7BC3.D306AE15@lbl.gov> Date: Wed, 02 Oct 2002 16:05:39 -0700 From: "Jin Guojun [DSD]" X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.5-RELEASE i386) X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: Garrett Wollman Cc: FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/43599: Balloc did not check mallocated pointer in libc/stdlib/strtod.c References: <200210022140.g92Le18Z084749@freefall.freebsd.org> <3D9B6D58.517BE8A4@lbl.gov> <200210022215.g92MF1I1002111@khavrinen.lcs.mit.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Garrett Wollman wrote: > < said: > > > and timeout (SIGALARM) starts another printf() which causes overtaking the > > malloc() and returns 0 (NULL): > > Programmer error. It is forbidden to call any stdio function from a > signal handler. > > -GAWollman "man stdio" does not say this. Is this BSD specific? -- ------------ Jin Guojun ----------- v --- j_guojun@lbl.gov --- Distributed Systems Department http://www.itg.lbl.gov/~jin M/S 50B-2239 Ph#:(510) 486-7531 Fax: 486-6363 Lawrence Berkeley National Laboratory, Berkeley, CA 94720 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message