Last Comment Bug 507876 - minidump_stackwalk can't handle stack overflow crash (Breakpad generating bad minidump?)
: minidump_stackwalk can't handle stack overflow crash (Breakpad generating bad...
Status: NEW
Product: Toolkit
Classification: Components
Component: Breakpad Integration (show other bugs)
: Trunk
: x86 Mac OS X
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Ted Mielczarek [:ted.mielczarek]
Depends on: 527095
Blocks: 808107 474863
  Show dependency treegraph
Reported: 2009-08-02 00:18 PDT by Jesse Ruderman
Modified: 2016-01-12 09:33 PST (History)
8 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image Jesse Ruderman 2009-08-02 00:18:23 PDT
For null derefs, I get stacks:
bp-3515922c-6c00-4fc3-8a02-069082090802 (bug 503709)

For stack exhaustion crashes, I don't get stacks:
bp-8746c593-d88f-478b-a5d4-30d5e2090802 (bug 459464)
bp-af65e09b-e0ea-4b44-8ee6-e76632090802 (bug 454465)

Example error message shown as "Processor Notes":

/home/processor/stackwalk/bin/ returned no header lines for reportid: 52439766; No thread was identified as the cause of the crash; No signature could be created because we do not know which thread crashed; /home/processor/stackwalk/bin/ returned no frame lines for reportid: 52439766; /home/processor/stackwalk/bin/ failed with return code 1 when processing dump af65e09b-e0ea-4b44-8ee6-e76632090802

Btw, it's missing not only the stack but also the CPU+OS.
Comment 1 User image K Lars Lohn [:lars] [:klohn] 2009-08-02 10:36:28 PDT
This is a breakpad problem, not a Socorro problem.  The error message reported by the processor are from the invocation of Breakpad's minidump_stackwalk program.  The crash dump submission received from the client was hosed before Socorro even received it.
Comment 2 User image Ted Mielczarek [:ted.mielczarek] 2009-08-03 05:46:00 PDT
Jesse: what platform are these crashes on? Is it the same on all platforms, or only some? I know I've seen stack overflow minidumps that we handled properly, since Lars added code to Socorro to elide the stack if it exceeded a certain depth at one point.
Comment 3 User image Jesse Ruderman 2009-08-03 10:53:13 PDT
These are on Mac.  I haven't tested other platforms.
Comment 4 User image Wayne Mery (:wsmwk, NI for questions) 2010-05-15 05:01:39 PDT
((In reply to comment #2)
> I've seen stack overflow minidumps that we handled properly,
> since Lars added code to Socorro to elide the stack if it exceeded a certain
> depth at one point.

Jesse, given comment 2 and bug 459464 comment 1, is this WFM? Or is there room for improvement?
Comment 5 User image Jesse Ruderman 2010-05-15 09:06:27 PDT
Can't get that one to crash quickly any more, but bug 454465 gave me bp-3837780d-1233-407d-962d-bae4e2100515.  So still broken on Mac, it seems.
Comment 6 User image Jesse Ruderman 2010-06-25 20:45:47 PDT
Local breakpad says "** Unknown exception behavior" when I trip bug 550306, and then minidump_stackwalk doesn't print anything.
Comment 7 User image Jesse Ruderman 2010-11-22 22:28:02 PST
When I trip bug 614172:

* Mac breakpad says "unknown exception behavior", as described above, and minidump_stackwalk says there's no thread info.

* Linux breakpad seems to not create a minidump at all.

* Windows breakpad works fine (EXCEPTION_STACK_OVERFLOW + top 1024 stack frames).
Comment 8 User image Ted Mielczarek [:ted.mielczarek] 2010-11-23 05:16:42 PST
Presumably whatever we're doing on Linux/Mac isn't sufficient for handling stack overflow. We are using a separate handler thread with its own stack on Linux, and a separate exception handler thread on Mac, so I would expect things to work, but clearly they don't.

Of course, trying to search for anything related to the problem is nigh impossible, since has completely blown out Google results for "stack overflow".
Comment 9 User image Asa Dotzler [:asa] 2011-05-09 14:16:09 PDT
I'm getting null signature crash reports pretty frequently on this one crash that happens in low memory situations:


I'm on Windows so maybe this is a different problem?
Comment 10 User image Ted Mielczarek [:ted.mielczarek] 2011-05-09 16:17:07 PDT
Yeah, that's a different problem. We have known problems with writing dumps in OOM. It's probably bug 527095.
Comment 11 User image Joe Drew (not getting mail) 2012-11-02 11:37:40 PDT
Unsurprisingly, this is still broken on Mac, as bug 808107 shows.

Note You need to log in before you can comment on or make changes to this bug.