phantomjs crashes on startup when Qt4 libraries are installed

Bug #1103424 reported by Stefan Heim
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
phantomjs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

phantomjs crashes right on startup:

sheim@ganymede:~$ /usr/lib/phantomjs/phantomjs
PhantomJS has crashed. Please file a bug report at https://code.google.com/p/phantomjs/issues/entry and attach the crash dump file: /tmp/3df6c012-5306-c515-1c955f0d-358d07ce.dmp
Segmentation fault (core dumped)

This is because the linker will use the Qt libraries from libqtcore4:amd64, libqt4-network:amd64, libqtgui4:amd64 and libqtwebkit4:amd64:

sheim@ganymede:~$ ldd /usr/lib/phantomjs/phantomjs | grep Qt
 libQtWebKit.so.4 => /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4 (0x00007f68a8f60000)
 libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f68a82b3000)
 libQtNetwork.so.4 => /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4 (0x00007f68a7f74000)
 libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f68a7aa3000)

The phantomjs package comes with own versions of these libraries:

sheim@ganymede:~$ dpkg -L phantomjs | grep 'Qt.*so.4$'
/usr/lib/phantomjs/libQtCore.so.4
/usr/lib/phantomjs/libQtXml.so.4
/usr/lib/phantomjs/libQtWebKit.so.4
/usr/lib/phantomjs/libQtGui.so.4
/usr/lib/phantomjs/libQtNetwork.so.4

Using LD_LIBRARY_PATH, I can get phantomjs to run even if the regular Qt libraries are installed:

sheim@ganymede:~$ LD_LIBRARY_PATH=/usr/lib/phantomjs /usr/lib/phantomjs/phantomjs
phantomjs> phantom.exit();
sheim@ganymede:~$

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: phantomjs 1.6.0-5ubuntu2
ProcVersionSignature: Ubuntu 3.5.0-22.34-generic 3.5.7.2
Uname: Linux 3.5.0-22-generic x86_64
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Wed Jan 23 11:39:53 2013
InstallationDate: Installed on 2012-06-15 (221 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: phantomjs
UpgradeStatus: Upgraded to quantal on 2013-01-20 (2 days ago)

Revision history for this message
Stefan Heim (stefanheim01) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

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