Closed Bug 1769693 Opened 3 years ago Closed 3 years ago

Crash in [@ mozilla::ipc::PortLink::SendMessage | IPC_Message_Name=PContent::Msg_ShutdownProfile]

Categories

(Core :: Gecko Profiler, defect)

x86
Windows 11
defect

Tracking

()

RESOLVED DUPLICATE of bug 1761578

People

(Reporter: gsvelto, Unassigned)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/aa83a7f4-4d98-48b7-ace6-26ecf0220513

MOZ_CRASH Reason: MOZ_CRASH(IPC message size is too large)

Top 10 frames of crashing thread:

0 xul.dll mozilla::ipc::PortLink::SendMessage ipc/glue/MessageLink.cpp:98
1 xul.dll mozilla::ipc::MessageChannel::SendMessageToLink ipc/glue/MessageChannel.cpp:783
2 xul.dll mozilla::ipc::MessageChannel::Send ipc/glue/MessageChannel.cpp:772
3 xul.dll mozilla::ipc::IProtocol::ChannelSend ipc/glue/ProtocolUtils.cpp:487
4 xul.dll mozilla::dom::PContentChild::SendShutdownProfile ipc/ipdl/PContentChild.cpp:4940
5 xul.dll mozilla::dom::ContentChild::ShutdownInternal dom/ipc/ContentChild.cpp:3105
6 xul.dll mozilla::dom::ContentChild::RecvShutdown dom/ipc/ContentChild.cpp:3034
7 xul.dll mozilla::dom::PContentChild::OnMessageReceived ipc/ipdl/PContentChild.cpp:12272
8 xul.dll mozilla::ipc::MessageChannel::DispatchMessage ipc/glue/MessageChannel.cpp:1706
9 xul.dll mozilla::ipc::MessageChannel::RunMessage ipc/glue/MessageChannel.cpp:1506

One thing worth noting about this crash is that it's a 32-bit build on a modern machine.

(In reply to Gabriele Svelto [:gsvelto] from comment #0)

One thing worth noting about this crash is that it's a 32-bit build on a modern machine.

Do we have different IPC message sizes on 32 Bit ?

Anyhow, looking at the stack it seems to me that we do mProfilerController->GrabShutdownProfileAndShutdown() on shutdown and pass the returned string directly into the SendShutdownProfile without any precautions against being too long.

Component: DOM: Content Processes → Gecko Profiler

See bug 1330185 where this has been first introduced.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

(In reply to Jens Stutte [:jstutte] from comment #1)

Do we have different IPC message sizes on 32 Bit ?

No, the message limit is hard coded.

You need to log in before you can comment on or make changes to this bug.