← Back to team overview

openjdk team mailing list archive

Bug#664644: openjdk-6-jdk: jar -x hangs on some jar archives

 

Package: openjdk-6-jdk
Version: 6b24-1.11.1-3
Severity: normal

Dear Maintainer,

jar -x hangs when trying to unjar the jar archive dstm.jar contained in [1]

[1] http://proglang.informatik.uni-freiburg.de/projects/dstm/dstm-0.0.1.zip

Steps to reproduce:

1) wget http://proglang.informatik.uni-freiburg.de/projects/dstm/dstm-0.0.1.zip
2) unzip dstm-0.0.1.zip
3) jar -x dstm.jar

It seems all the thread are waiting for one of them to finish reading
something.

(gdb) info threads
  Id   Target Id         Frame
  14   Thread 0x7ffff06e2700 (LWP 1604) "jar" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
  13   Thread 0x7ffff07e3700 (LWP 1603) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  12   Thread 0x7ffff08e4700 (LWP 1602) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  11   Thread 0x7ffff09e5700 (LWP 1601) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  10   Thread 0x7ffff0ae6700 (LWP 1600) "jar" sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
  9    Thread 0x7ffff0d5e700 (LWP 1599) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  8    Thread 0x7ffff0e5f700 (LWP 1598) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  7    Thread 0x7ffff0f60700 (LWP 1597) "jar" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
  6    Thread 0x7ffff1751700 (LWP 1595) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  5    Thread 0x7ffff1852700 (LWP 1594) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  4    Thread 0x7ffff1953700 (LWP 1593) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  3    Thread 0x7ffff1a54700 (LWP 1592) "jar" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  2    Thread 0x7ffff7fd3700 (LWP 1591) "jar" 0x00007ffff79b918d in read () at ../sysdeps/unix/syscall-template.S:82
* 1    Thread 0x7ffff7fd5700 (LWP 1588) "jar" 0x00007ffff79b2e75 in pthread_join (threadid=140737353955072, thread_return=0x7fffffffad78) at pthread_join.c:89

It seems the hang comes from JVM_Read:

(gdb) thread 2
[Switching to thread 2 (Thread 0x7ffff7fd3700 (LWP 1591))]
#0  0x00007ffff79b918d in read () at ../sysdeps/unix/syscall-template.S:82
82      ../sysdeps/unix/syscall-template.S: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  0x00007ffff79b918d in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ffff6b40fa4 in JVM_Read () from /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so
#2  0x00007ffff5888972 in ?? () from /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/libjava.so
#3  0x00007ffff1e44d68 in ?? ()
#4  0x00007ffff7fd2478 in ?? ()
#5  0x00007ffff1e4f843 in ?? ()
#6  0x00007ffff1e38dd0 in ?? ()
#7  0x00007fff00000000 in ?? ()
#8  0x00007ffff7fd24d8 in ?? ()
#9  0x00007ffff7fd23a8 in ?? ()
#10 0x0000000000000000 in ?? ()

Best regards,

Thomas Preud'homme

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openjdk-6-jdk depends on:
ii  libc6          2.13-27
ii  libx11-6       2:1.4.4-4
ii  openjdk-6-jre  6b24-1.11.1-3
ii  zlib1g         1:1.2.6.dfsg-2

Versions of packages openjdk-6-jdk recommends:
ii  libxt-dev  1:1.1.1-2

Versions of packages openjdk-6-jdk suggests:
pn  openjdk-6-demo    <none>
pn  openjdk-6-source  <none>
pn  visualvm          <none>

-- no debconf information





Follow ups