Closed Bug 954523 Opened 10 years ago Closed 10 years ago

Crash [@ ssl_nss_handshake_cb]

Categories

(Chat Core :: General, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benediktp, Assigned: florian)

Details

(Whiteboard: [1.2-blocking])

*** Original post on bio 1089 at 2011-10-18 20:43:00 UTC ***

Double clicking an account to connect it and disconnect it immediately again crashes sometimes.

Report ID         Date Submitted
bp-41d6eabc-a1e0-4b82-b0af-d2bd52111018 18.10.2011 22:33 (Yahoo iirc)
bp-85d55a5c-2629-41a5-b2e3-c94142111018 18.10.2011 22:32 (ICQ iirc)
bp-6056d57f-41fb-4ef9-a95a-fd31d2111018 18.10.2011 22:30 (ICQ iirc)
*** Original post on bio 1089 at 2011-10-18 20:44:49 UTC ***

Probably somehow forcing NSS to handshake on an already closed socket.
Summary: Crash: → Crash [@ ssl_nss_handshake_cb]
Whiteboard: [1.2-blocking]
Severity: normal → critical
OS: Windows Vista → All
Hardware: x86 → All
*** Original post on bio 1089 at 2012-04-08 22:56:23 UTC ***

It turns out the real cause is some prpls corrupting the NSS socket by writing data to it before the end of the handshake when they are disconnected (either because of a user action or a connection error) before being fully connected.

This is easily reproducible with the oscar prpl.

I pushed a fix as http://hg.instantbird.org/instantbird/rev/40aa9e7e5ea0 and as while debugging I added some possibly valuable debug messages, I pushed them as http://hg.instantbird.org/instantbird/rev/ceb11e06a1fc.

Resolving as FIXED \o/.
Assignee: nobody → florian
Status: NEW → RESOLVED
Closed: 10 years ago
Component: Account manager → General
Product: Instantbird → Chat Core
Resolution: --- → FIXED
Target Milestone: --- → 1.2
You need to log in before you can comment on or make changes to this bug.