From mboxrd@z Thu Jan 1 00:00:00 1970 From: tonyhoyt@optonline.net To: gcc-gnats@gcc.gnu.org Subject: c/2748: Solaris, pointers and accessing memory with them. Date: Sat, 05 May 2001 16:06:00 -0000 Message-id: <20010505225645.8579.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00161.html List-Id: >Number: 2748 >Category: c >Synopsis: Solaris, pointers and accessing memory with them. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sat May 05 16:06:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Tony Hoyt >Release: gcc version 2.95.3 20010315 (release) >Organization: >Environment: sparc-sun-solaris2.7 >Description: This example is intended to show a bug in Gcc for solaris. I'm not good at explaining exactly what happens since I'm poor with proper programming terms. I'm not sure if it's a casting problem, maping problem or a delcaration issue. All I know is that the INCREMENTED_POINTER version of this application crashes on my Ultra 1 and Ultra 2 Solaris Boxes. I've tried this with GCC 2.95.3 and Sun Workshop 5.0. Both on Solaris 7 systems with all the latest patches from Sun. I do know that the code does seem to work on linux. But, I have not tried it else where. >How-To-Repeat: compile the above application and simply let it run. It should crash with a bus error on a Solaris box with 2.95.3. At least it does for me. If you want the original source, let me know. >Fix: >Release-Note: >Audit-Trail: >Unformatted: