public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha
@ 2004-08-31 21:28 falk at debian dot org
  2004-08-31 21:30 ` [Bug AWT/17254] " falk at debian dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-08-31 21:28 UTC (permalink / raw)
  To: java-prs

Hi,

If I start the libjava/gnu/java/awt/peer/gtk/TestAWT.java program:

gcj -v TestAWT.java --main=TestAWT && ./a.out
Reading specs from /tmp/bla/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5.0/specs
Reading specs from
/tmp/bla/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5.0/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../configure --enable-languages=java --enable-java-gc=boehm
--enable-java-awt=gtk : (reconfigured) ../configure --enable-languages=java
--enable-java-gc=boehm --enable-java-awt=gtk
Thread model: posix
gcc version 3.5.0 20040619 (experimental)
 /tmp/bla/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5.0/jc1 TestAWT.java
-fhash-synchronization -fuse-divide-subroutine -fuse-boehm-gc
-fnon-call-exceptions -mieee -fkeep-inline-functions -quiet -dumpbase
TestAWT.java -mcpu=ev67 -auxbase TestAWT -g1 -version -o /tmp/ccPhS7oa.s
GNU Java version 3.5.0 20040619 (experimental) (alphaev68-unknown-linux-gnu)
        compiled by GNU C version 3.5.0 20040619 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
    ./
    /tmp/bla/bin/../lib/gcc/../../share/java/libgcj-3.5.0.jar/ (system) (zip)
 as -no-mdebug -o /tmp/cch6IF42.o /tmp/ccPhS7oa.s
 /tmp/bla/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5.0/jvgenmain
TestAWTmain /tmp/ccFYEys5.i
 /tmp/bla/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5.0/cc1
/tmp/ccFYEys5.i -quiet -dumpbase TestAWTmain.c -mcpu=ev67 -g1 -version
-fdollars-in-identifiers -o /tmp/ccPhS7oa.s
GNU C version 3.5.0 20040619 (experimental) (alphaev68-unknown-linux-gnu)
        compiled by GNU C version 3.5.0 20040619 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
 as -no-mdebug -o /tmp/ccZwLRCc.o /tmp/ccPhS7oa.s
 /tmp/bla/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.5.0/collect2
--eh-frame-hdr -m elf64alpha -O1 -dynamic-linker /lib/ld-linux.so.2
/usr/lib/crt1.o /usr/lib/crti.o
/tmp/bla/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5.0/crtbegin.o
-L/tmp/bla/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5.0
-L/tmp/bla/bin/../lib/gcc -L/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5.0
-L/tmp/bla/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5.0/../../..
-L/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.5.0/../../.. /tmp/ccZwLRCc.o
/tmp/cch6IF42.o -lgcc_s -lgcc -l-java-awt -l-java-applet -l-java-beans
-l-javax-accessibility -l-javax-swing -lgcj -l-java-util-logging -lm -lpthread
-ldl -lgcc_s -lgcc -lc -lgcc_s -lgcc
/tmp/bla/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.5.0/crtend.o /usr/lib/crtn.o

I get a nice window. If I then resize it quickly with a window manager with
"solid resize", the program hangs and doesn't do any redraws any more.

I'll attach the output of the program when DEBUG_LOCKING is enabled.

-- 
           Summary: [java-gui-branch] Hang when resizing AWT window on Alpha
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: AWT
        AssignedTo: fitzsim at redhat dot com
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
@ 2004-08-31 21:30 ` falk at debian dot org
  2004-08-31 21:32 ` falk at debian dot org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-08-31 21:30 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From falk at debian dot org  2004-08-31 21:30 -------
Created an attachment (id=7012)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7012&action=view)
Output with DEBUG_LOCKING


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
  2004-08-31 21:30 ` [Bug AWT/17254] " falk at debian dot org
@ 2004-08-31 21:32 ` falk at debian dot org
  2004-08-31 21:51 ` fitzsim at redhat dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-08-31 21:32 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From falk at debian dot org  2004-08-31 21:32 -------
Created an attachment (id=7013)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7013&action=view)
Another log where the exception message doesn't appear.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
  2004-08-31 21:30 ` [Bug AWT/17254] " falk at debian dot org
  2004-08-31 21:32 ` falk at debian dot org
