FS#57051 - [nautilus] Crash when renaming files after the glib2 2.54.3-1 upgrade.

Attached to Project: Arch Linux
Opened by Simon Solinas (ksolsim) - Thursday, 11 January 2018, 11:32 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 19 January 2018, 20:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description: Every time I rename a files or a directory nautilus crashes and create a Segmentation fault (core dumped). This happens after the glib2 2.54.3-1 upgrade.


Additional info:
package version: Nautilus 3.26.2, glib2 2.54.3-1

Steps to reproduce: run Nutilus and rename a file/ direcotory.

using gdb:

[cylon-gnome@arch ~]$ gdb nautilus
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from nautilus...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/nautilus
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe771f700 (LWP 1181)]
[New Thread 0x7fffe6f1e700 (LWP 1182)]
[New Thread 0x7fffe6581700 (LWP 1190)]
[New Thread 0x7fffe4af9700 (LWP 1191)]
[New Thread 0x7fffce57c700 (LWP 1192)]
[New Thread 0x7fffcdd7b700 (LWP 1193)]
[New Thread 0x7fffc7ded700 (LWP 1195)]
[New Thread 0x7fffcd16f700 (LWP 1198)]
[Thread 0x7fffc7ded700 (LWP 1195) exited]
[Thread 0x7fffcdd7b700 (LWP 1193) exited]
[Thread 0x7fffce57c700 (LWP 1192) exited]
[Thread 0x7fffe6581700 (LWP 1190) exited]
('Handling file: ', 'file:///home/cylon-gnome/Video')
('file scheme: ', 'file')
('Handling file: ', 'file:///home/cylon-gnome/Video')
('file scheme: ', 'file')

Thread 1 "nautilus" received signal SIGSEGV, Segmentation fault.
0x00007ffff5336899 in g_type_check_instance ()
from /usr/lib/libgobject-2.0.so.0
(gdb) quit

This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Friday, 19 January 2018, 20:52 GMT
Reason for closing:  Fixed
Additional comments about closing:  nautilus 3.26.2-3
Comment by Maxim (mxfm) - Thursday, 11 January 2018, 16:11 GMT
I can partially confirm this issue in the past. I had segfaults after moving files and switched to Thunar without bothering to file an issue.
Comment by Jan Alexander Steffens (heftig) - Thursday, 11 January 2018, 19:34 GMT
I can't reproduce this.
Comment by ads (flv) - Thursday, 11 January 2018, 19:48 GMT
@heftig

How about this one?
https://bugs.archlinux.org/task/57036
Comment by Simon Solinas (ksolsim) - Thursday, 11 January 2018, 20:19 GMT
@Jan Steffens I tried in a brand new user account and nautilus works fine, I have some problems in some configuration files.
Comment by Spyros Stathopoulos (Foucault) - Thursday, 11 January 2018, 23:15 GMT
@ksolsim I'm encountering the same issue. Can you please specify what configurations issues you were facing? Downgrading to glib2 2.54.2-2 seems to eliminate the issue.
Comment by Simon Solinas (ksolsim) - Thursday, 11 January 2018, 23:21 GMT
@Spyros Stathopoulos. I assume I have problems in some configuration file, but I still have not found it. I tried to delete .config and .local but nautilus still crashes. Instead on a new account nautulis doesn't crash.
Comment by Ruslan Sharafeev (iFaizi) - Friday, 12 January 2018, 05:39 GMT
Yes, I also confirm the problem of falling when rename any directory or file and also downgrading to glib2-2.54.2-2 really fixes this problem...
Comment by random478 (random478) - Friday, 12 January 2018, 08:03 GMT
@Spyros Can confirm this. Renaming any file or directory crashes nautilus; downgrading to glib2 2.54.2-2 fixes the issue.
Comment by Eli Schwartz (eschwartz) - Friday, 12 January 2018, 13:28 GMT
Does the latest glib2 2.54.3-2 update fix this?
Comment by Simon Solinas (ksolsim) - Friday, 12 January 2018, 20:17 GMT
@Eli Schwartz nope.
Comment by ads (flv) - Saturday, 13 January 2018, 20:37 GMT
@ksolsim. Weird, I just tries renaming files with nautilus while on the latest TESTING glib2 aka 2.54.3-2 (not 2.54.3-1) and it doesn't crash. Are you sure you're using 2.54.3-2?
Comment by Simon Solinas (ksolsim) - Saturday, 13 January 2018, 20:43 GMT
@ads of course.
Comment by Spyros Stathopoulos (Foucault) - Sunday, 14 January 2018, 12:08 GMT
I can confirm that it still crashes with 2.54.3-2. I am not sure if this a configuration issue or a regression.
Comment by Spyros Stathopoulos (Foucault) - Sunday, 14 January 2018, 13:36 GMT
I bisected the commits between 2.54.2 and 2.54.3 with no results as all builds exhibit the issue, even 2.54.2. So it seems that there is no problem in the code itself but rather a packaging/building issue. There is some radical difference on the building method between 2.54.2 and 2.54.3. The .2 PKGBUILD uses meson to build the codebase (arch-meson ../glib) but the .3 one uses autotools. If I use the .2 PKGBUILD to build the .3 release the crash does not occur. So this is quite probably some misconfiguration issue during compilation or configuration.
Comment by Riccardo Ambrosio (kalelkenobi) - Monday, 15 January 2018, 08:01 GMT
I think I figured out what triggers the issue. Or at least I found a configuration option that seems related to it. It's the animation toogle in the gnome-tweak-tools. If I disable all animations I get a crash whenever I try to rename something in nautilus; with animations on everything seems to work just fine.

Hope this helps
Comment by Simon Solinas (ksolsim) - Monday, 15 January 2018, 08:44 GMT
@ Riccardo Ambrosio I can confirm, with animations enabled nautilus doesn't crash.
Comment by Ruslan Sharafeev (iFaizi) - Monday, 15 January 2018, 13:18 GMT
Friends, I think it's not related to the option on or off animation, because in any case there is no improvement. At the moment, this problem corrects glib2-2.54.2-2. Version 2.54.3-2 problem not disappeared!
Comment by Cedric (Cbhihe) - Monday, 15 January 2018, 16:04 GMT
Same issue here. Does persist with glib2 v2.54.3-2.
Originally thought it was related to nautilus-dropbox, but not so after all.
Comment by Cedric (Cbhihe) - Monday, 15 January 2018, 16:13 GMT
Confirm temporary workaround by Riccardo Ambrosio (kalelkenobi).
Enable animation in `gnome-tweak-tool` to get rid of issue until fix is rolled out..
Comment by Sebastian (sebiimaks) - Monday, 15 January 2018, 21:00 GMT
Can confirm that the problems persists with glib3 v2.54.3-2. Currently rolled back...
Comment by Jan Alexander Steffens (heftig) - Wednesday, 17 January 2018, 18:18 GMT Comment by Reik Keutterling (Spielkind) - Wednesday, 17 January 2018, 18:26 GMT
May these problems with gdm are related? https://bbs.archlinux.org/viewtopic.php?id=233608
Clarification: Problems (segfaults of gnome-shell) vanished after downgrading back to glib2 2.54.2-2 - traces are in the thread.
So I guess it's not a problem of gdm/gnome. But may the bug in glib2 which causes nautilus to segfault is related to the one which causes the problems mentioned in the thread.
Comment by Simon Solinas (ksolsim) - Wednesday, 17 January 2018, 18:40 GMT
@heftig here it is. (with effects disabled from gnome-tweak)
Comment by Ruslan Sharafeev (iFaizi) - Wednesday, 17 January 2018, 18:49 GMT
Friends, I can say for sure that this problem is not due to the GNOME Display Manager (GDM), because I use pure GNOME-SHELL without GDM and before the update of the glib2-2.54.2-2 package everything worked without problems...
Comment by random478 (random478) - Thursday, 18 January 2018, 08:33 GMT
@heftig animations disabled from gnome-tweak-tools (does not crash with animations turned on)
Comment by Jan Alexander Steffens (heftig) - Thursday, 18 January 2018, 08:44 GMT
Neither of those logs is usable. Please follow the guide more closely.
Comment by Simon Solinas (ksolsim) - Thursday, 18 January 2018, 09:07 GMT
@heftig I followed the guide you have linked step by step (but this time from root).

that is:
# gdb nautilus
# (gdb) run --> (do necessary to evoke the bug)
(gdb) set logging file trace.log
(gdb) set logging on
(gdb) thread apply all bt full
(gdb) set logging off
(gdb) quit
Comment by Jan Alexander Steffens (heftig) - Thursday, 18 January 2018, 15:54 GMT
You didn't create debug packages (steps 1 to 4). Please rebuild at least glib2, gtk3 and nautilus.
Comment by random478 (random478) - Thursday, 18 January 2018, 16:30 GMT
@heftig trace.log for nautilus; glib2-2.54.3-1, glib2-docs-2.54.3-1 and nautilus-3.26.2-2 build with debug and stripping disabled.
Comment by Jan Alexander Steffens (heftig) - Friday, 19 January 2018, 19:57 GMT
That's just a single frame, not a backtrace.
Comment by Jan Alexander Steffens (heftig) - Friday, 19 January 2018, 20:34 GMT

Loading...