From owner-freebsd-stable Wed Oct 9 8:30:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5790E37B401 for ; Wed, 9 Oct 2002 08:30:28 -0700 (PDT) Received: from tara.freenix.org (keltia.freenix.org [62.4.20.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C12843E65 for ; Wed, 9 Oct 2002 08:30:27 -0700 (PDT) (envelope-from roberto@tara.freenix.org) Received: by tara.freenix.org (Postfix/TLS, from userid 101) id A68122AAD; Wed, 9 Oct 2002 17:30:26 +0200 (CEST) Date: Wed, 9 Oct 2002 17:30:26 +0200 From: Ollivier Robert To: freebsd-stable@freebsd.org Subject: Re: gcc2.95.4 pointer not defined Message-ID: <20021009153026.GA70332@tara.freenix.org> Mail-Followup-To: freebsd-stable@freebsd.org References: <20021009151803.GA14701@copper.eng.cstone.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021009151803.GA14701@copper.eng.cstone.net> X-Operating-System: FreeBSD 5.0-CURRENT K6-3D/266 & 2x PIII/800 SMP User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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