@ 2004-08-31 21:51 ` fitzsim at redhat dot com
  2004-08-31 22:18 ` falk at debian dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: fitzsim at redhat dot com @ 2004-08-31 21:51 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2004-08-31 21:51 -------
Try applying this patch and rebuilding:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16662


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-31 21:51:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (2 preceding siblings ...)
  2004-08-31 21:51 ` fitzsim at redhat dot com
@ 2004-08-31 22:18 ` falk at debian dot org
  2004-08-31 22:22 ` mckinlay at redhat dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-08-31 22:18 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From falk at debian dot org  2004-08-31 22:17 -------
(In reply to comment #3)
> Try applying this patch and rebuilding:
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16662

That doesn't seem to change the behaviour, it still locks up about the same
way.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (3 preceding siblings ...)
  2004-08-31 22:18 ` falk at debian dot org
@ 2004-08-31 22:22 ` mckinlay at redhat dot com
  2004-08-31 22:46 ` falk at debian dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-31 22:22 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-08-31 22:22 -------
Is this on a multiprocessor system?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (4 preceding siblings ...)
  2004-08-31 22:22 ` mckinlay at redhat dot com
@ 2004-08-31 22:46 ` falk at debian dot org
  2004-08-31 23:08 ` mckinlay at redhat dot com
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-08-31 22:46 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From falk at debian dot org  2004-08-31 22:46 -------
(In reply to comment #5)
> Is this on a multiprocessor system?

No, a plain uniprocessor system:
Linux juist 2.6.8-rc3 #3 Sun Aug 8 15:32:24 CEST 2004 alpha GNU/Linux
cpu                     : Alpha
cpu model               : EV68AL
cpu variation           : 7
cpu revision            : 0
cpu serial number       : 
system type             : Nautilus
system variation        : 0
system revision         : 0
system serial number    : 
cycle frequency [Hz]    : 796415897 est.
timer frequency [Hz]    : 1024.00
page size [bytes]       : 8192
phys. address bits      : 44
max. addr. space #      : 255
BogoMIPS                : 1586.36
kernel unaligned acc    : 0 (pc=0,va=0)
user unaligned acc      : 4705446 (pc=1200e53b0,va=200008b183c)
platform string         : UP1500 796 MHz
cpus detected           : 1
L1 Icache               : 64K, 2-way, 64b line
L1 Dcache               : 64K, 2-way, 64b line
L2 cache                : 4096K, 1-way, 64b line
L3 cache                : n/a

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (5 preceding siblings ...)
  2004-08-31 22:46 ` falk at debian dot org
@ 2004-08-31 23:08 ` mckinlay at redhat dot com
  2004-09-01  6:51 ` falk at debian dot org
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: mckinlay at redhat dot com @ 2004-08-31 23:08 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-08-31 23:08 -------
Could you try running this in gdb to get a real stack trace? Put a breakpoint on
the NegativeArraySizeException constructor (you may have to set the breakpoint
by line number) - and post the output.

