Closed Bug 1638807 Opened 2 years ago Closed 2 years ago

Crash in [@ IPCError-browser | ShutDownKill | __pthread_cond_wait | mozilla::ipc::IProtocol::ChannelSend]


(Core :: Layout: Text and Fonts, defect)






(Reporter: gsvelto, Unassigned)


(Keywords: crash)

Crash Data

This bug is for crash report bp-77c25824-f565-40b3-96dc-185b60200517.

Top 10 frames of crashing thread:

0 __pthread_cond_wait 
1 firefox-bin mozilla::detail::ConditionVariableImpl::wait_for mozglue/misc/ConditionVariable_posix.cpp:115
2 mozilla::ipc::IProtocol::ChannelSend ipc/glue/ProtocolUtils.cpp:482
3 mozilla::dom::PContentChild::SendGetFontListShmBlock ipc/ipdl/PContentChild.cpp:5458
4 mozilla::fontlist::FontList::GetBlockFromParent gfx/thebes/SharedFontList.cpp:563
5 mozilla::fontlist::FontList::UpdateShmBlocks gfx/thebes/SharedFontList.cpp:583
6 mozilla::fontlist::FontList::FontList gfx/thebes/SharedFontList.cpp:503
7 gfxPlatformFontList::InitFontList gfx/thebes/gfxPlatformFontList.cpp:482
8 gfxPlatformGtk::CreatePlatformFontList gfx/thebes/gfxPlatformGtk.cpp:255
9 gfxPlatform::Init gfx/thebes/gfxPlatform.cpp:990

This appears to be a deadlock during content process shutdown: the content process has received a shutdown message but it's stuck in mozilla::dom::PContentChild::SendGetFontListShmBlock() which is a synchronous IPC call. So apparently the main process did not respond to that call before sending the shutdown message, leaving the content process stuck and unable to shut down. This seems to have started with buildid 20200514211114.

This must be a case where the browser is being shut down while a content process is still starting up... we're in gfxPlatform::Init, which AFAIK is only called during process startup. So it seems like something that could happen if the browser is launched and then immediately quit, but it could also happen at other times if a new content process is being launched, and then the main process is asked to shut down while that's happening.

What's the proper way to handle this -- should the main process be responsible to ensure it has responded to any sync IPC calls before it sends a shutdown message to a child (and when it knows it wants to send a shutdown message, it would have to reject any new sync calls)?

This looks like a dupe of bug 1623768.

Yep, definitely a duplicate.

Closed: 2 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1623768
You need to log in before you can comment on or make changes to this bug.