[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/29399] New: Core dump when trying awt.Demo Radio button test
From: |
realthunder at pmail dot ntu dot edu dot sg |
Subject: |
[Bug awt/29399] New: Core dump when trying awt.Demo Radio button test |
Date: |
9 Oct 2006 07:22:51 -0000 |
I am using Classpath-0.92 + JamVM-1.4.3 + qt-peer + cygwin.
The problem is straight forward. When clicking Radio Buttons in awt.Demo, it
generate segment fault exception. The cause, however, took me several days to
track. The suspect code is at
$(CLASSPATH)/native/jni/qt-peer/qtcheckboxpeer.cpp:107. I pasted here as
follows:
JNIEXPORT void JNICALL Java_gnu_java_awt_peer_qt_QtCheckboxPeer_init
(JNIEnv *env, jobject obj)
{
QWidget *parentWidget = (QWidget *)getParentWidget(env, obj);
QAbstractButton *cb = (QAbstractButton *) getNativeObject( env, obj );
if (cb)
delete cb;
As for my undstanding of the inner working of qt-peer, there is no reason why
we need to delete this QAbstractButton object here. In fact, at the time this
QtCheckboxPeer_init is called, there is no binding of any native object yet. I
could be wrong, but by commenting out this qestionable deletion, the example
runs fine.
--
Summary: Core dump when trying awt.Demo Radio button test
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: realthunder at pmail dot ntu dot edu dot sg
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29399
- [Bug awt/29399] New: Core dump when trying awt.Demo Radio button test,
realthunder at pmail dot ntu dot edu dot sg <=