Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Hopelessly bad GC crash question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hopelessly bad GC crash question



Alex Nicolaou wrote:
I have an applet which reliably crashes the VM during garbage collection
(at least, I presume it is during garbage collection because of the
following message). For example:


objc: FREED(id): message finish sent to freed object=0x3ad3c0

Does anyone have any recommendations for debugging this (obviously I am
in search of a workaround that will avoid the VM crashing)?

This error message is coming from the Objective-C runtime, complaining about reuse of an already-deallocated Objective-C object.

The fault is likely to be in Apple's AWT/Swing implementation, which
is Objective-C based. Alternatively, if you have JNI code that
manipulates Objective-C objects directly, it might be your fault.

First, you should try enabling NSZombie, which is an Objective-C
debugging mechanism. A good description is
   http://www.cocoadev.com/index.pl?DebuggingAutorelease
(Since your code is an applet, you should run Safari
or appletviewer with those settings.)

Most likely, the bad object and allocation backtrace will be from Apple's
AWT/Swing code. In that case, you should file a bug report with Apple, and
include the NSZombie log, any crash logs, and the applet itself or some
test case derived from it.



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.