Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179600 - OpenSSL generates SIGILL when compiled with gcc-4.2
Summary: OpenSSL generates SIGILL when compiled with gcc-4.2
Status: RESOLVED DUPLICATE of bug 158324
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL: http://groups.google.com/group/muc.li...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-24 04:49 UTC by David Korth
Modified: 2007-07-18 09:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for OpenSSL 0.9.8d with gcc-4.2 (openssl-0.9.8d-gcc42-gentoo.diff,9.75 KB, patch)
2007-05-24 04:50 UTC, David Korth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Korth 2007-05-24 04:49:35 UTC
OpenSSL 0.9.8d seems to use a function-casting feature that is unsupported in gcc-4.2, but instead of generating a compile error, gcc-4.2 instead inserts invalid opcodes, resulting in random crashes due to SIGILL (Signal 4).

A patch was posted to the FreeBSD mailing list: http://groups.google.com/group/muc.lists.freebsd.current/msg/b1ab434aacaa1a54 - it does not apply cleanly to OpenSSL 0.9.8d, so I will post a modified patch.
Comment 1 David Korth 2007-05-24 04:50:37 UTC
Created attachment 120162 [details, diff]
Patch for OpenSSL 0.9.8d with gcc-4.2

Here's a modified version of the patch posted on the FreeBSD mailing list. This applies cleanly to OpenSSL 0.9.8d.
Comment 2 SpanKY gentoo-dev 2007-05-24 04:58:07 UTC

*** This bug has been marked as a duplicate of bug 158324 ***