From owner-freebsd-stable Wed Oct 9 8:18: 8 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 60DE737B401 for ; Wed, 9 Oct 2002 08:18:07 -0700 (PDT) Received: from copper.eng.cstone.net (copper.eng.cstone.net [209.145.66.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B93643E42 for ; Wed, 9 Oct 2002 08:18:06 -0700 (PDT) (envelope-from josepht@copper.eng.cstone.net) Received: from copper.eng.cstone.net (localhost [127.0.0.1]) by copper.eng.cstone.net (8.12.5/8.12.5) with ESMTP id g99FI3hM014784 for ; Wed, 9 Oct 2002 11:18:03 -0400 (EDT) (envelope-from josepht@copper.eng.cstone.net) Received: (from josepht@localhost) by copper.eng.cstone.net (8.12.5/8.12.5/Submit) id g99FI3IA014783 for freebsd-stable@freebsd.org; Wed, 9 Oct 2002 11:18:03 -0400 (EDT) (envelope-from josepht) Date: Wed, 9 Oct 2002 11:18:03 -0400 From: Joe Talbott To: freebsd-stable@freebsd.org Subject: gcc2.95.4 pointer not defined Message-ID: <20021009151803.GA14701@copper.eng.cstone.net> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-6.0 required=5.0 tests=USER_IN_WHITELIST_TO version=2.31 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 With the following simple program on 4.6-STABLE from Mon Sep 9 11:27:32 EDT 2002 roughly (tried as well on 4.6-STABLE from Mon Jun 24 18:24:30 EDT 2002) both gcc 2.95.4 20020320. Both give SIGSEGV on line 9 (*ip = 50). gdb tells me: ip = (int *) 0x0 Here's the source: /* pointer.c - pointer test */ #include #include int main (void) { int *ip; *ip = 50; printf ("%d\n", *ip); return (EXIT_SUCCESS); } I've tried this on a RedHat box and a SunOS box both worked as expected. Joe -- Memory is the second thing to go as you get older. I forget what the first one was... -- I forgot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message