empcommand segfaults at start

Bug #807730 reported by Ronald McCollam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
empcommand (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Starting empcommand opens a window and immediately segfaults. This happens in both fullscreen and windowed modes.

fader@simon:~$ empcommand -w -r 800x600
[11-07-08 16:42:22.204] APP: Setting resolution to: [800, 600]
/usr/share/games/empcommand/engine.pyc
/usr/share/games/empcommand/fonts
Segmentation fault

I attempted to export LD_PRELOAD as specified at https://www.libavg.de/wiki/LinuxInstallationIssues but this did not work:
fader@simon:~$ LD_PRELOAD=/usr/lib/i386-linux-gnu/4.5/libstdc++.so empcommand
ERROR: ld.so: object '/usr/lib/i386-linux-gnu/4.5/libstdc++.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/i386-linux-gnu/4.5/libstdc++.so' from LD_PRELOAD cannot be preloaded: ignored.
[11-07-08 16:44:56.330] APP: Setting resolution to: (1280,800)
/usr/share/games/empcommand/engine.pyc
/usr/share/games/empcommand/fonts
Segmentation fault

I have successfully run this package on a different machine (with nvidia graphics rather than ATI) and can run ubuntu-bug to grab the relevant data from it if that would be helpful.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: empcommand 0.3+svn5740-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: fglrx wl
Architecture: i386
Date: Fri Jul 8 16:40:21 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: empcommand
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ronald McCollam (fader) wrote :
Revision history for this message
OXullo Intersecans (oxullo) wrote :

Dear Ronald,
thanks for your report.

The LD_PRELOAD workaround shouldn't be needed anymore, after the fix released for mesa package ( https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219 ). In particular, libstdc++.so.6 is preloaded anyway from the top level libavg python package. In addition, your attempt to preload fails, because the path to libstdc++.so is not correct.

This bug is probably related to libavg more than empcommand itself, by the way, can you please:

1. run a gdb session and dump the backtrace:

$ gdb python
(gdb) run /usr/games/empcommand
<wait for the program to crash>
(gdb) bt

2. run this minimal snippet and see if you get a crash as well:

$ python
> import libavg
> libavg.AVGApp.start(resolution=(640,480))

(in case you don't get the segv, you'll see a black window. Attempt to close the window (which won't close) and CTRL-D on the shell).

Thanks!

Revision history for this message
Ronald McCollam (fader) wrote :

gdb output:

fader@simon:~$ gdb python
GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(gdb) run /usr/games/empcommand -w -r 800x600
Starting program: /usr/bin/python /usr/games/empcommand -w -r 800x600
[Thread debugging using libthread_db enabled]
[11-07-11 09:11:00.722] APP: Setting resolution to: [800, 600]
/usr/share/games/empcommand/engine.pyc
/usr/share/games/empcommand/fonts
[New Thread 0x5067b70 (LWP 2040)]
[Thread 0x5067b70 (LWP 2040) exited]
[New Thread 0x5067b70 (LWP 2041)]

Program received signal SIGSEGV, Segmentation fault.
0x02850625 in xcb_writev () from /usr/lib/i386-linux-gnu/libxcb.so.1
(gdb)

Revision history for this message
Ronald McCollam (fader) wrote :

fader@simon:~$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libavg
>>> libavg.AVGApp.start(resolution=(640,480))
Segmentation fault
fader@simon:~$

Revision history for this message
Ronald McCollam (fader) wrote :

Just for reference, libxcb1 is the same version on both the working and nonworking system.

fader@simon:~$ dpkg-query -W libxcb1
libxcb1 1.7-2ubuntu2

Revision history for this message
OXullo Intersecans (oxullo) wrote :

Dear Ronald, thanks again for your feedback.
Ok, it's not an empcommand bug. Would you please file a bug in libavg package ( https://bugs.launchpad.net/ubuntu/+source/libavg/ ), restating your configuration (please add also some hardware info regarding your graphics adapter)?

It will be also useful to have a backtrace:
once you're here:

Program received signal SIGSEGV, Segmentation fault.
0x02850625 in xcb_writev () from /usr/lib/i386-linux-gnu/libxcb.so.1
(gdb)

just write:

bt<enter>

Thanks!

Changed in empcommand (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.