Bug 11961 - sse pthread segfault
Summary: sse pthread segfault
Status: RESOLVED DUPLICATE of bug 10395
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-18 04:47 UTC by Justin Shumaker
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Shumaker 2003-08-18 04:47:33 UTC
When executing code with sse intrinsics from a posix thread the program will
crash.  I believe there is a byte alignment issue with glibc or gcc where it's
only aligning 8 bytes instead of 16, which is what sse wants.  I've compiled the
sse multi-threaded code with the intel compiler and it works fine.  My sse code
not using pthreads also works fine under gcc.
Comment 1 Justin Shumaker 2003-08-18 04:55:14 UTC
This report also has detailed data on the problem:
http://lists.debian.org/debian-gcc/2003/debian-gcc-200307/msg00200.html
Comment 2 Andrew Pinski 2003-08-18 11:14:29 UTC
This is a dup of bug 10395 but really it needs something like what is in bug 6737 which is request 
for stack realignment attribute.
If I would have it also fixed in glibc.

The reason why the intel compiler works as it realigns and does not think the stack is align ever.
The reason why redhat works is that it has a "fixed" glibc.

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