Open
Bug 1237527
Opened 9 years ago
Updated 1 years ago
Cookies are all gone after Firefox crashes after experiencing a full disk
Categories
(Core :: Networking: Cookies, defect, P3)
Tracking
()
NEW
People
(Reporter: timdream, Unassigned)
References
Details
(Whiteboard: [necko-backlog], DWS_NEXT)
Happens on Firefox Mac 44.0b6, built from https://hg.mozilla.org/releases/mozilla-beta/rev/9ebad515bc39afdea1e656bf15218a0511a5d1e2
My disk space is running low and Firefox crashes when Mac shows the warning (the crash itself is another bug...), after restart all my cookies are gone and I have to re-login to all services.
Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Mac OS X
Hardware: Unspecified → x86_64
Version: unspecified → 44 Branch
Updated•9 years ago
|
Component: Untriaged → Session Restore
Comment 1•9 years ago
|
||
It looks like that on any error, the cookie database tries to rebuild itself by nuking the DB and writing out all the cookies again. (The cookies are all in memory all the time, so this is a thing that can be done.)
https://dxr.mozilla.org/mozilla-central/source/netwerk/cookie/nsCookieService.cpp#340
Unfortunately, if your disk is full and getting actively filled up by some other process, it's likely the following happens:
- SQLite generates a SQLITE_FULL error that gets mapped to an NS_ERROR_FILE_NO_DEVICE_SPACE
- The cookie service error handler tries to create the database anew
- Maybe Firefox crashes?
- It goes to create the database but SQLITE_FULL errors keep happening and so it keeps re-creating things or just gives up or whatever. I didn't look into this too much.
When the disk is filling up/full, there aren't a lot of good options, but probably the safest one for the cookie service would be to handle the full event and treat it as an "oh well, there's nothing I can do but I definitely won't delete the cookie database".
Unfortunately I'm assuming your full disk scenario might have also resulted in there being no crash in about:crashes?
cc'ing :mak because full-disk crashes are an interesting mozStorage-related thing.
Component: Session Restore → Networking: Cookies
Product: Firefox → Core
Summary: Cookies are all gone after Firefox crashes → Cookies are all gone after Firefox crashes after experiencing a full disk
Reporter | ||
Comment 2•9 years ago
|
||
(In reply to Andrew Sutherland [:asuth] from comment #1)
> Unfortunately I'm assuming your full disk scenario might have also resulted
> in there being no crash in about:crashes?
That's right, no about:crashes :'(
Reporter | ||
Comment 3•9 years ago
|
||
This just happen to me again. Strangely, for the second time, Bugzilla cookie survives.
Updated•9 years ago
|
Whiteboard: [necko-backlog]
Comment 4•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Comment 5•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
Updated•6 years ago
|
Whiteboard: [necko-backlog] → [necko-backlog], DWS_NEXT
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•