Trouble reading strings from "mac_crash_info" in the CoreUI private framework
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
People
(Reporter: smichaud, Assigned: smichaud)
Details
Attachments
(1 file)
15.04 KB,
text/plain
|
Details |
I've found two crash reports where I think this is happening:
bp-34fe2d10-fd78-42ea-a143-c130f0210610
bp-90ab5997-bc5e-4dc8-951e-aac180210610
{
"num_records": 1,
"records": [
{
"message": "\u043d#\u0012\u0001",
"module": "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI"
}
]
}
{
"num_records": 1,
"records": [
{
"message": "\u0080\u00a32\u0085\u0001",
"module": "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI"
}
]
}
Give me a few days, and I'll write a HookCase hook library to pin down exactly what's going on.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
It's conceivable that this problem is specific to "mac crash info" from the CoreUI private framework:
Assignee | ||
Comment 2•3 years ago
|
||
minidump_stackwalk
has the same problem. So the bug must be in the Mozilla tree.
I'll be working on this.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
•
|
||
This seems to be an Apple bug.
There's a _CUILog()
function in the CoreUI private framework that writes a CFString/NSString object to that module's mac_crash_info
's message
field, then deletes it. This is two violations of the mac_crash_info
"protocol": 1) All strings fields should contain UTF8 strings 2) The memory they occupy should be valid.
The message "object" written by _CUILog()
is full of 0xe5
characters (a poison value for memory formerly used by deleted objects). And even if it weren't, it would be unparseable by code that expects a UTF8 or ASCII string.
The question now is what to do about it. Maybe we should just do nothing. Apparently this error condition doesn't always cause a crash. (And when it did, the crash stacks would be distinctive enough to be noticeable.) And it seems to be quite rare -- only two examples since Mozilla started gathering mac_crash_info
about a month ago.
And even if we wanted to, there might be nothing we can do. I'll think about this for a while.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Interestingly, this bug also effects Safari:
Application Specific Information:
Ó¥F¸
Assignee | ||
Comment 5•3 years ago
|
||
Assignee | ||
Comment 6•3 years ago
|
||
I think we should do nothing here, at least for the time being.
Description
•