From owner-freebsd-questions Wed Feb 14 10:23:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA04817 for questions-outgoing; Wed, 14 Feb 1996 10:23:02 -0800 (PST) Received: from ns3.noc.netcom.net (ns3.noc.netcom.net [204.31.1.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA04811 for ; Wed, 14 Feb 1996 10:22:59 -0800 (PST) Received: from tera.com (tera.tera.com [206.215.142.10]) by ns3.noc.netcom.net (8.6.12/8.6.12) with SMTP id KAA01904 for ; Wed, 14 Feb 1996 10:22:16 -0800 Received: from athena.tera.com by tera.com (4.1/SMI-4.0-206) id AA15933; Wed, 14 Feb 96 10:21:52 PST From: kline@tera.com (Gary Kline) Message-Id: <9602141821.AA15933@tera.com> Subject: mktemp() To: questions@FreeBSD.org Date: Wed, 14 Feb 1996 10:22:04 -0800 (PST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-questions@FreeBSD.org Precedence: bulk Sorry if this was discussed weeks or months ago, but I just stumbled onto this. The libc call mktemp() (along with strtok() and strsep(), by the way) causes a coredump when I use it with gcc. This from v 2.0.5. On the Suns at work, strtok and strsep both bomb with gcc v2.3.3 and both work with the standard Sun CC. At first I thought I was having hallucinations... given that BSD has been around for so long. But nope. gdb tells me where mktemp() bombs, but not why. Before I dig into this more deeply, can anybody shed any light on this? gary kline