Thanks

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (6 preceding siblings ...)
  2004-08-31 23:08 ` mckinlay at redhat dot com
@ 2004-09-01  6:51 ` falk at debian dot org
  2004-09-01 15:11 ` mckinlay at redhat dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-09-01  6:51 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From falk at debian dot org  2004-09-01 06:51 -------
(In reply to comment #7)
> Could you try running this in gdb to get a real stack trace? Put a breakpoint on
> the NegativeArraySizeException constructor (you may have to set the breakpoint
> by line number) - and post the output.

The NegativeArraySizeException occurs only sometimes, in particular it doesn't
seem to appear when I start the program under gdb. If it hangs and I interrupt
it, I get this stack trace:

[...]
lock: ../../../libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c, 146
unlock: ../../../libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c, 158

Program received signal SIGINT, Interrupt.
[Switching to Thread 16386 (LWP 16558)]
0x00000200012638bc in __pthread_sigsuspend () from /lib/libpthread.so.0
(gdb) bt
#0  0x00000200012638bc in __pthread_sigsuspend () from /lib/libpthread.so.0
#1  0x000002000126363c in __pthread_wait_for_restart_signal () from
/lib/libpthread.so.0
#2  0x000002000125f5cc in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
#3  0x0000020000ed1398 in _Jv_CondWait (cv=Variable "cv" is not available.
) at ../../../libjava/posix-threads.cc:146
#4  0x0000020000cf5a6c in java::lang::Object::wait (this=Variable "this" is not
available.
) at ../../../libjava/java/lang/natObject.cc:1311
#5  0x0000020000d05c70 in java.lang.Object.wait() (this=Variable "this" is not
available.
) at ../../../libjava/java/lang/Object.java:84
#6  0x0000020000d9a6e4 in gnu.gcj.runtime.FinalizerThread.run() (this=Variable
"this" is not available.
)
    at ../../../libjava/gnu/gcj/runtime/FinalizerThread.java:62
#7  0x0000020000cfbf2c in _Jv_ThreadRun (thread=Variable "thread" is not available.
) at ../../../libjava/java/lang/natThread.cc:281
#8  0x0000020000ed1a5c in really_start (x=Variable "x" is not available.
) at ../../../libjava/posix-threads.cc:380
#9  0x0000020000ee7f1c in GC_start_routine (arg=Variable "arg" is not available.
) at ../../../boehm-gc/pthread_support.c:1180
#10 0x00000200012608e0 in pthread_start_thread () from /lib/libpthread.so.0
#11 0x0000020001260984 in pthread_start_thread_event () from /lib/libpthread.so.0
#12 0x000002000141987c in clone () from /lib/libc.so.6.1
(gdb) 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (7 preceding siblings ...)
  2004-09-01  6:51 ` falk at debian dot org
@ 2004-09-01 15:11 ` mckinlay at redhat dot com
  2004-09-01 15:36 ` falk at debian dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: mckinlay at redhat dot com @ 2004-09-01 15:11 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-09-01 15:11 -------
So, it does hang under GDB, but doesn't throw the exception?

