Bug 59938
Summary: | "malloc: * auto malloc[731]: error: GC operation on unregistered thread. Thread registered implicitly. Break on auto_zone_thread_registration_error() to debug." | ||
---|---|---|---|
Product: | WebKit | Reporter: | qiulang <qiulang> |
Component: | WebKit API | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ap, ggaren, mrowe |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.6 |
qiulang
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!
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Is this something that you are seeing with shipping WebKit, or only when running against a nightly (or local) build?
qiulang
Hi, I use xcode 3.2. I did not use nightly build.
Thanks!
qiulang
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!
qiulang
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)
qiulang
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
Mark Rowe (bdash)
This was fixed back in r81825. It’s a harmless message that can be ignored.
qiulang
I see. Thanks!