gnome-web-photo crashed with SIGSEGV in strlen()

Bug #251597 reported by Jorge Hernández
6
Affects Status Importance Assigned to Milestone
xulrunner (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: gnome-web-photo

When called from a php script running in Apache (though I've had the same results using Ruby and/or lighttpd):

<?php
        exec("xvfb-run -e error.log -s \"-screen 0 1024x768x24\" -w 0 gnome-web-photo www.google.com google.jpeg");
?>

Ubuntu: 8.04.1
gnome-web-photo: 0.3-0ubuntu2
Apache: 2.2.8-1ubuntu0.3
PHP: 5.2.4-2ubuntu5.3

The following does not SIGSEGV:

root@jd:/var/www# sudo -u \#33 php5 photo.php

ProblemType: Crash
Architecture: i386
CrashCounter: 1
Date: Thu Jul 24 13:44:29 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gnome-web-photo
NonfreeKernelModules: nvidia
Package: gnome-web-photo 0.3-0ubuntu2
PackageArchitecture: i386
ProcCmdline: gnome-web-photo www.google.com google.jpeg
ProcEnviron:
 PATH=/usr/local/bin:/usr/bin:/bin
 LANG=C
Signal: 11
SourcePackage: gnome-web-photo
StacktraceTop:
 strlen () from /lib/tls/i686/cmov/libc.so.6
 ?? () from /usr/lib/libxul.so.0d
 ?? () from /usr/lib/libxul.so.0d
 ?? () from /usr/lib/libxul.so.0d
 ?? () from /usr/lib/libxul.so.0d
Title: gnome-web-photo crashed with SIGSEGV in strlen()
Uname: Linux 2.6.24-19-generic i686
UserGroups:

Tags: apport-crash
Revision history for this message
Jorge Hernández (jd-hernandez-gmail) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:strlen () from /lib/tls/i686/cmov/libc.so.6
nsAppFileLocationProvider::GetProductDirectory (this=0x805c790, aLocalFile=0xbfad4cb8,
nsAppFileLocationProvider::GetFile (this=0x805c790, prop=0xb7352d55 "UserPlugins",
nsPathsDirectoryEnumerator::HasMoreElements (this=0x8087f68, result=0xbfad4d60)
AppendFromDirServiceList (codename=0xb7352d97 "APluginsDL", aPath=0x80b32e8)

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in gnome-web-photo:
importance: Undecided → Medium
description: updated
description: updated
Revision history for this message
Jorge Hernández (jd-hernandez-gmail) wrote :

I managed to get it to run. The SIGSEGV stems from the fact that Apache runs processes with an empty $HOME and at no point in time does xulrunner check that $HOME is non-empty.

Revision history for this message
Matt Austin (mattaustin) wrote :

I have also encountered this problem, when trying to run gnome-web-photo, using xvfb, python, and apache2 (Ubuntu 8.04). Are there any know fixes or workarounds for this bug?

Revision history for this message
loke (developer-loke) wrote :

The problem happens because of its integration with Gnome. You would need to provide environment variable for home to /var/www. and create .Gnome2 and .Gnome2_private folders there which should be writable by apache. After that the problem should disappear.

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in xulrunner (Ubuntu):
status: New → 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.