Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2002 17:30:26 +0200
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        freebsd-stable@freebsd.org
Subject:   Re: gcc2.95.4 pointer not defined
Message-ID:  <20021009153026.GA70332@tara.freenix.org>
In-Reply-To: <20021009151803.GA14701@copper.eng.cstone.net>
References:  <20021009151803.GA14701@copper.eng.cstone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
According to Joe Talbott:
> I've tried this on a RedHat box and a SunOS box both worked as expected.

What about changing your expectations then ?

The system is reacting as it should as you pointer is pointing to somewhere
in the ether and no space has been allocated for it thus a segv.

Don't take your "success" on other systems as a proof BTW, it all depends
on the implementation of the C startup code and whether the first page
(i.e. offset 0x0) is mapped in your process or not.

In FreeBSD the first page is unmapped to catch such programming errors.
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 5.0-CURRENT #80: Sun Jun  4 22:44:19 CEST 2000

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




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