GNOME Bugzilla – Bug 661442
Nautilus crashes when refreshing home folder after modifying ~/.config/user-dirs.dirs
Last modified: 2017-10-06 10:19:16 UTC
Steps to reproduce : Nautilus is opened in my home directory. The user-dirs.dirs file contains : XDG_DOWNLOAD_DIR="$HOME/Téléchargements/" XDG_MUSIC_DIR="$HOME/Musique" XDG_PICTURES_DIR="$HOME/Images" XDG_VIDEOS_DIR="$HOME/Vidéos" I added this line in the file then save it : XDG_DOCUMENTS_DIR="$HOME/Documents/" I refresh Nautilus home folder with F5 key. I get the Nautilus crash. I use Nautilus 3.2.0 on Archlinux 64 bits. Trace :
+ Trace 228745
Thread 1 (Thread 0x7fa4d0d458c0 (LWP 7991))
Oops, the trace 228745 was wrong. The right trace :
+ Trace 228746
Thread 6 (Thread 0x7f0e3ef1e700 (LWP 7189))
Thread 3 (Thread 0x7f0e5c4388e0 (LWP 7178))
Thread 1 (Thread 0x7f0e3e51c700 (LWP 7186))
I have reproduced this bug on Fedora 16. Downstream bug : https://bugzilla.redhat.com/show_bug.cgi?id=750089 I get this trace :
+ Trace 228945
Thread 4 (Thread 0xb7779880 (LWP 2269))
I actually can't reproduce this with those instructions but there do seem to be some cases where the code in gio/glocalfileinfo.c can crash due to a NULL strcmp. Not sure how you are triggering that with this though.
Created attachment 360959 [details] [review] glocalfileinfo: Use g_strcmp0() for some comparisons which might be NULL The return value from g_get_user_special_dir() might be NULL. Safest to use g_strcmp0() uniformly everywhere. Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 360959 [details] [review]:
Attachment 360959 [details] pushed as 0a10f73 - glocalfileinfo: Use g_strcmp0() for some comparisons which might be NULL