Closed
Bug 831307
Opened 13 years ago
Closed 13 years ago
crash in mozilla::dom::PBlobStreamChild::FatalError
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: scoobidiver, Assigned: bent.mozilla)
References
Details
(Keywords: crash, Whiteboard: [b2g-crash][BTG-984])
Crash Data
Attachments
(3 files)
|
932 bytes,
patch
|
jst
:
review+
jdm
:
review+
|
Details | Diff | Splinter Review |
|
12.34 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
|
5.76 KB,
patch
|
cjones
:
review+
|
Details | Diff | Splinter Review |
It first showed up in 18.0/20130114.
It's #7 top crasher in B2G 18.0
xpcom_runtime_abort([Child 11309] ###!!! ABORT: [PBlobStreamChild] abort()ing as a result: file PBlobStreamChild.cpp, line 364)
Frame Module Signature Source
0 libxul.so mozalloc_abort mozalloc_abort.cpp:30
1 libxul.so NS_DebugBreak_P nsDebugImpl.cpp:423
2 libxul.so mozilla::dom::PBlobStreamChild::FatalError PBlobStreamChild.cpp:364
3 libxul.so mozilla::dom::PBlobStreamChild::OnMessageReceived PBlobStreamChild.cpp:215
4 libxul.so mozilla::dom::PContentChild::OnMessageReceived PContentChild.cpp:2281
5 libxul.so mozilla::ipc::AsyncChannel::OnDispatchMessage AsyncChannel.cpp:473
6 libxul.so mozilla::ipc::RPCChannel::OnMaybeDequeueOne RPCChannel.cpp:402
7 libxul.so RunnableMethod<IPC::ChannelProxy::Context, void , Tuple0>::Run tuple.h:383
8 libxul.so mozilla::ipc::RPCChannel::DequeueTask::Run RPCChannel.h:425
9 libxul.so MessageLoop::RunTask message_loop.cc:333
10 libxul.so MessageLoop::DeferOrRunPendingTask message_loop.cc:341
11 libxul.so MessageLoop::DoWork message_loop.cc:441
12 libxul.so mozilla::ipc::DoWorkRunnable::Run MessagePump.cpp:42
13 libxul.so nsThread::ProcessNextEvent nsThread.cpp:620
14 libxul.so NS_ProcessNextEvent_P nsThreadUtils.cpp:237
15 libxul.so mozilla::ipc::MessagePump::Run MessagePump.cpp:117
16 libxul.so mozilla::ipc::MessagePumpForChildProcess::Run MessagePump.cpp:231
17 libxul.so MessageLoop::RunInternal message_loop.cc:215
18 libxul.so MessageLoop::Run message_loop.cc:208
19 libxul.so nsBaseAppShell::Run nsBaseAppShell.cpp:163
20 libxul.so XRE_RunAppShell nsEmbedFunctions.cpp:646
21 libxul.so mozilla::ipc::MessagePumpForChildProcess::Run MessagePump.cpp:198
22 libxul.so MessageLoop::RunInternal message_loop.cc:215
23 libxul.so MessageLoop::Run message_loop.cc:208
24 libxul.so XRE_InitChildProcess nsEmbedFunctions.cpp:485
25 plugin-container main MozillaRuntimeMain.cpp:48
More reports at:
https://crash-stats.mozilla.com/report/list?signature=mozalloc_abort+|+NS_DebugBreak_P+|+mozilla%3A%3Adom%3A%3APBlobStreamChild%3A%3AFatalError
Comment 1•13 years ago
|
||
Btw - anything that is a top crasher, feel free to nom with tef? so that drivers see this bug
Updated•13 years ago
|
Whiteboard: [b2g-crash] → [b2g-crash][BTG-984]
The failing code is
InputStreamParams params;
...
if ((!(Read((&(params)), (&(__msg)), (&(__iter)))))) {
FatalError("error deserializing (better message TODO)");
There are two component types that could plausibly fail during read
18 struct FileInputStreamParams
19 {
20 FileDescriptor file;
40 struct RemoteInputStreamParams
41 {
42 PBlob remoteBlob;
m1, do you happen to have a logcat from the bug 831418 report?
Comment 5•13 years ago
|
||
(In reply to Chris Jones [:cjones] [:warhammer] from comment #4)
> m1, do you happen to have a logcat from the bug 831418 report?
Yeah it's 33MB (camera is chatty!). I can grep for something?
Dammitall, no :(. The logging statement I wanted is off by default. Will fix that wagon in a tick.
dougt, would usually tag bent for this but he doesn't seem to be around. Really want to get this in for another test run tonight if we can't repro today. Let me know if you're comfortable reviewing this.
Attachment #703056 -
Flags: review?(doug.turner)
Comment 8•13 years ago
|
||
Do we end up running that code in desktop builds too (when handling OOP plugins)?
I don't think we want printf there.
Comment 9•13 years ago
|
||
Comment on attachment 703056 [details] [diff] [review]
Log breakpoint-level IPC errors always [checked in]
This is fine by me, if that's good enough for you.
Attachment #703056 -
Flags: review+
(In reply to Olli Pettay [:smaug] from comment #8)
> Do we end up running that code in desktop builds too (when handling OOP
> plugins)?
> I don't think we want printf there.
Yes, but this is the equivalent of IPC-abort. abort prints in all builds. Do you have a specific concern?
Comment 12•13 years ago
|
||
Comment on attachment 703056 [details] [diff] [review]
Log breakpoint-level IPC errors always [checked in]
Stealing review...
Attachment #703056 -
Flags: review?(doug.turner) → review+
Comment 13•13 years ago
|
||
hah. beat me to it.
I was going to say maybe prefix that logging with "ipdl":
+ printf_stderr("IPDL Protocol error: %s\n", aMsg);
https://hg.mozilla.org/integration/mozilla-inbound/rev/81f41dd974c4
https://hg.mozilla.org/releases/mozilla-b2g18/rev/5c9364f10013
Whiteboard: [b2g-crash][BTG-984] → [b2g-crash][BTG-984][leave open]
Comment 15•13 years ago
|
||
|printf_stderr| doesn't make it into logcat right? Should we be using logwrapper?
It goes to logcat on bionic, and stderr everywhere else.
http://dxr.mozilla.org/mozilla-central/xpcom/glue/nsCRTGlue.cpp.html#l280
Comment 17•13 years ago
|
||
Updated•13 years ago
|
blocking-b2g: tef? → tef+
Comment 18•13 years ago
|
||
Expecting CAF test results by 1/23.
| Assignee | ||
Comment 19•13 years ago
|
||
This patch makes deserialization error messages much more useful and puts them onto the FatalError path so that stack traces are a bit more useful. (As a bonus the message will make it into the crash report extra info section).
Attachment #705166 -
Flags: review?(jones.chris.g)
Comment 20•13 years ago
|
||
So we caught this crash with the additional logging from comment 14 in place:
IPDL protocol error: error deserializing (better message TODO)
Looks like that comes from ipc/ipdl/ipdl/lower.py
| Assignee | ||
Comment 21•13 years ago
|
||
Sigh... The "TODO" referenced there is in my patch.
Comment 22•13 years ago
|
||
headdesk. Ok, do you think this patch will land on b2g18 today? If not I can land it internally for now so we can try to catch this again overnight
(In reply to Michael Vines [:m1] from comment #20)
> So we caught this crash with the additional logging from comment 14 in place:
>
> IPDL protocol error: error deserializing (better message TODO)
>
> Looks like that comes from ipc/ipdl/ipdl/lower.py
Great! That means the culprit is almost 100% for sure
18 struct FileInputStreamParams
19 {
20 FileDescriptor file;
in comment 4.
Updated•13 years ago
|
Attachment #705166 -
Flags: review?(jones.chris.g) → review+
| Assignee | ||
Comment 24•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #703056 -
Attachment description: Log breakpoint-level IPC errors always → Log breakpoint-level IPC errors always [checked in]
| Assignee | ||
Updated•13 years ago
|
Attachment #705166 -
Attachment description: Better logging of deserialization errors, v1 → Better logging of deserialization errors, v1 [checked in]
| Assignee | ||
Comment 25•13 years ago
|
||
Comment 26•13 years ago
|
||
I hit this signature today when testing. From what I recall, I was operating in the camera app, and while doing so received a message that the contacts app crashed. The report points to this signature.
Not sure if I am hitting a different variant of Bug 827749, but just thought I would mention the fact that I had seen it today since it looks as if this signature is still under investigation.
| Assignee | ||
Comment 27•13 years ago
|
||
Thanks Marcia! Can you link the crash report?
Comment 28•13 years ago
|
||
https://crash-stats.mozilla.com/report/index/6cef5594-aac9-4237-8b0e-b00402130124
The device that crashed only had two contacts, and one of them had a picture associated with it.
(In reply to ben turner [:bent] from comment #27)
> Thanks Marcia! Can you link the crash report?
| Assignee | ||
Comment 29•13 years ago
|
||
Ah, crap. That version apparently doesn't have my error message changes in it yet. Marcia, any chance you can try again with today's build?
| Assignee | ||
Comment 30•13 years ago
|
||
This patch will protect the child from crashing if it should receive a junk filehandle.
Attachment #706168 -
Flags: review?(jones.chris.g)
Updated•13 years ago
|
Attachment #706168 -
Flags: review?(jones.chris.g) → review+
| Assignee | ||
Comment 31•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
(We enumerated all the possible ways this FatalError() could be reached and believe we've fixed them.)
Whiteboard: [b2g-crash][BTG-984][leave open] → [b2g-crash][BTG-984]
Updated•13 years ago
|
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Target Milestone: --- → mozilla21
Comment 33•13 years ago
|
||
Comment 34•13 years ago
|
||
Landed on mozilla-b2g18/gaia master prior to the 1/25 branching to mozilla-b2g18_v1_0_0/v1.0.0, updating status-b2g-v1.0.0 to fixed.
status-b2g18-v1.0.0:
--- → fixed
Seems to be fixed, I tried on 1/26 build otoro and
Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_0/rev/361d9359f4f3
Gaia 0abc95774d0bbdfe314fa588e09fc92cac3e6427
BuildID 20130130113326
Version 18.0
Unagi
Michael or Marcia, can you verify as well please?
Flags: needinfo?(mvines)
Flags: needinfo?(mozillamarcia.knous)
Comment 36•13 years ago
|
||
I was never able to reproduce this crash, so I cannot really verify except that I have not crashed in this stack since I reported it.
Flags: needinfo?(mozillamarcia.knous)
Updated•13 years ago
|
Flags: needinfo?(mvines)
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•