From owner-freebsd-hackers Tue Apr 7 16:45:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA21243 for freebsd-hackers-outgoing; Tue, 7 Apr 1998 16:45:31 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mailhub.iastate.edu (mailhub.iastate.edu [129.186.1.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA21233 for ; Tue, 7 Apr 1998 16:45:17 -0700 (PDT) (envelope-from graphix@iastate.edu) Received: from pseudo (pseudo.cc.iastate.edu [129.186.142.93]) by mailhub.iastate.edu (8.8.5/8.8.5) with SMTP id SAA03883; Tue, 7 Apr 1998 18:45:10 -0500 (CDT) From: "Kent Vander Velden" To: Cc: Subject: Optimization bug with gcc 2.7.2 + mktemp Date: Tue, 7 Apr 1998 18:45:06 -0500 Message-ID: <01bd627f$311fd3e0$5d8eba81@pseudo> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I'm running -current supped at the beginning of March. >I been having core dumps when using programs that called mktemp(3) >repeatedly. I finally traced it down to the fact that when I compile >libc with -fomit-frame-pointer, mktemp.c is compiled incorrectly. >Specifially, when _gettemp is called, the third argument (domkdir) is >garbage. This is "impossible" because _mktemp calls it thusly: I have been having similar problems with cvs. It leaves the /tmp/cvs* files and core dumps very often. I forget the actual trace dump at the moment but it had to do with tmpnam(). I compile with -O2 and do not use -fomit-frame-pointer. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message