Package: libgcj9-0
Version: 4.3.2-2
Severity: normal
Hi,
import java.util.TreeSet;
public class test
{
public static void main(String arg[])
{
TreeSet<Integer> set = new TreeSet<Integer>();
set.add(1);
set.add(2);
set.add(3);
set.add(4);
set.add(5);
System.out.println("Set: " + set);
System.out.println("Subset [2,7): " + set.subSet(2, 7));
System.out.println("Subset (2,7): " + set.subSet(2, false, 7, false));
System.out.println("Subset (1,4): " + set.subSet(1, false, 4, false));
set.remove(2);
System.out.println("Set: " + set);
System.out.println("Subset [2,7): " + set.subSet(2, 7));
System.out.println("Subset (2,7): " + set.subSet(2, false, 7, false));
System.out.println("Subset (1,4): " + set.subSet(1, false, 4, false));
}
}
The last call set.subSet(1, false, 4, false) never finishs.
(gdb) run
Starting program: /tmp/test
[Thread debugging using libthread_db enabled]
[New Thread 0x48033220 (LWP 26728)]
[New Thread 0x48b104c0 (LWP 26731)]
Set: [1, 2, 3, 4, 5]
Subset [2,7): [2, 3, 4, 5]
Subset (2,7): [3, 4, 5]
Subset (1,4): [2, 3]
Set: [1, 3, 4, 5]
Subset [2,7): [3, 4, 5]
^C
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x48033220 (LWP 26728)]
0x0efd6220 in java::util::TreeMap::successor () from /usr/lib/libgcj.so.90
(gdb) where
#0 0x0efd6220 in java::util::TreeMap::successor () from /usr/lib/libgcj.so.90
#1 0x0efd4d6c in java::util::TreeMap::subMap () from /usr/lib/libgcj.so.90
#2 0x0efd7510 in java::util::TreeSet::subSet () from /usr/lib/libgcj.so.90
#3 0x10001888 in test.main(java.lang.String[])void (arg=0x4825efa0)
at test.java:22
#4 0x0ea0c680 in gnu::java::lang::MainThread::call_main ()
from /usr/lib/libgcj.so.90
#5 0x0ea8c05c in gnu::java::lang::MainThread::run ()
from /usr/lib/libgcj.so.90
#6 0x0ea22ae8 in _Jv_ThreadRun () from /usr/lib/libgcj.so.90
#7 0x0e9c856c in _Jv_RunMain () from /usr/lib/libgcj.so.90
#8 0x0e9c8708 in _Jv_RunMain () from /usr/lib/libgcj.so.90
#9 0x0e9c87a4 in JvRunMain () from /usr/lib/libgcj.so.90
#10 0x10000c70 in main (argc=1, argv=0xbfdf7784) at /tmp/ccx5GEvV.i:11
Bye, Jörg.
-- System Information:
Debian Release: unstable/experimental
APT prefers unstable
APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.27
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libgcj9-0 depends on:
ii gcj-4.3-base 4.3.2-2 The GNU Compiler Collection (gcj b
ii libasound2 1.0.16-2 ALSA library
ii libc6 2.7-15 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1 GCC support library
ii libgcj-common 1:4.3.2-2 Java runtime library (common files
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages libgcj9-0 recommends:
ii libgcj9-0-awt 4.3.2-2 AWT peer runtime libraries for use
ii libgcj9-jar 4.3.2-2 Java runtime library for use with
Versions of packages libgcj9-0 suggests:
pn libgcj9-dbg <none> (no description available)
-- no debconf information
Attachment:
signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP