Closed
Bug 1361132
Opened 8 years ago
Closed 8 years ago
Crash in `Microsoft::WRL::Module<T>::Create''::`2''::`dynamic atexit destructor for ''moduleSingleton'''' (win10 creators update)
Categories
(Core :: Widget: Win32, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla56
People
(Reporter: marcia, Assigned: masayuki)
References
Details
(Keywords: crash, Whiteboard: tpi:+ [platform-rel-Microsoft][platform-rel-Windows][tbird crash])
Crash Data
Attachments
(1 file)
|
59 bytes,
text/x-review-board-request
|
m_kato
:
review+
jcristau
:
approval-mozilla-beta+
gchang
:
approval-mozilla-esr52-
|
Details |
This bug was filed from the Socorro interface and is
report bp-a4c73517-54b1-42f4-8370-0a34d0170501.
=============================================================
This bug has been at the top of crash stats, but looks like no one filed it - not sure of the component...all Windows 10 crashes. Currently #7 top Windows browser crash.
In other versions, but fairly high in 55 relative to release: http://bit.ly/2pBbP46. 85 crashes on nightly and 113 on Release in the last 7 days.
Comments:
Seemingly random crash.
Comment 1•8 years ago
|
||
This looks like a creator update crash in tsf. Masayuki, any idea?
Flags: needinfo?(masayuki)
| Assignee | ||
Comment 2•8 years ago
|
||
Hmm, I have no idea, how about you, Kato-san?
Flags: needinfo?(masayuki) → needinfo?(m_kato)
Comment 4•8 years ago
|
||
Ah this is creator update. sorry for spam
Comment 5•8 years ago
|
||
Humm, textinputframework (for touch?) has a bug by focus/blur. But I don't know root cause from this stacks.
Updated•8 years ago
|
Priority: -- → P2
Whiteboard: tpi:+
Comment 6•8 years ago
|
||
:dees, do you have a contact for Microsoft's Windows core team? This seems to be Microsoft's bug and this is TOP #20 bug on Nightly.
Flags: needinfo?(dchinniah)
(In reply to Makoto Kato [:m_kato] from comment #6)
> :dees, do you have a contact for Microsoft's Windows core team? This seems
> to be Microsoft's bug and this is TOP #20 bug on Nightly.
We have a Microsoft DL and I believe that :marcia reached out to them overnight. They have yet to respond...
Flags: needinfo?(dchinniah) → needinfo?(mozillamarcia.knous)
Updated•8 years ago
|
platform-rel: --- → ?
Whiteboard: tpi:+ → tpi:+ [platform-rel-Microsoft][platform-rel-Windows]
| Reporter | ||
Comment 8•8 years ago
|
||
Yes, no response yet. Will update the bug when there is a response.
Flags: needinfo?(mozillamarcia.knous)
Comment 9•8 years ago
|
||
The platform version breakdown seems relevant - this appears to be something new in creators update.
https://crash-stats.mozilla.com/search/?signature=%3D%60Microsoft%3A%3AWRL%3A%3AModule%3CT%3E%3A%3ACreate%27%27%3A%3A%602%27%27%3A%3A%60dynamic%20atexit%20destructor%20for%20%27%27moduleSingleton%27%27%27%27&product=Firefox&date=%3E%3D2017-05-11T23%3A17%3A00.000Z&date=%3C2017-05-18T23%3A17%3A00.000Z&_sort=-date&_facets=signature&_facets=platform_version&_columns=date&_columns=signature&_columns=product&_columns=version&_columns=build_id&_columns=platform#facet-platform_version
Updated•8 years ago
|
Priority: P2 → P1
| Reporter | ||
Comment 10•8 years ago
|
||
We did hear back from them once, but I pinged them again today to get a status update.
| Reporter | ||
Comment 11•8 years ago
|
||
Nightly has about 100 crashes in the last seven days and Firefox 53.0.3 has 231.
| Assignee | ||
Comment 12•8 years ago
|
||
We have fixed a lot of bugs of our TSF module in Nightly. However, the crash still occurs with the latest Nightly build.
So, I have no idea to avoid this crash by outside. The crash occurs when we receive a message and which is handled *without* mozilla::widget::WinUtils::PeekMessageW nor CThreadInputMgr::PeekMessageW in the stack. I don't understand the reason.
| Assignee | ||
Comment 13•8 years ago
|
||
I see some directly calls of PeekMessage API:
https://searchfox.org/mozilla-central/source/ipc/chromium/src/base/message_pump_win.cc
https://searchfox.org/mozilla-central/source/media/webrtc/trunk/webrtc/base/win32socketserver_unittest.cc
https://searchfox.org/mozilla-central/source/dom/gamepad/windows/WindowsGamepad.cpp
https://searchfox.org/mozilla-central/source/ipc/glue/WindowsMessageLoop.cpp
https://searchfox.org/mozilla-central/source/xpcom/threads/HangMonitor.cpp
And calls of GetMessage API:
https://searchfox.org/mozilla-central/source/widget/windows/nsWindow.cpp
https://searchfox.org/mozilla-central/source/mozglue/misc/StackWalk.cpp
https://searchfox.org/mozilla-central/source/gfx/skia/skia/src/views/win/skia_win.cpp
https://searchfox.org/mozilla-central/source/media/webrtc/trunk/webrtc/base/win32socketserver.cc
They do really wrong thing because TSF-aware application should use ITfMessagePump to get/peek message from the queue. So, I guess that some of them are unexpected behavior of TSF framework or TIP (IME of TSF). As far as possible, we rewrite them with WinUtils::(Get|Peek)Message(). However, some of them are in skia, webrtc and chromium. I don't know if we can change them, though.
| Assignee | ||
Comment 14•8 years ago
|
||
Hmm, unfortunately, the fix of bug 1369419 won't help this.
| Assignee | ||
Comment 15•8 years ago
|
||
s/won't/couldn't
Comment 16•8 years ago
|
||
I used a clipboard manager when I tried to paste some text into a textfield when I got this crash:
https://crash-stats.mozilla.com/report/index/fbd8ad42-dea9-4317-a040-d5ff70170606
Comment 17•8 years ago
|
||
Hey Henrik, what clipboard manager were you using?
Flags: needinfo?(bugzilla)
| Assignee | ||
Comment 18•8 years ago
|
||
Yoshida-san:
This crash occurs in textinputframework.dll. The crash signature is really wired to us:
https://crash-stats.mozilla.com/report/index/f53ae844-412c-4651-ad3d-c887d0170606
When we call ::CallWindowProcW() (we're not sure what message is being handled), TSF is crashed internally. I'd be happy if you'd check this too.
Comment 19•8 years ago
|
||
Looking
| Comment hidden (typo) |
Comment 21•8 years ago
|
||
Note this is #7 Windows top crash for June 6 nightly with 16 distinct installation. Nightly has about 136 crashes in the last seven days.
Comment 22•8 years ago
|
||
Anyone know how I can get access to dumps?
Comment 23•8 years ago
|
||
(In reply to Jim Mathies [:jimm] from comment #17)
> Hey Henrik, what clipboard manager were you using?
I'm using Ditto, but I cant reproduce it again
Flags: needinfo?(bugzilla)
Updated•8 years ago
|
Summary: Crash in `Microsoft::WRL::Module<T>::Create''::`2''::`dynamic atexit destructor for ''moduleSingleton'''' → Crash in `Microsoft::WRL::Module<T>::Create''::`2''::`dynamic atexit destructor for ''moduleSingleton'''' (win10 creators update)
Whiteboard: tpi:+ [platform-rel-Microsoft][platform-rel-Windows] → tpi:+ [platform-rel-Microsoft][platform-rel-Windows][tbird crash]
Comment 24•8 years ago
|
||
(In reply to ebadger@microsoft.com from comment #22)
> Anyone know how I can get access to dumps?
For privacy reasons we generally do not grant minidump access to non-Mozilla personnel. We can provide you with a specific minidump if the originating user consents to their minidump being shared with you.
Is there anything in particular that you would want to look for in these minidumps? Perhaps somebody within Mozilla could assist.
Flags: needinfo?(ebadger)
Comment 25•8 years ago
|
||
looking for a dump so that I can see the call stack for Windows components
Flags: needinfo?(ebadger)
| Reporter | ||
Comment 26•8 years ago
|
||
(In reply to ebadger@microsoft.com from comment #25)
> looking for a dump so that I can see the call stack for Windows components
Just so everyone is on the same page, MS now has a dump - we were able to get permission from a user that was hitting the crash.
| Reporter | ||
Comment 27•8 years ago
|
||
Adding 56 as affected. Currently #4 top browser crash on 56. Eric - any update on the dump we provided?
Also in early 55 beta this is #14 top crash.
status-firefox56:
--- → affected
Flags: needinfo?(ebadger)
Comment 28•8 years ago
|
||
yes, bug was fixed - thanks for the dump
fix is ~3 weeks from being flighted on the insider program
The root cause is that when focus is placed in a control, we will immediatley query for selection position. That selection query is returning a failure code, and we die. If you can ensure that you always can return a selection range in response to focus change, this will also solve.
Flags: needinfo?(ebadger)
| Assignee | ||
Comment 29•8 years ago
|
||
(In reply to ebadger@microsoft.com from comment #28)
> The root cause is that when focus is placed in a control, we will
> immediatley query for selection position. That selection query is returning
> a failure code, and we die. If you can ensure that you always can return a
> selection range in response to focus change, this will also solve.
Thank you for the information. I think that it's possible.
On the other hand, IIRC, we do so now for a crash bug of MS-IME... I'll check it ASAP.
| Assignee | ||
Comment 30•8 years ago
|
||
| Assignee | ||
Comment 31•8 years ago
|
||
| Assignee | ||
Comment 32•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 34•8 years ago
|
||
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 36•8 years ago
|
||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
Hmm, I cannot reproduce bug 1312302 with patched build (if it's reproduced, "TSFTextStore::GetSelection() returns fake selection range for avoiding a crash in TSF" is logged into the log file (nsTextStoreWidgets:3).
Can you check it before review? (Use the last try build to test it.)
Attachment #8880327 -
Flags: feedback?(m_kato)
| Assignee | ||
Updated•8 years ago
|
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Comment 37•8 years ago
|
||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
(In reply to Masayuki Nakano [:masayuki] (JST, +0900) from comment #36)
> Comment on attachment 8880327 [details]
> Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on
> Win10 Anniversary Update or later and build 16215 or earlier.
>
> Hmm, I cannot reproduce bug 1312302 with patched build (if it's reproduced,
> "TSFTextStore::GetSelection() returns fake selection range for avoiding a
> crash in TSF" is logged into the log file (nsTextStoreWidgets:3).
I cannot reproduce it without patch now since we don't have same environment...
> Can you check it before review? (Use the last try build to test it.)
I verified on touch enabled device.
Attachment #8880327 -
Flags: feedback?(m_kato) → feedback+
| Assignee | ||
Updated•8 years ago
|
Attachment #8880327 -
Flags: review?(m_kato)
| Assignee | ||
Comment 38•8 years ago
|
||
Thank you. Then, could you review this? After dogfooding the patch in this weekend, I'll land the patch.
Comment 39•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
https://reviewboard.mozilla.org/r/151692/#review157000
We might care for TS_E_NOSELECTION situation. But it is OK for me.
Attachment #8880327 -
Flags: review?(m_kato) → review+
| Assignee | ||
Comment 40•8 years ago
|
||
(In reply to Makoto Kato [:m_kato] from comment #39)
> We might care for TS_E_NOSELECTION situation. But it is OK for me.
Hmm, I think that both are safe at least for bug 1312302 since even if selection is not dirty when this is called, it returns the error in these cases.
# And I realized that I need to update the summary because it stopped checking fixed build number.
| Comment hidden (mozreview-request) |
Comment 42•8 years ago
|
||
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/27778b8bc4cf
TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later r=m_kato
Comment 43•8 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•8 years ago
|
Comment 44•8 years ago
|
||
thank you, the crash signature is indeed gone in the latest nightly builds after this patch has landed. can you request an uplift once you deem fit to do so?
| Assignee | ||
Comment 45•8 years ago
|
||
Yeah, looks like really gone:
https://crash-stats.mozilla.com/signature/?product=Firefox&build_id=%3E%3D20170627000000&signature=%60Microsoft%3A%3AWRL%3A%3AModule%3CT%3E%3A%3ACreate%27%27%3A%3A%602%27%27%3A%3A%60dynamic%20atexit%20destructor%20for%20%27%27moduleSingleton%27%27%27%27&date=%3E%3D2017-06-26T02%3A30%3A52.000Z
I'll request to uplift them after checking if it's graftable.
| Assignee | ||
Comment 46•8 years ago
|
||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
Approval Request Comment
[Feature/Bug causing the regression]:
Regression of Win10 Anniversary Update, not ours.
[User impact if declined]:
This is 68th top crash bug of 54.
[Is this code covered by automated tests?]:
No.
[Has the fix been verified in Nightly?]:
Yes. There are no crash reports after 20170627xxxxxx.
[Needs manual test from QE? If yes, steps to reproduce]:
No because nobody is sure how to reproduce this crash.
[List of other uplifts needed for the feature/fix]:
No.
[Is the change risky?]:
As far as I've tested, no.
[Why is the change risky/not risky?]:
Bug 1312302 is same crash bug and the patch avoided to crash only a specific path. This patch extends the fix to any path. (The dll of TSF crashes when we return E_FAIL if selection has still not ready. These patches returns fake selection range instead. Additionally, this patch restrict the environment to Win10 Anniversary Update and later.)
[String changes made/needed]:
No.
Attachment #8880327 -
Flags: approval-mozilla-beta?
| Assignee | ||
Comment 47•8 years ago
|
||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration:
This bug is not a top crash bug of ESR52.2.0, but 26th top crash bug for Thunderbird users. We can take this only for Thunderbird, though, I think that we should take this to ESR52 for avoiding the Windows 10's crash bug.
User impact if declined:
When focus is changed, window is opened or closed, and the user uses Win10 Anniversary Update or later, user may meet this crash.
Fix Landed on Version:
56.
Risk to taking this patch (and alternatives if risky):
See previous comment (requesting to uplift to Beta55).
String or UUID changes made by this patch:
No.
Note that if we'll take this into ESR52, we also need to uplift the patch for bug 1368150 because for risk management, this patch restricts to enable the hack with OS's version.
Attachment #8880327 -
Flags: approval-mozilla-esr52?
Comment 48•8 years ago
|
||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
crash fix, beta55+
Attachment #8880327 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 49•8 years ago
|
||
| bugherder uplift | ||
Comment 50•8 years ago
|
||
Comment on attachment 8880327 [details]
Bug 1361132 TSFTextStore::GetSelection() shouldn't return if it runs on Win10 Anniversary Update or later
Since this is not a topcrash in ESR52, we can take this only for Thunderbird. ESR52-.
Attachment #8880327 -
Flags: approval-mozilla-esr52? → approval-mozilla-esr52-
Updated•8 years ago
|
Comment 51•8 years ago
|
||
THUNDERBIRD_52_VERBRANCH:
https://hg.mozilla.org/releases/mozilla-esr52/rev/459150ea79f6be75c0228450b2ae15c28b5fbe1b
Comment 52•8 years ago
|
||
(In reply to Masayuki Nakano [:masayuki] (JST, +0900)(offline: 9/13 ~ 9/18) from comment #46)
> [Needs manual test from QE? If yes, steps to reproduce]:
> No because nobody is sure how to reproduce this crash.
Since there is no proper way of reproducing this crash and based on Masayuki's assessment on manual testing needs, marking it as qe-verify-.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•