The stack trace you gave is that of the finalizer thread, which probably isn't
interesting here. Try using the "info threads" and "thread n" commands to switch
to the other threads and get traces of those.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (8 preceding siblings ...)
  2004-09-01 15:11 ` mckinlay at redhat dot com
@ 2004-09-01 15:36 ` falk at debian dot org
  2004-09-02  7:42 ` graydon at redhat dot com
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: falk at debian dot org @ 2004-09-01 15:36 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From falk at debian dot org  2004-09-01 15:36 -------
(In reply to comment #9)
> So, it does hang under GDB, but doesn't throw the exception?

Yes. But it also sometimes hangs without throwing when not running under gdb.

> The stack trace you gave is that of the finalizer thread, which probably isn't
> interesting here. Try using the "info threads" and "thread n" commands to switch
> to the other threads and get traces of those.

Okay:

(gdb) info threads
  5 Thread 49156 (LWP 9206)  0x000002000125960c in __pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
  4 Thread 32771 (LWP 9205)  0x000002000125960c in __pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
* 3 Thread 16386 (LWP 9204)  0x000002000125960c in __pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
  2 Thread 32769 (LWP 9203)  0x00000200013fe340 in __poll () from
/lib/ev67/libc.so.6.1
  1 Thread 16384 (LWP 9200)  0x000002000125960c in __pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
(gdb) thread 1
[Switching to thread 1 (Thread 16384 (LWP 9200))]#0  0x000002000125960c in
__pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
(gdb) bt
#0  0x000002000125960c in __pthread_sigsuspend () from /lib/ev67/libpthread.so.0
#1  0x0000020001258efc in __pthread_wait_for_restart_signal () from
/lib/ev67/libpthread.so.0
#2  0x000002000125535c in pthread_cond_wait@GLIBC_2.0 () from
/lib/ev67/libpthread.so.0
#3  0x0000020000ed1d58 in _Jv_ThreadWait () at ../../../libjava/posix-threads.cc:440
#4  0x0000020000cb78b0 in _Jv_RunMain (klass=Variable "klass" is not available.
) at ../../../libjava/prims.cc:1069
#5  0x0000020000cb799c in JvRunMain (klass=Variable "klass" is not available.
) at ../../../libjava/prims.cc:1078
#6  0x0000000120020b3c in main (argc=1, argv=0x11ffff828) at /tmp/ccmxAzTx.i:11
(gdb) thread 2
[Switching to thread 2 (Thread 32769 (LWP 9203))]#0  0x00000200013fe340 in __poll ()
   from /lib/ev67/libc.so.6.1
(gdb) bt
#0  0x00000200013fe340 in __poll () from /lib/ev67/libc.so.6.1
#1  0x00000200012562a4 in __pthread_manager () from /lib/ev67/libpthread.so.0
#2  0x0000020001256494 in __pthread_manager_event () from /lib/ev67/libpthread.so.0
#3  0x0000020001409e0c in thread_start () at
../sysdeps/unix/sysv/linux/alpha/clone.S:101
(gdb) thread 4
[Switching to thread 4 (Thread 32771 (LWP 9205))]#0  0x000002000125960c in
__pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
(gdb) bt
#0  0x000002000125960c in __pthread_sigsuspend () from /lib/ev67/libpthread.so.0
#1  0x0000020001258efc in __pthread_wait_for_restart_signal () from
/lib/ev67/libpthread.so.0
#2  0x000002000125535c in pthread_cond_wait@GLIBC_2.0 () from
/lib/ev67/libpthread.so.0
#3  0x0000020000ed1398 in _Jv_CondWait (cv=Variable "cv" is not available.
) at ../../../libjava/posix-threads.cc:146
#4  0x0000020000cf5a6c in java::lang::Object::wait (this=Variable "this" is not
available.
)
    at ../../../libjava/java/lang/natObject.cc:1311
#5  0x0000020000d05c70 in java.lang.Object.wait() (this=Variable "this" is not
available.
)
    at ../../../libjava/java/lang/Object.java:84
#6  0x00000200001db1c4 in java.awt.EventQueue.getNextEvent() (this=Variable
"this" is not available.
)
    at ../../../libjava/java/awt/EventQueue.java:98
#7  0x00000200001daec0 in java.awt.EventDispatchThread.run() (this=Variable
"this" is not available.
)
    at ../../../libjava/java/awt/EventDispatchThread.java:64
#8  0x0000020000cfbf2c in _Jv_ThreadRun (thread=Variable "thread" is not available.
) at ../../../libjava/java/lang/natThread.cc:281
#9  0x0000020000ed1a5c in really_start (x=Variable "x" is not available.
) at ../../../libjava/posix-threads.cc:380
#10 0x0000020000ee7f1c in GC_start_routine (arg=Variable "arg" is not available.
) at ../../../boehm-gc/pthread_support.c:1180
#11 0x0000020001256f40 in pthread_start_thread () from /lib/ev67/libpthread.so.0
#12 0x0000020001256fe4 in pthread_start_thread_event () from
/lib/ev67/libpthread.so.0
#13 0x0000020001409e0c in thread_start () at
../sysdeps/unix/sysv/linux/alpha/clone.S:101
(gdb) thread 5
[Switching to thread 5 (Thread 49156 (LWP 9206))]#0  0x000002000125960c in
__pthread_sigsuspend ()
   from /lib/ev67/libpthread.so.0
(gdb) bt
#0  0x000002000125960c in __pthread_sigsuspend () from /lib/ev67/libpthread.so.0
#1  0x0000020001258efc in __pthread_wait_for_restart_signal () from
/lib/ev67/libpthread.so.0
#2  0x000002000125535c in pthread_cond_wait@GLIBC_2.0 () from
/lib/ev67/libpthread.so.0
#3  0x0000020000ed1398 in _Jv_CondWait (cv=Variable "cv" is not available.
) at ../../../libjava/posix-threads.cc:146
#4  0x0000020000cf52a0 in _Jv_MonitorEnter (obj=Variable "obj" is not available.
) at ../../../libjava/java/lang/natObject.cc:928
#5  0x00000200001c259c in
java.awt.BorderLayout.layoutContainer(java.awt.Container) (this=Variable "this"
is not available.
)
    at ../../../libjava/java/awt/BorderLayout.java:531
#6  0x00000200001d5cc4 in java.awt.Container.layout() (this=Variable "this" is
not available.
)
    at ../../../libjava/java/awt/Container.java:501
#7  0x00000200001d5c5c in java.awt.Container.doLayout() (this=Variable "this" is
not available.
)
    at ../../../libjava/java/awt/Container.java:490
#8  0x00000200001d5f40 in java.awt.Container.validateTree() (this=Variable
"this" is not available.
)
    at ../../../libjava/java/awt/Container.java:557
#9  0x00000200001d5d88 in java.awt.Container.validate() (this=Variable "this" is
not available.
)
    at ../../../libjava/java/awt/Container.java:522
#10 0x000002000191fde4 in
gnu.java.awt.peer.gtk.GtkFramePeer.postConfigureEvent(int, int, int, int)
(this=Variable "this" is not available.
) at ../../../libjava/gnu/java/awt/peer/gtk/GtkFramePeer.java:215
#11 0x0000020000eea158 in ffi_call_osf () at ../../../libffi/src/alpha/osf.S:80
#12 0x0000020000ee9da0 in ffi_call (cif=Variable "cif" is not available.
) at ../../../libffi/src/alpha/ffi.c:144
#13 0x0000020000d01308 in _Jv_CallAnyMethodA (obj=Variable "obj" is not available.
)
    at ../../../libjava/java/lang/reflect/natMethod.cc:497
#14 0x0000020000cc21c0 in _Jv_JNI_CallAnyVoidMethodV< normal> (env=Variable
"env" is not available.
)
    at ../../../libjava/jni.cc:898
#15 0x0000020000cc22e4 in _Jv_JNI_CallVoidMethod (env=Variable "env" is not
available.
) at ../../../libjava/jni.cc:1007
#16 0x0000020001939260 in pre_event_handler (widget=Variable "widget" is not
available.
)
    at ../../../libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:1002
#17 0x0000020001af73ac in _gtk_marshal_BOOLEAN__BOXED () from
/usr/lib/libgtk-x11-2.0.so.0
#18 0x0000020001f07b7c in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0x0000020001f21d9c in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#20 0x0000020001f20670 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#21 0x0000020001f20d70 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#22 0x0000020001c383c8 in gtk_widget_send_expose () from
/usr/lib/libgtk-x11-2.0.so.0
#23 0x0000020001af37f0 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x0000020001938a68 in awt_event_handler (event=Variable "event" is not
available.
)
    at ../../../libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c:818
#25 0x0000020001daefcc in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0
#26 0x0000020001fb1518 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#27 0x0000020001fb2cb8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x0000020001fb311c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x0000020001fb3b34 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#30 0x0000020001af2cc0 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#31 0x000002000193e584 in Java_gnu_java_awt_peer_gtk_GtkMainThread_gtkMain
(env=Variable "env" is not available.
)
    at ../../../libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c:248
#32 0x0000020001923f28 in gnu.java.awt.peer.gtk.GtkMainThread.gtkMain()
(this=Variable "this" is not available.
)
    at ../../../libjava/gnu/java/awt/peer/gtk/GtkMainThread.java:58
#33 0x0000020001924254 in gnu.java.awt.peer.gtk.GtkMainThread.run()
(this=Variable "this" is not available.
)
    at ../../../libjava/gnu/java/awt/peer/gtk/GtkMainThread.java:106
#34 0x0000020000d1d918 in java.lang.Thread.run() (this=Variable "this" is not
available.
)
    at ../../../libjava/java/lang/Thread.java:649
#35 0x0000020000cfbf2c in _Jv_ThreadRun (thread=Variable "thread" is not available.
) at ../../../libjava/java/lang/natThread.cc:281
#36 0x0000020000ed1a5c in really_start (x=Variable "x" is not available.
) at ../../../libjava/posix-threads.cc:380
#37 0x0000020000ee7f1c in GC_start_routine (arg=Variable "arg" is not available.
) at ../../../boehm-gc/pthread_support.c:1180
#38 0x0000020001256f40 in pthread_start_thread () from /lib/ev67/libpthread.so.0
#39 0x0000020001256fe4 in pthread_start_thread_event () from
/lib/ev67/libpthread.so.0
#40 0x0000020001409e0c in thread_start () at
../sysdeps/unix/sysv/linux/alpha/clone.S:101
(gdb) 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (9 preceding siblings ...)
  2004-09-01 15:36 ` falk at debian dot org
