Closed Bug 1234170 Opened 8 years ago Closed 8 years ago

crash in nsIWebSocketChannel::Serial

Categories

(Core :: Networking: WebSockets, defect)

44 Branch
x86
Windows NT
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox44 + fixed
firefox45 --- fixed
firefox46 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: philipp, Assigned: baku)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

[Tracking Requested - why for this release]:

This bug was filed from the Socorro interface and is 
report bp-961fe8ba-b63e-4212-b6af-e0e292151219.
=============================================================
Crashing Thread (0)
Frame 	Module 	Signature 	Source
0 	xul.dll 	nsIWebSocketChannel::Serial() 	obj-firefox/dist/include/nsIWebSocketChannel.h
1 	xul.dll 	mozilla::dom::WebSocket::CreateAndDispatchCloseEvent(bool, unsigned short, nsAString_internal const&) 	dom/base/WebSocket.cpp
2 	xul.dll 	mozilla::dom::WebSocketImpl::DispatchConnectionCloseEvents() 	dom/base/WebSocket.cpp
3 	xul.dll 	mozilla::dom::CallDispatchConnectionCloseEvents::Run() 	dom/base/WebSocket.cpp
4 	xul.dll 	nsThread::ProcessNextEvent(bool, bool*) 	xpcom/threads/nsThread.cpp
5 	xul.dll 	mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) 	ipc/glue/MessagePump.cpp
6 	xul.dll 	MessageLoop::RunHandler() 	ipc/chromium/src/base/message_loop.cc
7 	xul.dll 	nsThreadManager::UnregisterCurrentThread(nsThread*) 	xpcom/threads/nsThreadManager.cpp
8 	xul.dll 	nsBaseAppShell::Run() 	widget/nsBaseAppShell.cpp
9 	xul.dll 	nsAppStartup::Run() 	toolkit/components/startup/nsAppStartup.cpp
10 	xul.dll 	XREMain::XRE_mainRun() 	toolkit/xre/nsAppRunner.cpp
11 	xul.dll 	XREMain::XRE_main(int, char** const, nsXREAppData const*) 	toolkit/xre/nsAppRunner.cpp
12 	xul.dll 	XRE_main 	toolkit/xre/nsAppRunner.cpp

requesting tracking since it is a regression in firefox 44 and taking the place as #12 most frequent crash in 44.0b1 data with ~1.2%.
baku, please take a look.
Assignee: nobody → amarchesini
Comment on attachment 8701152 [details] [diff] [review]
ws.patch

Review of attachment 8701152 [details] [diff] [review]:
-----------------------------------------------------------------

I'm not a DOM peer, but I did write the websocket early-failure code, and this looks right to me.  So hopefully it's OK for me to +r this.
Attachment #8701152 - Flags: review?(bugs) → review+
it is fine :)
Remember to ask approvals to all the relevant branches.
Comment on attachment 8701152 [details] [diff] [review]
ws.patch

Approval Request Comment
[Feature/regressing bug #]: bug 1215092
[User impact if declined]: a crash
[Describe test coverage new/current, TreeHerder]: no test for it.
[Risks and why]: There are no risks here: I just add a null check before using mChannel.
[String/UUID change made/needed]: none
Attachment #8701152 - Flags: approval-mozilla-beta?
Attachment #8701152 - Flags: approval-mozilla-aurora?
https://hg.mozilla.org/mozilla-central/rev/fe540291f72f
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Comment on attachment 8701152 [details] [diff] [review]
ws.patch

One-liner not null crash fix, Beta44+, Aurora45+
Attachment #8701152 - Flags: approval-mozilla-beta?
Attachment #8701152 - Flags: approval-mozilla-beta+
Attachment #8701152 - Flags: approval-mozilla-aurora?
Attachment #8701152 - Flags: approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: