/usr/share/applications/compiz.desktop, maybe other .desktop files, can crash nautilus

Bug #315983 reported by Shirish Agarwal
34
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Nautilus
Fix Released
Critical
nautilus (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

If one goes to /usr/share/applications then nautilus crashes.

Would be attaching the backtrace done as well.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: nautilus 1:2.25.2-0ubuntu4
ProcEnviron:
 PATH=(custom, user)
 LANG=en_IN
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.28-4-generic i686

Tags: apport-bug
Revision history for this message
Shirish Agarwal (shirishag75) wrote :
Revision history for this message
Shirish Agarwal (shirishag75) wrote :

Please lemme know if anything else is needed.

Revision history for this message
sojourner (itsmealso2) wrote :

I am getting the same bug , I also attach my backtrace .

Revision history for this message
Veovis (masterkedri) wrote :

I have the problem as well... need me to attack anything? There is a similar bug here: https://bugs.edge.launchpad.net/ubuntu/+source/nautilus/+bug/315373

Revision history for this message
Shirish Agarwal (shirishag75) wrote :

this is the valgrind log of the same.

Revision history for this message
sojourner (itsmealso2) wrote :

attached is the crash report from the first time this happened to me , I tried to send it at the time it was generated but got an error from launchpad and it never offered to resend . At the time this was generated I had not yet installed the dbgsym's . I had to copy the file out of /vat/crash and rename it to get it to send as an attachment , ther original name was _usr_bin_nautilus.1000.crash

Revision history for this message
Tommaso R. Donnarumma (tawmas) wrote :

It looks like this crash is caused by something in compiz.desktop. I can replicate the crash reliably with these commands:

mkdir ~/test
cp /usr/share/applications/compiz.desktop ~/test/
nautilus ~/test

The other files seem ok, but I didn't do an exhaustive check (yet). But files beginning with a*, b* and c*, except compiz.desktop, do not cause a crash.

Changed in nautilus:
status: New → Confirmed
Revision history for this message
sojourner (itsmealso2) wrote :

following the hint from Tommaso I moved compiz.desktop out of /usr/share/applications to my /home/tmp dir and now nautilus can go to /usr/share/applications without crashing but it does now crash when going to /home/tmp . NOTE I used dolphin to move the file since it is not affected by this bug nor is MC , Krusader or emelFM2 .

Revision history for this message
Veovis (masterkedri) wrote :

I installed a fresh and clean alpha 2 (not a single extra ap, not even drivers) and navigated to the folder (32 bit ubuntu) and it did NOT crash. Ran updates and just accepted all of them. Navigated to the folder and had the crash. One of the updates makes this happen.

Revision history for this message
A. Walton (awalton) wrote :

Thanks for the good work on this one. Can someone attach the desktop entry file that is causing the crash?

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Tim Sharitt (tsharitt) wrote :

Here is the compiz.desktop that causes the crash.

Revision history for this message
Tim Sharitt (tsharitt) wrote :

This file also causes the same problem. If a valid 'Type' is added for [Desktop Entry] on either, the problem goes away.

Revision history for this message
Tim Sharitt (tsharitt) wrote :

To clarify what I said above, a valid type isn't necessary, just as long as something is added for type.

Revision history for this message
Tim Sharitt (tsharitt) wrote :

here's a copy of compiz.desktop that does bot cause a crash. All I did was add the line 'Type=hfsfg'.

A. Walton (awalton)
Changed in nautilus:
status: Incomplete → Triaged
Changed in nautilus:
status: Unknown → New
Revision history for this message
Tim Sharitt (tsharitt) wrote :

I messed around with the source package, nautilus-2.25.2/libnautilus-private/nautilus-link.c to be specific, and made a change that seems to fix the problem. In the function nautilus_link_get_link_name_from_desktop, where type is checked in order to assign an icon (at least that's what I think it does) I added a line to first check to see if type == NULL. I suppose the problem may have been trying to copy a string which did not exist. I have attached the modified file.

I am not a programmer by any means, so there is probably a better way to fix the problem, but maybe this will help.

btw, if there is a better way to do this, please tell me. I'm kinda new to this. :)

Revision history for this message
Tim Sharitt (tsharitt) wrote :
Changed in nautilus:
status: New → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

fixed upstream, thanks for reporting.

Changed in nautilus:
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is fixed in jaunty now

Changed in nautilus:
status: Fix Committed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

Tim thank you for your work on this update, GNOME roll unstable tarball often enough that backporting changes is usually not required, I've uploaded the new version to jaunty now

Changed in nautilus:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.