https://bugzilla.redhat.com/show_bug.cgi?id=1479433
Bug ID: 1479433 Summary: Eclipse acts as a filesystem bomb Product: Fedora Version: rawhide Component: eclipse Assignee: akurtako@redhat.com Reporter: pierreblavy@yahoo.fr QA Contact: extras-qa@fedoraproject.org CC: akurtako@redhat.com, andjrobins@gmail.com, eclipse-sig@lists.fedoraproject.org, jerboaa@gmail.com, krzysztof.daniel@gmail.com, mat.booth@redhat.com, rgrunber@redhat.com
Description of problem:
When many eclipse plug-ins are installed, it mess-up the file-system until the computer is unable to boot. At boot, you get few lines on the screen (i.e., the usual ones I presume), for less than one second, then everything crashed to a black screen. Cannot launch linux, cannot read the lines on the screen.
How reproducible: Not always, you have to use eclipse for a while and install a lot of plug ins to make this crash happen. It doesn't crash after install, we have to use eclipse to mess up the file system.
Steps to Reproduce: 1. install eclipse 2. install a lot of plug ins (here CDT, PHP plugin, texlipse) 3. use it until it mess up the file system. It can takes a while and a lot of projects.
Actual results:
- Booting in console only mode (by adding 3 to the grub line) doesn't fix the problem.
- Fixing the btrfs partition linux is installed on doesn't fix the problem either. Fix tool says everything is OK. btrfs check --repair --check-data-csum --progress /dev/sddXXX btrfs rescue zero-log /dev/sddXXX btrfs super-recover /dev/sddXXX btrfs chunk-recover /dev/sddXXX
- The btrfs partition IS readable from a live CD. But we cannot boot on it while the system is installed on this partition.
- Deleting the eclipse folder FIXES the problem.
I do have this problem now, with eclipse on a btrfs partition. Previously I had zfs mess when eclipse was on a ZFS partition.
Expected results: 1) Linux should boot, even when the filesystem is messed up by a ton of files (NOTE the partition is readable from a live CD).
2) BTRFS should do something to prevent file bombing, I prefer an eclipse crash than a non bootable system, or a messed up partition.
3) ZFS has trouble too. zfs-fuse crashes when eclipse is installed on a zfs partition, and deleting the eclipse folder is far less complicated on zfs than on btrfs. zfs-fuse should be patched too to be robust to file bombing.
4) Maybe, if the stars are aligned, you can explain to eclipse developers what's a database, introduce them to sqlite, and explain them how easier and better it is to use it instead of file-bombing the file-system. But as far as I know eclipse, if something can be dirty, it will be dirty.
Additional info : WORKAROUNDS (save your data/os)
--- ZFS ---
Previously I had trouble when eclipse was installed on a ZFS disk. It took me a while to get access to my data partition as eclipse realy messed up the file system a lot. Deleting the eclipse folder fixed the problem, but I had a hard time deleting it, as zfs-fuse crashed and as the messy filesystem has the side effect of freezing linux.
This is the recipe that worked for me - try to delete the eclipse folder (zfs may crash) - if zfs crash : try to delete a few file at a time - if rm or ls crash: try to delete a few file at a time with guesses like rm -r a*; rm -r b*; rm -r c* and etc.
Note that the partition remains valid so zfs scrub will NOT fix the problem.
--- BTRFS --- From my experience, BTRFS leads to less trouble, as long as eclipse IS NOT on the system partition. When things gets wrong, you can simply boot on live CD, mount the BTRFS, and to a rm -r eclipse.