Bug 145689

Summary: Unaligned stack pointer while initializing dynamic library
Product: [Fedora] Fedora Reporter: Phuc LeHong <phuc.lehong>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: roland
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.4-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-14 17:52:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Test case using SSE2
none
Proposed glibc patch none

Description Phuc LeHong 2005-01-20 17:25:51 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020
Firefox/0.10.1

Description of problem:
Dynamic libraries are initialized with a stack pointer that is not
aligned to a 16 bytes boundary. This is unfortunate for those who are
using SSE2 instructions.


Version-Release number of selected component (if applicable):
glibc-2.3.4-2.fc3

How reproducible:
Always

Steps to Reproduce:
1. untar the attached PR.tar and run make
2. set LD_LIBRARY_PATH=<PR directory>
3. 
    

Actual Results:  ./main gives "Memory fault" while ./s-main completes
with no error.

Expected Results:  Both executables should run Ok.

Additional info:

The test case requires SSE2 CPUs, ie Pentium 4 or x86_64 in 32 bits
compatibility mode. The problem doesn't occur in x86_64 in 64 bits mode.

Comment 1 Phuc LeHong 2005-01-20 17:28:40 UTC
Created attachment 110022 [details]
Test case using SSE2

Comment 2 Phuc LeHong 2005-01-20 17:44:43 UTC
Created attachment 110023 [details]
Proposed glibc patch

Comment 3 Phuc LeHong 2005-01-20 17:46:40 UTC
The glibc patch solved the problem for me, but I'm not a glibc expert
so there might be better ways to solve the problem.


Comment 6 Tim Powers 2005-06-09 11:14:38 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-096.html