@ 2004-09-02  7:42 ` graydon at redhat dot com
  2004-09-02 15:00 ` fitzsim at redhat dot com
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 16+ messages in thread
From: graydon at redhat dot com @ 2004-09-02  7:42 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From graydon at redhat dot com  2004-09-02 07:42 -------
thread #5 is in a condition-wait triggered by its attempt to acquire a mutex 
recursively. afaik recursive mutexes are supposed to work in java, but perhaps 
there is something funny about the way they work on alpha. the thread clearly 
already acquired the mutex (in validateTree(), one of its earlier frames) so 
afaik it should not be *waiting* to re-acquire the mutex. it should just be 
acquiring it.

of course, I really don't know how any of this is implemented. maybe a quick and 
ignorable wait is always part of that call path. it just jumped out at me as 
something which might be wrong. does anyone know much about alpha pthreads?

(I'm also somewhat surprised that thread 4, not thread 5, is handling the AWT 
event queue, when thread 5 is actually mucking with the AWT graph in a GTK 
callback. I would have thought that the thread doing layout is the same one 
waiting on the AWT queue, but I don't know the structure of threads in AWT very 
well outside of swing)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (10 preceding siblings ...)
  2004-09-02  7:42 ` graydon at redhat dot com
@ 2004-09-02 15:00 ` fitzsim at redhat dot com
  2005-05-30 15:46 ` fitzsim at redhat dot com
  2005-08-21 15:36 ` [Bug awt/17254] " fitzsim at redhat dot com
  13 siblings, 0 replies; 16+ messages in thread
