This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/2748: Solaris, pointers and accessing memory with them.



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]