phantomjs crashes on startup when Qt4 libraries are installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
phantomjs (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
phantomjs crashes right on startup:
sheim@ganymede:~$ /usr/lib/
PhantomJS has crashed. Please file a bug report at https:/
Segmentation fault (core dumped)
This is because the linker will use the Qt libraries from libqtcore4:amd64, libqt4-
sheim@ganymede:~$ ldd /usr/lib/
libQtWebKit.so.4 => /usr/lib/
libQtGui.so.4 => /usr/lib/
libQtNetwork.so.4 => /usr/lib/
libQtCore.so.4 => /usr/lib/
The phantomjs package comes with own versions of these libraries:
sheim@ganymede:~$ dpkg -L phantomjs | grep 'Qt.*so.4$'
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
Using LD_LIBRARY_PATH, I can get phantomjs to run even if the regular Qt libraries are installed:
sheim@ganymede:~$ LD_LIBRARY_
phantomjs> phantom.exit();
sheim@ganymede:~$
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: phantomjs 1.6.0-5ubuntu2
ProcVersionSign
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_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: phantomjs
UpgradeStatus: Upgraded to quantal on 2013-01-20 (2 days ago)
Status changed to 'Confirmed' because the bug affects multiple users.