Some time ago I've seen a library of sorts that is intended to help
protect against program crashes. Specifically it is intended to allow to
recover from a crash gracefully.
The method proposed there was to allocate critical data structures from
an mmap-ed file, when the program crashes the os handles the saving of
the memory to file (assuming no disk space error, but possibly the disk
space is already allocated).
The link is at: http://afro.buzzcutgames.com/~idcmp/recovalloc/
This might help improve LyX crash recovery.
--
Baruch Even
http://baruch.ev-en.org/