ASSERTION: selection count is wrong: 'selection.Length() == uint32_t(count)', file seamonkey-2.33.1/work/comm-release/mailnews/base/src/nsMsgDBView.cpp, line 1265
Categories
(MailNews Core :: Backend, defect)
Tracking
(Not tracked)
People
(Reporter: mmokrejs, Assigned: ishikawa)
Details
Attachments
(1 file, 1 obsolete file)
3.58 KB,
patch
|
Details | Diff | Splinter Review |
Updated•9 years ago
|
Reporter | ||
Comment 1•9 years ago
|
||
Assignee | ||
Comment 2•9 years ago
|
||
Assignee | ||
Comment 3•9 years ago
|
||
Assignee | ||
Comment 4•9 years ago
|
||
Reporter | ||
Comment 5•8 years ago
|
||
Assignee | ||
Comment 6•8 years ago
|
||
Assignee | ||
Comment 7•8 years ago
|
||
Assignee | ||
Comment 8•8 years ago
|
||
Reporter | ||
Comment 9•8 years ago
|
||
Reporter | ||
Comment 10•7 years ago
|
||
Reporter | ||
Comment 11•7 years ago
|
||
Assignee | ||
Comment 12•5 years ago
|
||
Bug 1562158 removed the use of [array] in the code.
So we may see a different behavior here. I am looking out.
I have a local patch to dump relevant numbers when this assert hits.
(Yet to run the test locally... I have a few issues of mixed up Cargo setup.)
Comment 13•5 years ago
|
||
+#ifdef DEBUG
-
// LHS is unsigned long long under MSVC.
-
// OTOH, it is long unsigned int under linux.
-
// Strict format checking barfs if we use %lu under Windows.
-
// Using %llu causes the compiler to barf under linux and presumably OSX.
-
unsigned long tmp = indices.Length();
-
fprintf(stderr, "(debug): Is selection count wrong? indices.Length() = %lu != count =%u\n",
-
tmp, uint32_t(count));
+#endif
You can do
fprintf("... %" PRIi32, count)
count seems to be int32_t so the right argument type is PRIi32, which should work on all platforms. We do that in many format strings in the code.
There are constants for all the other types too like PRIu64 etc.
Comment 14•5 years ago
|
||
(In reply to :aceman from comment #13)
You can do fprintf("... %" PRIi32, count)
Updated•5 years ago
|
Assignee | ||
Comment 15•5 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #14)
(In reply to :aceman from comment #13)
You can do fprintf("... %" PRIi32, count)
I have modified the source code, but have had local test issues... Once it is cleared, I will upload a renewed patch.
Assignee | ||
Comment 16•5 years ago
|
||
An updated patch.
TryServer job.
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=9dc8b92d074cab5fbc7524ecf28311557d8cda92
You can see the dump in
linux x64 debug in the live logs of
bct3, bct4, and bct5.
Updated•5 years ago
|
Description
•