Closed Bug 1660777 Opened 4 years ago Closed 2 years ago

Crash in [@ OOM | small]

Categories

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

80 Branch
x86_64
Windows 10
defect

Tracking

()

RESOLVED DUPLICATE of bug 1673778

People

(Reporter: worcester12345, Unassigned)

References

Details

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0 ID:20200818235255

Crash report: https://crash-stats.mozilla.org/report/index/12b1e743-640a-4645-9366-eb1310200824

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 snappy::Compress other-licenses/snappy/src/snappy.cc:781
4 xul.dll snappy::RawCompress other-licenses/snappy/src/snappy.cc:1146
5 xul.dll mozilla::dom::indexedDB::`anonymous namespace'::ObjectStoreAddOrPutRequestOp::DoDatabaseWork dom/indexedDB/ActorsParent.cpp:25176
6 xul.dll mozilla::dom::indexedDB::`anonymous namespace'::TransactionDatabaseOperationBase::RunOnConnectionThread dom/indexedDB/ActorsParent.cpp:22749
7 xul.dll mozilla::dom::indexedDB::`anonymous namespace'::TransactionDatabaseOperationBase::Run dom/indexedDB/ActorsParent.cpp:22915
8 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:1234
9 xul.dll NS_ProcessNextEvent xpcom/threads/nsThreadUtils.cpp:513
Component: General → Storage: IndexedDB
Product: Firefox → Core

Hm, there are some new calls in snappy that can result in OOM. Not sure how we can use a fallible allocation here.

Severity: -- → S3
Priority: -- → P2

The signature [@ OOM | small] is absolutely generic and not specific to a particular component.

Also, I don't think this is actionable at all. Small allocation failures indicate an overall low memory condition, so even for the particular crash report it can't be said that there is a root cause in the code it happened to crash. If you happen to have steps to reproduce a situation that leads to an OOM failure, we would be able to check if there is an excessive number of small allocations that accumulate to a huge memory usage.

Crash Signature: [@ OOM | small]

Still, a crash is not the way to go. It should give a warning, and then close, or give the option to close. It needs to be more graceful.

See Also: → 1684472
See Also: → 1673778

Only four Firefox crashes in the past month have Snappy on the stack, all 104.0a1 and I suspect all the same person.

Do you still think this is actionable?

Flags: needinfo?(jstutte)

(In reply to Worcester12345 from comment #3)

Still, a crash is not the way to go. It should give a warning, and then close, or give the option to close. It needs to be more graceful.

We have the general policy of assuming small allocations to be infallible. They are simply happening too often (also down in third party libraries, as here) in order to be able to do a meaningful error handling all the time (with related computing cost, too). A crash is rude but probably gives us the most information we can get from this situation in order to see if there is anything actionable that goes beyond a random OOM.

(In reply to Wayne Mery (:wsmwk) from comment #4)

Do you still think this is actionable?

I think it never was. Bug 1673778 seems to be a good candidate to dupe this to.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jstutte)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.