Thread (12 messages) 12 messages, 5 authors, 2014-08-23

Re: Unclean shutdowns cause google-chrome profile to be corrupted in various ways

From: Duncan <hidden>
Date: 2014-08-23 02:52:44

Marc MERLIN posted on Fri, 22 Aug 2014 11:49:19 -0700 as excerpted:
On Fri, Aug 22, 2014 at 06:17:38PM +0000, Duncan wrote:
quoted
Marc MERLIN posted on Fri, 22 Aug 2014 08:50:40 -0700 as excerpted:
quoted
Fairly often (over 20 times for me so far with various kernel
versions), when I reboot after a crash, my google-chrome profile
is damaged in one of 2 ways:
1) open tabs don't reopen
2) google-chrome says that my profile is corrupted.

In both cases rsyncing ~/.config/google-chrome from the last hourly
snapshot has fixed the problem every time.
I've had a similar issue with firefox, tho I've narrowed it down to a
Ok, so so far we've had:
1) gogole-chrome 2) firefox 3) mysql

and 3 different people reporting this at least.

Google-chrome is complicated because it has many state files and I
haven't narrowed down which one got corrupted.
In your firefox example, did you find what corruption you got in that
file, or was it just truncated?
Unfortunately I can't say for sure.  I only notice it when I launch 
firefox the next time and it comes up skinless, with intro dialogs from a 
some of the extensions (which are still loaded from other files, just not 
configured).  By that time it has rewritten the file in question, *MUCH* 
smaller than my fully configured version, apparently rewriting the firefox 
defaults and possibly some extension defaults, but without any of the 
custom configuration.

I don't know if the file disappears entirely (missing directory entry), 
or whether it gets truncated to zero-size, or whether it's there but 
corrupted, but whatever the case, firefox obviously decides it can' work 
with it and restores the settings in that file to default (not restoring 
from the last backup it made tho I can do that manually, but to defaults 
for that file).

And firefox has already overwritten it with the defaults version by the 
time I notice it after launching firefox and seeing the defaults.

BTW, I just looked at my profile and it's for sure prefs.js, with 
firefox's automated backups being prefs-1.js, prefs-2.js ... prefs-7.js, 
the latter being the latest.  An educated guess is that firefox makes a 
new numbered backup every time it upgrades, which would mean those are 
the backups going back seven versions before current (v31).  Or maybe 
only when it changes something big and thus those seven backups go back 
to v4 or whatever.
For mysql, I got:
InnoDB: Page directory corruption: 
infimum not pointed to 140708 11:53:58
InnoDB: Page dump in ascii and hex (16384 bytes):
len 16384; hex 00000000(16KB of 0's).
Is that on ssd or spinning rust, and if ssd, do you run with trim/discard 
and/or have you filled the device yet if not (since mkfs.btrfs trims the 
device as part of the process)?  I'm wondering if that's 4 4 KiB btrfs 
data blocks of trimmed and unwritten SSD?

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help