From: fitzsim at redhat dot com @ 2004-09-02 15:00 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2004-09-02 15:00 -------
The layout is handled in GtkMainThread (thread 5) because it is the result of a
configure event on the top-level window.  Now that you mention it though, it may
be cleaner to deliver the validation request asynchronously through the event
queue.  It would be more consistent with how other native events are passed to
the AWT.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug AWT/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (11 preceding siblings ...)
  2004-09-02 15:00 ` fitzsim at redhat dot com
@ 2005-05-30 15:46 ` fitzsim at redhat dot com
  2005-08-21 15:36 ` [Bug awt/17254] " fitzsim at redhat dot com
  13 siblings, 0 replies; 16+ messages in thread
From: fitzsim at redhat dot com @ 2005-05-30 15:46 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-05-30 15:32 -------
There were some changes in how AWT threading works (as well as many other
changes) recently.  Can you retry your test and post the results here?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug awt/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
  2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
                   ` (12 preceding siblings ...)
  2005-05-30 15:46 ` fitzsim at redhat dot com
@ 2005-08-21 15:36 ` fitzsim at redhat dot com
  13 siblings, 0 replies; 16+ messages in thread
From: fitzsim at redhat dot com @ 2005-08-21 15:36 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-08-21 15:36 -------
I've fixed the locking problems, and changed how resizing works so that it
doesn't happen in the GTK thread.  Although I don't have an Alpha to test on, my
guess is that this won't happen anymore.  Please re-open this bug report if you
are still seeing the NegativeArraySizeException.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

* [Bug awt/17254] [java-gui-branch] Hang when resizing AWT window on Alpha
       [not found] <bug-17254-2744@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16  1:48 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16  1:48 UTC (permalink / raw)
  To: java-prs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |0.18


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17254


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

end of thread, other threads:[~2005-10-16  1:48 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-31 21:28 [Bug AWT/17254] New: [java-gui-branch] Hang when resizing AWT window on Alpha falk at debian dot org
2004-08-31 21:30 ` [Bug AWT/17254] " falk at debian dot org
2004-08-31 21:32 ` falk at debian dot org
2004-08-31 21:51 ` fitzsim at redhat dot com
2004-08-31 22:18 ` falk at debian dot org
2004-08-31 22:22 ` mckinlay at redhat dot com
2004-08-31 22:46 ` falk at debian dot org
2004-08-31 23:08 ` mckinlay at redhat dot com
2004-09-01  6:51 ` falk at debian dot org
2004-09-01 15:11 ` mckinlay at redhat dot com
2004-09-01 15:36 ` falk at debian dot org
2004-09-02  7:42 ` graydon at redhat dot com
2004-09-02 15:00 ` fitzsim at redhat dot com
2005-05-30 15:46 ` fitzsim at redhat dot com
2005-08-21 15:36 ` [Bug awt/17254] " fitzsim at redhat dot com
     [not found] <bug-17254-2744@http.gcc.gnu.org/bugzilla/>
2005-10-16  1:48 ` pinskia at gcc dot gnu dot org

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