This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
other/2448: Bus errors on Solaris 8
- To: gcc-gnats at gcc dot gnu dot org
- Subject: other/2448: Bus errors on Solaris 8
- From: vivienm at dyndns dot org
- Date: 1 Apr 2001 05:43:10 -0000
- Cc: twilde at dyndns dot org
- Reply-To: vivienm at dyndns dot org
>Number: 2448
>Category: other
>Synopsis: Bus errors on Solaris 8
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Sat Mar 31 21:46:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Vivien M.
>Release: gcc version 2.95.3 20010315 (release)
>Organization:
>Environment:
Solaris 8 (SunOS quartz.dyndns.org 5.8 Generic_108528-06 sun4u sparc SUNW,UltraAX-i2) on a Sun Netra X1 (UltraSPARC-IIe 400MHz)
>Description:
If I compile gcc (2.95.2 or 2.95.3) with the GCC 2.95.2 included on the Solaris 8 companion CD, it will compile and install fine (well, except for requiring Solaris' gcc during make install), but then after when attempting to compile other software using that new GCC (such as GNU findutils 4.1' updatedb - other parts of findutils such as whereis seem to work, or sendmail, or pine, or other open source software), the binary produced will crash with a "bus error" (Note: by that point, the Sun GCC, which was in /opt/sfw/bin has been removed using Sun's package management tools)
gdb does not appear to recognize some of the binaries as valid either,
(gdb) exec-file updatedb
"/export/home/vivienm/findutils-4.1/locate/updatedb": not in executable format: File format not recognized
Attempting to debug other binaries produced by GCC 2.95.3 lead to other errors.
Binaries on the same system produced by Sun's GCC 2.95.2 work fine.
On another Solaris system (Ultra 1), also running Solaris 8, which had a perfectly functioning gcc 2.95.2 (compiled from source), gcc 2.95.3 compiled from source seems to also produce output that gives bus errors.
This problem does not seem to affect binaries created using sunfreeware.com's GCC 2.95.3 (which has its own flaws that limit its usefulness), only GCC 2.95.3 compiled by GCC 2.95.2.
>How-To-Repeat:
On a Solaris 8 UltraSPARC-based machine, compile GCC 2.95.3 from source with GCC 2.95.2, either compiled from source or via Sun's GCC 2.95.2 (SFWgcc package) (Sunfreeware.com's GCC 2.95.2 or 2.95.3 will not compile GCC 2.95.3 from source). Then compile popular software such as sendmail-8.11.3, pine 4.33, or GNU fileutils 4.1, and attempt running the binaries produced.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: