Closed Bug 1646094 Opened 4 years ago Closed 4 years ago

Crash in [@ OOM | large | mozalloc_abort | mozalloc_handle_oom | moz_xmalloc | nsTArray_base<T>::EnsureCapacity<T> | mozilla::dom::indexedDB::BackgroundRequestChild::HandleResponse]

Categories

(Core :: Storage: IndexedDB, defect, P1)

Unspecified
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sg, Unassigned)

Details

(Keywords: crash)

Crash Data

This bug is for crash report bp-7aec4fa2-f1e6-436d-a4ee-084b50200529.

Top 10 frames of crashing thread:

0 mozglue.dll mozalloc_abort memory/mozalloc/mozalloc_abort.cpp:33
1 mozglue.dll mozalloc_handle_oom memory/mozalloc/mozalloc_oom.cpp:51
2 mozglue.dll moz_xmalloc memory/mozalloc/mozalloc.cpp:54
3 xul.dll nsTArray_base<nsTArrayInfallibleAllocator, nsTArray_RelocateUsingMoveConstructor<mozilla::dom::indexedDB::StructuredCloneReadInfoChild> >::EnsureCapacity<nsTArrayInfallibleAllocator> xpcom/ds/nsTArray-inl.h:162
4 xul.dll mozilla::dom::indexedDB::BackgroundRequestChild::HandleResponse dom/indexedDB/ActorsChild.cpp:2679
5 xul.dll mozilla::dom::indexedDB::BackgroundRequestChild::Recv__delete__ dom/indexedDB/ActorsChild.cpp
6 xul.dll mozilla::dom::indexedDB::PBackgroundIDBRequestChild::OnMessageReceived ipc/ipdl/PBackgroundIDBRequestChild.cpp:129
7 xul.dll mozilla::ipc::PBackgroundChild::OnMessageReceived ipc/ipdl/PBackgroundChild.cpp:5970
8 xul.dll mozilla::ipc::MessageChannel::DispatchMessage ipc/glue/MessageChannel.cpp:2110
9 xul.dll mozilla::ipc::MessageChannel::MessageTask::Run ipc/glue/MessageChannel.cpp:1989

We can avoid a crash by making the SetCapacity call at https://searchfox.org/mozilla-central/rev/2c1092dc68c63f7bad6da6a03c5883a5ab5ff2ca/dom/indexedDB/ActorsChild.cpp#2422 fallible, and dispatch an error event in case of a failure.

Severity: -- → S3
Priority: -- → P1

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.