Issue 337 in google-breakpad: Random crashes of dump_syms on Mac

7 views
Skip to first unread message

codesite...@google.com

unread,
Oct 7, 2009, 12:47:20 PM10/7/09
to google-brea...@googlegroups.com
Status: New
Owner: ----

New issue 337 by bernd.heller: Random crashes of dump_syms on Mac
http://code.google.com/p/google-breakpad/issues/detail?id=337

I've had several random crashes of dump_syms on Mac OS X 10.6 recently.
After some debugging it
looks like it's a premature release of an NSData object in dump_syms.mm.

The method loadModuleInfo loads the dSYM file into memory, and releases it
when it's done. But
the entire class never copies any data, but references it via pointers. So
by the time loadModuleInfo
finishes and has released its data, it's a mere gamble when one of the
referencing pointers causes a
crash.

The attached patch fixes the problem by moving the NSData object into class
scope, where it lives
long enough.

Attachments:
patch.txt 1.9 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages