This is the mail archive of the gcc@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]

PGP 5.0i compiled with egcs-1.0.2/Solaris 2.6-sparc gives bus error


When generating a key via pgpk -g. I get a bus error.

According to the PGP bugs page

http://www.pgpi.com/bugs/bugs50i.shtml

Bus error on Solaris 2.5.1
Kris Van Hees <aedil@ny.fnx.com> wrote:

Hi,
    Compiling PGP 5.0i sources on a Solaris 2.5.1 (Sparc20) box with
GCC 2.7.1 succeeded but the resulting code aborts with a Bus Error when
running key generation (pgpk -g).  I traced down the problem to the struct
MD5Context, which contains a conditional for HAVE64, which is set along
with typedefs in include/pgpUsuals.h.  I am not certain why, but using
that auto-resolving finds a 64bit type as 'unsigned long long', and thus
sets HAVE64.  Yet when used in code this fails.  I think this might be
a problem with GCC/Solaris interaction.  A Bus Error sounds to me as a
possible alignment problem there.

        I manually disabled the HAVE64 check, so that the code will use
two 32bit words, and that solved the problem.

Can somebody comment upon this ?

I am on a solaris-sparc-2.6 system with gcc
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)

Cheers, Yusuf
-- 
Kent Ridge Digital Labs (Formerly Institute of Systems Science)
Heng Mui Keng Terrace, Singapore 119597, Republic of Singapore
Tel: +65 874-3116, Fax: +65 774-4990,  Email: yusufg@krdl.org.sg


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