bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/24981] New: too many local references in gnu_java_awt_peer_gtk_


From: twisti at complang dot tuwien dot ac dot at
Subject: [Bug awt/24981] New: too many local references in gnu_java_awt_peer_gtk_GtkSelection.c
Date: 21 Nov 2005 23:04:20 -0000

When trying the datatransfer demo i've found some unreleased local references
(because CACAO complains about them).  A backtrace looks like something like
this:

Breakpoint 1, NewLocalRef (env=0x615e28, ref=0x1509af0) at jni.c:1178
1178                   
throw_cacao_exception_exit(string_java_lang_InternalError,
(gdb) bt
#0  NewLocalRef (env=0x615e28, ref=0x1509af0) at jni.c:1178
#1  0x000000000042846b in NewStringUTF (env=0x615e28, bytes=0x14c83b0 "GNU
Everywhere!") at jni.c:3124
#2  0x00002aaaab4f5dd7 in clipboard_text_received (clipboard=Variable
"clipboard" is not available.
) at gnu_java_awt_peer_gtk_GtkSelection.c:196

I think local references of CallObjectMethod, NewStringUTF and
GetObjectArrayElement should be freed.  But watch out for the returns in error
cases.


-- 
           Summary: too many local references in
                    gnu_java_awt_peer_gtk_GtkSelection.c
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: twisti at complang dot tuwien dot ac dot at


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]