From owner-freebsd-bugs Fri Sep 6 6:10: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81DD637B400 for ; Fri, 6 Sep 2002 06:10:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D223743E4A for ; Fri, 6 Sep 2002 06:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g86DA1JU052997 for ; Fri, 6 Sep 2002 06:10:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g86DA1t0052996; Fri, 6 Sep 2002 06:10:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E20B737B400 for ; Fri, 6 Sep 2002 06:06:26 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9708043E72 for ; Fri, 6 Sep 2002 06:06:26 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g86D6POT060967 for ; Fri, 6 Sep 2002 06:06:25 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g86D6Pmw060965; Fri, 6 Sep 2002 06:06:25 -0700 (PDT) Message-Id: <200209061306.g86D6Pmw060965@www.freebsd.org> Date: Fri, 6 Sep 2002 06:06:25 -0700 (PDT) From: Pierre-Etienne Moreau To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/42477: atexit+exit result in infinite recursive calls 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 >Number: 42477 >Category: i386 >Synopsis: atexit+exit result in infinite recursive calls >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 06 06:10:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Pierre-Etienne Moreau >Release: 4.6-STABLE >Organization: Loria - INRIA >Environment: FreeBSD escher.loria.fr 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Aug 26 11:30:41 CEST 2002 pem@escher.loria.fr:/usr/obj/usr/src/sys/ESCHER i386 >Description: What is the behavior of exit() when an exit() function is called by a function recorded by atexit() ? On Linux and solaris, exit() is called only once On FreeBSD, an infinite loop occurs >How-To-Repeat: #include #include void f() { printf("f\n"); exit(1); } main() { atexit(f); exit(0); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message