public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12113] New: Segmentation fault in dynamic loader on AVX enabled OS and CPU with AVX
@ 2010-10-12 16:05 slvital at gmail dot com
  2010-10-12 16:20 ` [Bug libc/12113] " drepper.fsp at gmail dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: slvital at gmail dot com @ 2010-10-12 16:05 UTC (permalink / raw)
  To: glibc-bugs

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

           Summary: Segmentation fault in dynamic loader on AVX enabled OS
                    and CPU with AVX
           Product: glibc
           Version: 2.11
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: slvital@gmail.com


Created attachment 5053
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5053
small reproducer of this problem

Small example is attached: unpack, run “make”, then run “./exe” -> segmentation
fault (won’t segfault on non-AVX OS or CPU)

Stack of crash:
#0  _dl_x86_64_save_sse () at ../sysdeps/x86_64/dl-trampoline.S:189
#1  0x0000003dc380a7dd in add_dependency (flags=5, map=0x7ffff0000910,
undef_map=0x7ffff0000e70) at dl-lookup.c:613
#2  _dl_lookup_symbol_x (flags=5, map=0x7ffff0000910, undef_map=0x7ffff0000e70)
at dl-lookup.c:816
#3  0x0000003dc380dbb0 in _dl_fixup (l=0x0, reloc_arg=<value optimized out>) at
../elf/dl-runtime.c:118
#4  0x0000003dc3814315 in _dl_runtime_resolve () at
../sysdeps/x86_64/dl-trampoline.S:41
#5  0x00007ffff71cf5dc in hello2 () from ./libso2.so
#6  0x00007ffff73d0636 in hello1 () from ./libso1.so
#7  0x000000000040075e in doTask ()
#8  0x0000003dc4406a3a in start_thread (arg=0x7ffff7fd1710) at
pthread_create.c:297
#9  0x0000003dc3cde77d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Short description:

There is AVX support in glibc 2.11. Function _dl_x86_64_save_sse has been
updated with saving AVX registers. In fact, first AVX instruction in this code
crashes being called from additional thread. To cause calling
_dl_x86_64_save_sse function it is needed to have two DSOs loaded via dlopen
with RTLD_LAZY having two global symbols with identical names. Then it is
needed to call this function from both DSOs, second call will cause calling
_dl_x86_64_save_sse.

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-06-30  7:50 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-12 16:05 [Bug libc/12113] New: Segmentation fault in dynamic loader on AVX enabled OS and CPU with AVX slvital at gmail dot com
2010-10-12 16:20 ` [Bug libc/12113] " drepper.fsp at gmail dot com
2010-10-12 18:18 ` slvital at gmail dot com
2010-10-12 18:19 ` slvital at gmail dot com
2010-10-12 19:06 ` drepper.fsp at gmail dot com
2010-10-12 19:22 ` slvital at gmail dot com
2010-10-13 10:25 ` hjl.tools at gmail dot com
2010-10-13 11:07 ` hjl.tools at gmail dot com
2010-10-13 12:09 ` hjl.tools at gmail dot com
2010-10-13 13:36 ` drepper.fsp at gmail dot com
2010-10-13 13:50 ` hjl.tools at gmail dot com
2010-10-13 16:38 ` jakub at redhat dot com
2010-10-13 16:58 ` hjl.tools at gmail dot com
2010-10-13 17:23 ` jakub at redhat dot com
2010-10-13 22:30 ` drepper.fsp at gmail dot com
2010-10-13 23:22 ` hjl.tools at gmail dot com
2010-10-13 23:25 ` hjl.tools at gmail dot com
2010-10-13 23:26 ` hjl.tools at gmail dot com
2010-10-14  2:13 ` drepper.fsp at gmail dot com
2014-02-16 17:47 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
2014-06-30  7:50 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).