nautilus crashed with SIGSEGV in g_shell_quote()

Bug #418979 reported by ubuntu.diego
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Nautilus
Unknown
Critical
nautilus (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

Crashed while trying to open a file that is associated with a compiled application (not installed via Synaptics)

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/nautilus
NonfreeKernelModules: fglrx wl
Package: nautilus 1:2.26.2-0ubuntu2
ProcCmdline: nautilus
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Signal: 11
SourcePackage: nautilus
StacktraceTop:
 g_shell_quote () from /usr/lib/libglib-2.0.so.0
 ?? ()
 ?? ()
 ?? ()
 ?? ()
Title: nautilus crashed with SIGSEGV in g_shell_quote()
Uname: Linux 2.6.28-15-generic x86_64
UserGroups: adm admin audio cdrom dialout dip lpadmin netdev plugdev pulse pulse-access pulse-rt sambashare vboxusers video
SegvAnalysis:
 Segfault happened at: 0x7ff0276c51be <g_shell_quote+30>: movzbl 0x0(%rbp),%edx
 PC (0x7ff0276c51be) ok
 source "0x0(%rbp)" (0x0c47f060) not located in a known VMA region (needed readable region)!
 destination "%edx" ok
SegvReason: reading unknown VMA

Revision history for this message
ubuntu.diego (ubuntu-diego) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:IA__g_shell_quote (
launch_gnome_app_install_mimetype (
activate_callback (files=<value optimized out>,
file_list_file_ready_callback (
call_ready_callbacks_at_idle (

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in nautilus (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Pedro Villavicencio (pedro) wrote :

crash could be at the gnome-app-install patch, marking it as confirmed since the backtrace is completed.

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
status: New → Confirmed
visibility: private → public
Kees Cook (kees)
description: updated
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I've reported this bug upstream and am marking it as Triaged since the work of Bug Control here is done so far. We'll now wait until someone with more understanding of the traces responds.
Thank you for reporting this bug!

Changed in nautilus (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote :

This is not an upstream issue but a problem in a patch from ubuntu (82_gnome-app-install.patch):
+void launch_gnome_app_install_mimetype(GdkScreen *screen,
+ NautilusFile *file,
+ char *uri) {
+ char *qmimetype, *quri, *qduri, *command;
+ if (!screen)
+ screen = gdk_display_get_default_screen(gdk_display_get_default ());
+
+ qmimetype = g_shell_quote (nautilus_file_info_get_mime_type (file));
+ quri = g_shell_quote (uri);
+ command = g_strconcat("gnome-app-install --mime-type=",
+ qmimetype, " ", quri,
+ (char*)0 /* NB NULL is wrong */);
+ g_free (qmimetype);
+ g_free (quri);
+ g_free (qduri);
+
+ //eel_gnome_shell_execute_on_screen (command, screen);
+ gdk_spawn_command_line_on_screen (screen, command, NULL);
+ g_free (command);
+}

Probably best to check NULL for nautilus_file_info_get_mime_type () as it could, but very very rarely return NULL:
char *
nautilus_file_get_mime_type (NautilusFile *file)
{
 if (file != NULL) {
  g_return_val_if_fail (NAUTILUS_IS_FILE (file), NULL);
  if (file->details->mime_type != NULL) {
   return g_strdup (eel_ref_str_peek (file->details->mime_type));
  }
 }
 return g_strdup ("application/octet-stream");
}

(Note, nautilus_file_info_get_mime_type() just calls the interface function)

Changed in nautilus:
status: Unknown → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

do you have an easy example to trigger the bug?

Changed in nautilus:
importance: Unknown → Critical
status: Invalid → Unknown
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug has been get duplicates/comments for 7 years, assuming it's obsolete and closing, you should open a new report if you still get that issue with a current version

Changed in nautilus (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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