This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/12123] SIGBUS on strstr_sse42 due to bad alignment


http://sourceware.org/bugzilla/show_bug.cgi?id=12123

--- Comment #9 from LluÃs <viriketo at gmail dot com> 2010-10-26 16:31:11 UTC ---
(In reply to comment #7)
> How did you configure glibc?  Normally glibc maintains at most 8 byte stack
> alignment internally.  But even if the stack is 16 byte aligned -0x34(%ebp)
> cannot be correctly aligned since ebp points 8 bytes into the stack frame.
If what you say is correct about "at most 8 byte stack alignment", that is not
enough for SSE instructions, which require 16 byte alignment.

I'll reproduce again the bug and report more information about the %ebp at
every point. I read in the source that in i386 _dl_init_internal has to be
called with a 16-byte alignment; I'll check where that gets lost.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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