Closed
Bug 1171464
Opened 9 years ago
Closed 9 years ago
Check that socket isn't already closed before closing it
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(firefox41 fixed)
RESOLVED
FIXED
2.2 S14 (12june)
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: lanker, Assigned: lanker)
Details
Attachments
(1 file)
787 bytes,
patch
|
qdot
:
review+
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
We have seen cases where mSocket ends up being null in RilConsumer::Close(), leading to a crash. I think this is what's happening: RilConsumer::RilConsumer() StreamSocket::Connect() fails RilConsumer::OnConnectError() RilConsumer::Close() StreamSocket::Close() RilConsumer::OnDisconnect() StreamSocket::Connect() fails again RilConsumer::Close() continues, setting mSocket to nullptr RilConsumer::OnConnectError() RilConsumer::Close() -> mSocket == nullptr -> crash! Adding a check in RilConsumer::Close() that mSocket != nullptr fixes this.
Comment 1•9 years ago
|
||
Thanks for reporting this bug. I'm currently working on refactoring this code. I'll fix the bug in the process.
Assignee: nobody → tzimmermann
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8615319 -
Flags: review?(tzimmermann)
Attachment #8615319 -
Flags: review?(kyle)
Assignee | ||
Comment 3•9 years ago
|
||
OK, good. (I didn't see your comment before uploading the patch, you're to fast... ;))
Comment 4•9 years ago
|
||
Comment on attachment 8615319 [details] [diff] [review] Bug_1171464-Check_that_socket_isnt_already_closed_before_closing_it.patch Review of attachment 8615319 [details] [diff] [review]: ----------------------------------------------------------------- Well, since you have a patch we can also fix it immediately. Do you need help with landing the fix?
Attachment #8615319 -
Flags: review?(tzimmermann) → review+
Updated•9 years ago
|
Assignee: tzimmermann → fredrik.lanker
Assignee | ||
Comment 5•9 years ago
|
||
Yes, thank you.
Comment 6•9 years ago
|
||
I'll commit the patch after Kyle gave his r+.
Updated•9 years ago
|
Attachment #8615319 -
Flags: review?(kyle) → review+
Comment 7•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=b2g-inbound&revision=7cc8862ffd91
https://hg.mozilla.org/mozilla-central/rev/7cc8862ffd91
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S14 (12june)
You need to log in
before you can comment on or make changes to this bug.
Description
•