[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#610657: libc6: Segfault in dynamic loader on new Intel CPUs (with AVX)



Package: libc6
Version: 2.11.2-8
Severity: normal

Hi,

There's apparently a bug in libc6 that causes dynamic loader to crash
in some scenarios on CPUs with AVX (Advanced Vector Extensions)
support. I don't understand the bug very well, please refer to the
upstream bug report (see below) for more enlightened commentary. This
has apparently been fixed in upstream glibc. I realize squeeze is in a
freeze, but I believe this might be important enough to fix so I
decided to bring this to your attention.

I encountered this with the package `arduino'; I just did `aptitude
install arduino; arduino' and got a crash (with openjdk). The
backtrace seems to be very similar to this glibc bug:

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

Here's what I do (the command is copied from the script
/usr/bin/arduino). The same program works on my older x86-64 without
AVX support.

------------------------------------------------------------
$ gdb --args java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar /usr/share/arduino/arduino.jar
GNU gdb (GDB) 7.2-debian
[...]
Reading symbols from /usr/bin/java...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar /usr/share/arduino/arduino.jar
[Thread debugging using libthread_db enabled]
process 25615 is executing new program: /usr/lib/jvm/java-6-openjdk/jre/bin/java
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff7fcc710 (LWP 25618)]
[New Thread 0x7fff6a928710 (LWP 25619)]
[New Thread 0x7fff6a827710 (LWP 25620)]
[New Thread 0x7fff6a726710 (LWP 25621)]
[New Thread 0x7fff6a625710 (LWP 25622)]
[New Thread 0x7fff6a524710 (LWP 25623)]
[New Thread 0x7fff6a423710 (LWP 25624)]
[New Thread 0x7fff6a322710 (LWP 25625)]
[New Thread 0x7fff6a221710 (LWP 25626)]
[New Thread 0x7fff69629710 (LWP 25627)]
[New Thread 0x7fff69528710 (LWP 25628)]
[New Thread 0x7fff69427710 (LWP 25629)]
[New Thread 0x7fff69010710 (LWP 25630)]
[New Thread 0x7fff68f0f710 (LWP 25631)]
[New Thread 0x7fff68e0e710 (LWP 25632)]
[New Thread 0x7fff68d0d710 (LWP 25633)]
[New Thread 0x7fff68c0c710 (LWP 25634)]
[New Thread 0x7fff62cc2710 (LWP 25635)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fcc710 (LWP 25618)]
_dl_x86_64_save_sse () at ../sysdeps/x86_64/dl-trampoline.S:189
189     ../sysdeps/x86_64/dl-trampoline.S: No such file or directory.
        in ../sysdeps/x86_64/dl-trampoline.S
(gdb) bt
#0  _dl_x86_64_save_sse () at ../sysdeps/x86_64/dl-trampoline.S:189
#1  0x00007ffff7de9369 in add_dependency (undef_name=<value optimized out>, undef_map=0x7fff640eb480, ref=0x7ffff7fca168, 
    symbol_scope=<value optimized out>, version=0x0, type_class=<value optimized out>, flags=5, skip_map=0x0) at dl-lookup.c:613
#2  _dl_lookup_symbol_x (undef_name=<value optimized out>, undef_map=0x7fff640eb480, ref=0x7ffff7fca168, symbol_scope=<value optimized out>, 
    version=0x0, type_class=<value optimized out>, flags=5, skip_map=0x0) at dl-lookup.c:816
#3  0x00007ffff7dec3f2 in _dl_fixup (l=<value optimized out>, reloc_arg=<value optimized out>) at ../elf/dl-runtime.c:118
#4  0x00007ffff7df22f5 in _dl_runtime_resolve () at ../sysdeps/x86_64/dl-trampoline.S:41
#5  0x00007fff6316fe0b in Java_sun_font_NativeFont_fontExists () from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/libfontmanager.so
#6  0x00007ffff2264c48 in ?? ()
#7  0x0000000000612000 in ?? ()
#8  0x00007fffc8b19820 in ?? ()
#9  0x00007ffff7fca230 in ?? ()
#10 0x00007fff6b772068 in ?? ()
#11 0x00007ffff7fca290 in ?? ()
#12 0x00007fff6b773688 in ?? ()
#13 0x0000000000000000 in ?? ()
------------------------------------------------------------

-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-uradeonfix+ (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6 depends on:
ii  libc-bin                      2.11.2-8   Embedded GNU C Library: Binaries
ii  libgcc1                       1:4.4.5-10 GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]         1.5.38     Debian configuration management sy
ii  glibc-doc                     2.11.2-8   Embedded GNU C Library: Documentat
ii  locales                       2.11.2-8   Embedded GNU C Library: National L

-- debconf information:
* glibc/upgrade: true
  glibc/disable-screensaver:
  glibc/restart-failed:
* glibc/restart-services: dovecot exim4 cron atd

Attachment: signature.asc
Description: Digital signature


Reply to: