Bug 59938 - "malloc: * auto malloc[731]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug."
Summary: "malloc: * auto malloc[731]: error: GC operation on unregistered thread. Thre...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-02 07:58 PDT by qiulang
Modified: 2011-05-04 20:57 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qiulang 2011-05-02 07:58:08 PDT
Hi,

I hit this error when using WebKit with garbage collection on, "malloc: * auto malloc[731]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug." 

And when I turned off garbage collection, the error did go way!

My app works like this , when users double click a row in my NSTableView, it will get a URL from that row, then ask WebView to load the page from that URL:

//code snippet

   [tableView setDoubleAction:@selector(doubleClickAction:)]; 
    ...

   - (IBAction)doubleClickAction:(id)sender { 
       ...
       /* cause that malloc error */
      [[webView mainFrame] loadRequest: [NSURLRequest requestWithURL: row.url]];   
   } 

When the error happens, the app does not crash, it continues to work. Actually It seems no harm at all. 

I am not sure if this is a bug or I just did not use the webkit api in a correct way. 

Thanks!
Comment 1 Alexey Proskuryakov 2011-05-02 11:27:32 PDT
Is this something that you are seeing with shipping WebKit, or only when running against a nightly (or local) build?
Comment 2 qiulang 2011-05-02 16:59:33 PDT
Hi, I use xcode 3.2. I did not use nightly build.

Thanks!
Comment 3 qiulang 2011-05-03 09:04:48 PDT
I find that the page with flash would cause the error.
For example if I open www.apple.com, not problem at all. But if I open www.taobao.com, the error will happen.

Thanks!
Comment 4 qiulang 2011-05-03 09:12:40 PDT
Sorry www.taobao.com is a Chinese website. If you guys can't read Chinese you can just try http://www.adobe.com/products/flashplayer/  (also cause the error)
Comment 5 qiulang 2011-05-04 08:06:03 PDT
Hi, I used xcode 4.0 to build the project but the problem still exists. As long as the page has flash and I turn on garbage collection, that malloc error will be thrown.

It is rather easy to reproduce problem.

Thanks!

Qiulang
Comment 6 Mark Rowe (bdash) 2011-05-04 12:36:01 PDT
This was fixed back in r81825.  It’s a harmless message that can be ignored.
Comment 7 qiulang 2011-05-04 20:57:35 PDT
I see. Thanks!