Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 179600

Summary: OpenSSL generates SIGILL when compiled with gcc-4.2
Product: Gentoo Linux Reporter: David Korth <gerbilsoft>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://groups.google.com/group/muc.lists.freebsd.current/msg/b1ab434aacaa1a54
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for OpenSSL 0.9.8d with gcc-4.2

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