This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/18661] New: Some x86-64 assembly codes don't align stack to 16 bytes
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 12 Jul 2015 20:09:22 +0000
- Subject: [Bug libc/18661] New: Some x86-64 assembly codes don't align stack to 16 bytes
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18661
Bug ID: 18661
Summary: Some x86-64 assembly codes don't align stack to 16
bytes
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Some x86-64 assembly codes don't align stack to 16 bytes, which
lead to
(gdb) r
Starting program:
/export/build/gnu/glibc-test/build-x86_64-linux/math/test-float-vlen4
testing float vector math (without inline functions)
Program received signal SIGSEGV, Segmentation fault.
_dl_runtime_resolve () at ../sysdeps/x86_64/dl-trampoline.S:89
89 movaps %xmm0, REGISTER_SAVE_XMM0(%rsp)
(gdb) bt
#0 _dl_runtime_resolve () at ../sysdeps/x86_64/dl-trampoline.S:89
#1 0x00007ffff7b0d447 in cosf () at ../sysdeps/x86_64/fpu/s_cosf.S:314
#2 0x00007ffff78ba498 in _ZGVbN4v_cosf_sse4 ()
at ../sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S:223
#3 0x0000000000403764 in cosf_vlen4 (x=<optimized out>)
at ../sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c:24
#4 0x0000000000402f62 in cos_test ()
at /export/build/gnu/glibc-test/build-x86_64-linux/math/libm-test.c:65576
#5 0x0000000000401aa8 in main (argc=<optimized out>, argv=<optimized out>)
at /export/build/gnu/glibc-test/build-x86_64-linux/math/libm-test.c:150244
(gdb) p $rsp
$1 = (void *) 0x7fffffffdaa8
(gdb)
when this patch:
https://sourceware.org/ml/libc-alpha/2015-07/msg00365.html
is applied and GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58066
is fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.