Bug#550203: jclassinfo: Crash on java.util.HashMap with --all or --disasm

Samuel Hym samuel.hym at gmail.com
Thu Oct 8 10:57:07 UTC 2009


Package: jclassinfo
Version: 0.19.1-4
Severity: grave
Justification: renders package unusable

jclassinfo --classpath=/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar --all
java.util.HashMap
crashes, giving the following trace:

[CLASS
INFORMATION]
public class java.util.HashMap extends java.util.AbstractMap implements
java.util.Map, java.lang.Cloneable, java.io.Serializable
Compiled from HashMap.java
Requires: Java VM unknown or higher
[CONSTANT POOL]
Size: 370
1)CONSTANT_Methodref[10](class_index = 82, name_and_type_index = 251)
2)CONSTANT_Fieldref[9](class_index = 58, name_and_type_index = 252)
3)CONSTANT_Class[7](name_index = 253)
4)CONSTANT_Class[7](name_index = 254)
5)CONSTANT_Methodref[10](class_index = 4, name_and_type_index = 251)
6)CONSTANT_String[8](string_index = 255)
7)CONSTANT_Methodref[10](class_index = 4, name_and_type_index = 256)
8)CONSTANT_Methodref[10](class_index = 4, name_and_type_index = 257)
9)CONSTANT_Methodref[10](class_index = 4, name_and_type_index = 258)
10)CONSTANT_Methodref[10](class_index = 3, name_and_type_index = 259)
11)CONSTANT_Integer[3](value = 1073741824)
12)CONSTANT_Methodref[10](class_index = 260, name_and_type_index = 261)
13)CONSTANT_String[8](string_index = 262)
14)CONSTANT_Methodref[10](class_index = 4, name_and_type_index = 263)
15)CONSTANT_Fieldref[9](class_index = 58, name_and_type_index = 264)
16)CONSTANT_Fieldref[9](class_index = 58, name_and_type_index = 265)
17)CONSTANT_Class[7](name_index = 266)
18)CONSTANT_Fieldref[9](class_index = 58, name_and_type_index = 267)
19)CONSTANT_Methodref[10](class_index = 58, name_and_type_index = 268)
*** glibc detected *** jclassinfo: free(): invalid next size (fast):
0x000000000247c070 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f1129b5e6c8]
/lib/libc.so.6(cfree+0x76)[0x7f1129b601d6]
jclassinfo[0x402f56]
jclassinfo[0x40331d]
jclassinfo[0x4048e8]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f1129b0b5c6]
jclassinfo[0x400ff9]
======= Memory map: ========
00400000-0040f000 r-xp 00000000 fe:02 2540802
/usr/bin/jclassinfo
0060e000-00610000 rw-p 0000e000 fe:02 2540802
/usr/bin/jclassinfo
02473000-02628000 rw-p 00000000 00:00 0
[heap]
7f1124000000-7f1124021000 rw-p 00000000 00:00 0
7f1124021000-7f1128000000 ---p 00000000 00:00 0
7f11298d3000-7f11298ed000 r-xp 00000000 fe:02 327788
/lib/libgcc_s.so.1
7f11298ed000-7f1129aec000 ---p 0001a000 fe:02 327788
/lib/libgcc_s.so.1
7f1129aec000-7f1129aed000 rw-p 00019000 fe:02 327788
/lib/libgcc_s.so.1
7f1129aed000-7f1129c34000 r-xp 00000000 fe:02 327924
/lib/libc-2.9.so
7f1129c34000-7f1129e34000 ---p 00147000 fe:02 327924
/lib/libc-2.9.so
7f1129e34000-7f1129e38000 r--p 00147000 fe:02 327924
/lib/libc-2.9.so
7f1129e38000-7f1129e39000 rw-p 0014b000 fe:02 327924
/lib/libc-2.9.so
7f1129e39000-7f1129e3e000 rw-p 00000000 00:00 0
7f1129e3e000-7f1129ec0000 r-xp 00000000 fe:02 327921
/lib/libm-2.9.so
7f1129ec0000-7f112a0bf000 ---p 00082000 fe:02 327921
/lib/libm-2.9.so
7f112a0bf000-7f112a0c0000 r--p 00081000 fe:02 327921
/lib/libm-2.9.so
7f112a0c0000-7f112a0c1000 rw-p 00082000 fe:02 327921
/lib/libm-2.9.so
7f112a0c1000-7f112a0d7000 r-xp 00000000 fe:02 2539643
/usr/lib/libz.so.1.2.3.3
7f112a0d7000-7f112a2d7000 ---p 00016000 fe:02 2539643
/usr/lib/libz.so.1.2.3.3
7f112a2d7000-7f112a2d8000 rw-p 00016000 fe:02 2539643
/usr/lib/libz.so.1.2.3.3
7f112a2d8000-7f112a2f5000 r-xp 00000000 fe:02 327923
/lib/ld-2.9.so
7f112a4cb000-7f112a4cd000 rw-p 00000000 00:00 0
7f112a4f0000-7f112a4f4000 rw-p 00000000 00:00 0
7f112a4f4000-7f112a4f5000 r--p 0001c000 fe:02 327923
/lib/ld-2.9.so
7f112a4f5000-7f112a4f6000 rw-p 0001d000 fe:02 327923
/lib/ld-2.9.so
7fffcd297000-7fffcd2ac000 rw-p 00000000 00:00 0
[stack]
7fffcd3d3000-7fffcd3d4000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
20)CONSTANT_Float[4](value =  0.750000)Abandon


I tried with the svn version of jclassinfo and with the version in Debian.

Debian versions of my files:
ii jclassinfo 0.19.1-4
extracts information from Java class files
ii openjdk-6-jre-headless 6b16-1.6.1-1
OpenJDK Java runtime, using Hotspot JIT (headless)

(I also reported the bug there:
http://sourceforge.net/tracker/?func=detail&aid=2865686&group_id=74004&atid=539646
some time ago without reaction yet).

Regards,
Samuel Hym


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

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages jclassinfo depends on:
ii  libc6                  2.9-26            GNU C Library: Shared libraries
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

jclassinfo recommends no packages.

jclassinfo suggests no packages.

-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20091008/36b62723/attachment-0001.htm>


More information about the pkg-java-maintainers mailing list