GNOME Bugzilla – Bug 602500
Crash in nautilus_file_peek_display_name at nautilus-file.c line 3692
Last modified: 2011-10-08 16:51:12 UTC
Version: 2.28.1 What were you doing when the application crashed? watching pdf Distribution: Debian squeeze/sid Gnome Release: 2.28.0 2009-11-18 (Debian) BugBuddy Version: 2.28.0 System: Linux 2.6.31-1-686 #1 SMP Sun Nov 15 20:39:33 UTC 2009 i686 X Vendor: The X.Org Foundation X Vendor Release: 10605000 Selinux: No Accessibility: Disabled GTK+ Theme: Darklooks Icon Theme: gnome-alternative GTK+ Modules: gnomebreakpad, canberra-gtk-module Memory status: size: 92762112 vsize: 92762112 resident: 30863360 share: 19578880 rss: 30863360 rss_rlim: 18446744073709551615 CPU usage: start_time: 1258725146 rtime: 1941 utime: 1829 stime: 112 cutime:0 cstime: 1 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/bin/nautilus' [Thread debugging using libthread_db enabled] [New Thread 0xb0af6b70 (LWP 21803)] [New Thread 0xb5959b70 (LWP 21086)] 0xb7895424 in __kernel_vsyscall ()
+ Trace 219203
Thread 1 (Thread 0xb6717760 (LWP 21046))
Inferior 1 [process 21046] will be detached. Quit anyway? (y or n) [answered Y; input not from terminal] ---- Critical and fatal warnings logged during execution ---- ** nautilus **: nautilus_file_get_uri: assertion `NAUTILUS_IS_FILE (file)' failed ----------- .xsession-errors (10 sec old) --------------------- Found Metastream: KPX_GROUP_TREE_STATE Done. Detecting Dropbox architecture... Done. Will use 32 bit Dropbox. Checking currently installed version... Done. Looking for temporary space...Created. Checking for update... Done. Downloading update. This may take a few minutes... Done. Stopping Dropbox...dropbox: no process found Done. Installing Dropbox 0.7.68... Done. Starting Dropbox...Done! Complete. ** (nautilus:21046): CRITICAL **: nautilus_file_get_uri: assertion `NAUTILUS_IS_FILE (file)' failed --------------------------------------------------
*** Bug 604137 has been marked as a duplicate of this bug. ***
*** Bug 605561 has been marked as a duplicate of this bug. ***
*** Bug 605660 has been marked as a duplicate of this bug. ***
*** Bug 609608 has been marked as a duplicate of this bug. ***
*** Bug 610080 has been marked as a duplicate of this bug. ***
*** Bug 610739 has been marked as a duplicate of this bug. ***
*** Bug 611142 has been marked as a duplicate of this bug. ***
*** Bug 606589 has been marked as a duplicate of this bug. ***
*** Bug 609687 has been marked as a duplicate of this bug. ***
*** Bug 611516 has been marked as a duplicate of this bug. ***
*** Bug 611700 has been marked as a duplicate of this bug. ***
Debian, Solaris, Gentoo, OpenSuse. Does not look distro-specific.
*** Bug 611839 has been marked as a duplicate of this bug. ***
*** Bug 611961 has been marked as a duplicate of this bug. ***
*** Bug 612612 has been marked as a duplicate of this bug. ***
*** Bug 615369 has been marked as a duplicate of this bug. ***
*** Bug 615363 has been marked as a duplicate of this bug. ***
There is a bug similar on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/565081 "This issue happened when I pressed 'delete' to remove a .jpeg image from a directory. Before the image was deleted I pressed delete again and nautilus crashed."
*** Bug 616690 has been marked as a duplicate of this bug. ***
*** Bug 616856 has been marked as a duplicate of this bug. ***
*** Bug 617628 has been marked as a duplicate of this bug. ***
*** Bug 618245 has been marked as a duplicate of this bug. ***
*** Bug 618249 has been marked as a duplicate of this bug. ***
*** Bug 619239 has been marked as a duplicate of this bug. ***
*** Bug 620347 has been marked as a duplicate of this bug. ***
*** Bug 621102 has been marked as a duplicate of this bug. ***
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/590436 has a similar crash happened regularly to an user deleting files on a nfs share
*** Bug 621179 has been marked as a duplicate of this bug. ***
(Some reports are from 2.30)
*** Bug 622642 has been marked as a duplicate of this bug. ***
*** Bug 623488 has been marked as a duplicate of this bug. ***
*** Bug 623853 has been marked as a duplicate of this bug. ***
*** Bug 619789 has been marked as a duplicate of this bug. ***
*** Bug 624688 has been marked as a duplicate of this bug. ***
*** Bug 625206 has been marked as a duplicate of this bug. ***
Cosimo, the call seems to come from at nautilus-information-panel.c that was removed a few days ago. Should this be marked as FIXED then?
*** Bug 626398 has been marked as a duplicate of this bug. ***
*** Bug 628074 has been marked as a duplicate of this bug. ***
*** Bug 624320 has been marked as a duplicate of this bug. ***
*** Bug 630052 has been marked as a duplicate of this bug. ***
*** Bug 631677 has been marked as a duplicate of this bug. ***
*** Bug 631744 has been marked as a duplicate of this bug. ***
*** Bug 631937 has been marked as a duplicate of this bug. ***
*** Bug 632343 has been marked as a duplicate of this bug. ***
*** Bug 632200 has been marked as a duplicate of this bug. ***
*** Bug 632995 has been marked as a duplicate of this bug. ***
last dupe in 2.32.x
*** Bug 635467 has been marked as a duplicate of this bug. ***
*** Bug 635542 has been marked as a duplicate of this bug. ***
*** Bug 636068 has been marked as a duplicate of this bug. ***
*** Bug 636537 has been marked as a duplicate of this bug. ***
*** Bug 636829 has been marked as a duplicate of this bug. ***
*** Bug 636903 has been marked as a duplicate of this bug. ***
*** Bug 630048 has been marked as a duplicate of this bug. ***
*** Bug 637101 has been marked as a duplicate of this bug. ***
Also see bug 630048 comment 4 for a nice trace.
*** Bug 638192 has been marked as a duplicate of this bug. ***
*** Bug 640435 has been marked as a duplicate of this bug. ***
Created attachment 179361 [details] [review] Check file descriptor in nautilus_file_peek_display_name before accessing it To properly reproduce the problems described in this bugreport and its duplicates I created 8 empty files between 200 and 500 MB. After deleting all those files at a time with shift + delete I pressed the left arrow key. Nautilus crashed at once. The attached patch tries to prevent a crash in nautilus_file_peek_display_name() by checking if a file is gone before accessing its file descriptor. Even so a crash in functions called by nautilus_file_peek_display_name() could occur. But that’s rather unlikely. After applying this patch I did a test with 8 empty files each sized 400 MB. By repeating it 10 times I couldn't trigger a crash.
(In reply to comment #59) > To properly reproduce the problems described in this bugreport and its > duplicates I created 8 empty files between 200 and 500 MB. After deleting all > those files at a time with shift + delete I pressed the left arrow key. > Nautilus crashed at once. Marcus, what nautilus version is this? Also, are you in browser mode with info pane displayed or is it spatial?
I'm afraid I used only nautilus 2.30.1 (Debian Squeeze) in browser mode for my first tests. With this version I can still reproduce a crash. But it's not as easy as a few hours ago. With the version from origin/master (without any additional patch) in browser mode I cannot trigger any crash. So I perhaps didn't test 2.91.7+git before. I apologise for any inconvenience caused by this fault. I will further investigate if this bug still exists.
I've been finally able to reproduce the issue and proposed patch avoids the crash. However, it's clearly a race condition somewhere since I've seen several other assert failures. None of them were fatal though. This is more difficult to hit in git master since we don't have information pane anymore.
Committed slightly modified patch in master and gnome-2-32: commit 8f6245a80cfd571274813fe4d5d950769d02bfba Author: Tomas Bzatek <tbzatek@redhat.com> Date: Thu Jan 27 11:22:10 2011 +0100 Prevent a crash in nautilus_file_peek_display_name() on invalid NautilusFile This is more a workaround only, expect assert failures at other places when something bad happens. There's a race condition somewhere, this patch only prevents immediate crash. Patch by Marcus Husar <marcus.husar@rose.uni-heidelberg.de> https://bugzilla.gnome.org/show_bug.cgi?id=602500
*** Bug 641222 has been marked as a duplicate of this bug. ***
*** Bug 641313 has been marked as a duplicate of this bug. ***
*** Bug 641883 has been marked as a duplicate of this bug. ***
*** Bug 642200 has been marked as a duplicate of this bug. ***
*** Bug 643070 has been marked as a duplicate of this bug. ***
*** Bug 644734 has been marked as a duplicate of this bug. ***
*** Bug 645113 has been marked as a duplicate of this bug. ***
*** Bug 645725 has been marked as a duplicate of this bug. ***
*** Bug 647664 has been marked as a duplicate of this bug. ***
*** Bug 648995 has been marked as a duplicate of this bug. ***
*** Bug 651093 has been marked as a duplicate of this bug. ***
*** Bug 653981 has been marked as a duplicate of this bug. ***
*** Bug 654499 has been marked as a duplicate of this bug. ***
*** Bug 661246 has been marked as a duplicate of this bug. ***