Closed
Bug 661319
Opened 14 years ago
Closed 14 years ago
JSBool assertion failure causes crash when connecting to GMail IMAP
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 7.0
People
(Reporter: mconley, Assigned: mconley)
Details
(Keywords: crash)
Attachments
(2 files)
5.36 KB,
text/plain
|
Details | |
790 bytes,
patch
|
Bienvenu
:
review+
|
Details | Diff | Splinter Review |
I've got a GMail account that I connect to with TB for testing, and recent builds are crashing when syncing with GMail.
See attached stacktrace.
Assignee | ||
Comment 1•14 years ago
|
||
Bienvenu tracked down the problem to the way nsMsgDBFolder::OnFlagChange called NotifyBoolPropertyChanged.
This patch fixes the crash in my build.
Comment 2•14 years ago
|
||
Comment on attachment 536691 [details] [diff] [review]
Patch v1
looks good - I grepped through the code and couldn't find any other code abusing bools this way.
Attachment #536691 -
Flags: review?(dbienvenu) → review+
Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 3•14 years ago
|
||
Checked in: http://hg.mozilla.org/comm-central/rev/7b686a8fd57c
Should we be back porting this to aurora?
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 7.0
Assignee | ||
Comment 4•14 years ago
|
||
I don't see how it could hurt.
Comment 5•14 years ago
|
||
We initially made it fatal to pass malformed PRBools through XPConnect to the js engine. During the brief window where this was a fatal assert, quite a few bugs cropped up, such as this one. However, it caused too much fallout on the Firefox side of things so we had to make xpcconnect do the !! thing before passing a prbool into a jsbool. There's now a warning if xpcconnect has to do that, so please watch out in debug builds for a "Passing a malformed PRBool through XPConnect".
If any good souls want to keep running their mozilla/ subdirectory without the !! thing in xpcconvert.cpp, that would be a great way to catch any potential bad PRBools.
All the details are in https://bugzilla.mozilla.org/show_bug.cgi?id=661319
Comment 6•14 years ago
|
||
I could probably revive a quick prcheck tool to run on c-c code that actually ensures that PRBools receive only [0,1] values.
Comment 7•14 years ago
|
||
Firefox could use this as well, I think...
You need to log in
before you can comment on or make changes to this bug.
Description
•