Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Oct 1998 12:13:05 -0400 (EDT)
From:      "Woodchuck"  <djv@bedford.net>
To:        jahan@pc.jaring.my
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Is there a ) in mktemp.c ?
Message-ID:  <199810191613.MAA15950@castor.chuck>
In-Reply-To: <36293A77.D95CFF87@pc.jaring.my> from Jahan at "Oct 17, 98 05:46:47 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Jahan wrote:
> Hi all,
>        Have you all got a ")" in /usr/src/lib/libc/stdlib/mktemp.c line
> 98 int p)d,rval ?
> 
> Jahan
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

The file is in ..../stdio/mktemp.c, not stdlib. 

The line in question should read 

	int pid,rval;

This is a single bit error, ')' = 051 or 0x29, 'i' = 0151 or 0x69.

Somebody, somewhere, dropped the ball -- the usual suspect is the
memory on your machine; second suspect is a bad block on a disk
drive.  I usually suspect memory.  Are you getting SIGSEGV (Sig
11) or Bus Errors (Sig 8) when compiling?  On a machine with known
bad memory, I have seen these single-bit errors in the intermediate
asm files produced when compiling, and in object files as well,
sometimes producing mysteriously unworking executables. 

It could have been a glitch anywhere in the history of this file.

If you are using a SCSI disk, you might want to do a surface scan
from the BIOS.

(I think it's memory though -- If everybody used ECC memory,
these problems would vanish).

Dave
-- 
           Strangers know my loved ones' phone numbers!!!!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810191613.MAA15950>