Segfault with Lyx and Google Drive
I wish to report the crash that occurs under lyx 2.6.3 in Ubuntu 21.10. It was reported in LyX as well (https://www.lyx.org/trac/ticket/12399), but I suspect it is GVFS problem as it is libglib that segfaults.
I work on a mount of google drive through gvfs mount. When I open a lyx file, I get the following error while using the "export PDF" option. (basically opening a new file typing "a" and clicking "export" will do)
In the said /tmp subdir there exist a tex file, and a PDF of the compiuled version, but during attempt to copy back the results to the Google Drive mount there are problems. I get the following error message
Copying /tmp/lyx_tmpdir.MNbnbEIKJHYP/lyx_tmpbuf0/15LB5QvY3AAAtuDDrpg9yf_z0QnWTSL9j.pdf to /run/user/1000/gvfs/google-drive:host=gmail.com,user=lucas.isaac,prefix=%2FHYTR-Km9mSwEUk9PVA%2F1Bmh3HT2C4b4RnGitcq6x_NCYx7Y1LEFC%2F1P3QJ6KAJLEeO6iavsM1IusmF3jY_Rkq2/HYTR-Km9mSwEUk9PVA/1Bmh3HT2C4b4RnGitcq6x_NCYx7Y1LEFC/1P3QJ6KAJLEeO6iavsM1IusmF3jY_Rkq2/1Bvl9g7r7bTGlnm3J6wbdj8fl0Z7OJBEp/15LB5QvY3AAAtuDDrpg9yf_z0QnWTSL9j.pdf failed.
I am not sure about the "prefix=" part, as when I enter the target directory from Nautilus, open it in console the pwd does not have any "prefix=" in the name:
/run/user/1000/gvfs/google-drive:host=gmail.com,user=lucas.isacc/WHYTR-Km9mSwEUk9PVA/1Bmh3HT2C4b4RnGitcq6x_NCYx7Y1LEFC/1P3QJ6KAJLEeO6iavsM1IusmF3jY_Rkq2/1Bvl9g7r7bTGlnm3J6wbdj8fl0Z7OJBEp
in the dmesg I see:
[230060.592727] show_signal_msg: 115 callbacks suppressed [230060.592734] pool[1448847]: segfault at 0 ip 00007efeb1b6e124 sp 00007efead29c918 error 4 in libglib-2.0.so.0.6800.4[7efeb1b53000+8d000] [230060.592754] Code: 84 00 00 00 00 00 44 8b 04 87 e9 47 ff ff ff 0f 1f 80 00 00 00 00 f3 0f 1e fa 89 f8 c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <0f> be 17 b8 05 15 00 00 84 d2 74 18 89 c1 48 83 c7 01 c1 e1 05 01
and I find the mount disconnected (it unmounts from /run/user/1000/gvfs, it cleanly remounts when clicking on the bookmark in nautilus).
Something in glib fails and causes gvfs mount to unmount. I am not sure how much LyX is relevant here, but this is the only way I was able to trigger the bug. Using text editors on text files inside GD mount does not lead to such issues.
I reported it in LyX as well: https://www.lyx.org/trac/ticket/12399#comment:1