Attempting to upgrade nspluginwrapper via apt-get fails with "error exit status 139" and a Segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nspluginwrapper (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nspluginwrapper
Attempting a "sudo apt-get -f" on my system results in the following :
"
jdb2@aleph0:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjna-java libqzeitgeist0 junit4 libgnome2-vfs-perl esound-clients g++-4.4 libgnomevfs2-extra javahelp2
firefox-branding libsexy2 libx264-98 libfelix-
libiptcdata0 libgnome2-
libswing-
libnb-
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nspluginwrapper (1.2.2-0ubuntu9) ...
plugin dirs:
Auto-update plugins from /usr/lib/
Looking for plugins in /usr/lib/
Segmentation fault
dpkg: error processing nspluginwrapper (--configure):
subprocess installed post-installation script returned error exit status 139
No apport report written because the error message indicates its a followup error from a previous failure.
acroread depends on nspluginwrapper; however:
Package nspluginwrapper is not configured yet.
dpkg: error processing acroread (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nspluginwrapper
nspluginwrappe
Package nspluginwrapper is not configured yet.
dpkg: error processing nspluginwrapper
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
nspluginwrapper
acroread
nspluginwrappe
E: Sub-process /usr/bin/dpkg returned an error code (1)
"
I've traced the problem to a call to the installed nspluginwrapper in the postinst script, specifically "nspluginwrapper -a -v -u" which generates the segfault. Debugging output from GDB and catchsegv are attached.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nspluginwrapper 1.2.2-0ubuntu9
ProcVersionSign
Uname: Linux 2.6.38-9-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue May 10 12:56:21 2011
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
LANGUAGE=
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: nspluginwrapper
UpgradeStatus: Upgraded to natty on 2011-05-09 (0 days ago)
Here is a workaround :
Get the source to nspluginwrapper =1.2.2- 0ubuntu9 :
mkdir ~/tmp
cd ~/tmp
apt-get source nspluginwrapper
Untar the source and apply the patches :
tar xvzf nspluginwrapper _1.2.2. orig.tar. gz _1.2.2- 0ubuntu9. diff.gz | patch -p1
zcat nspluginwrapper
Compile the source with debugging information -- this seems to "fix" the crash for some reason :
cd nspluginwrapper -1.2.2
export CFLAGS="-g" ; export CXXFLAGS="-g"
./configure --disable-strip
make -j [NUMBER OF PROCESSORS OR CORES YOU HAVE]
Back up your current nspluginwrapper install :
sudo mv /usr/bin/ nspluginwrapper /usr/bin/ nspluginwrapper .bak
Create a symlink to the newly compiled nspluginwrapper :
sudo ln -s /home/[YOUR USER NAME]/tmp/ nspluginwrapper -1.2.2/ npconfig /usr/bin/ nspluginwrapper
Now run apt-get install -f :
sudo apt-get install -f
You should get output similar to this ( depending on what packages you have attempted to install ) :
jdb2@aleph0: ~/tmp/nspluginw rapper- 1.2.2$ sudo apt-get install -f framework- java libexempi3 libmatroska2 libdbusmenu-gtk1 canvas- perl libwildmidi0 libfelix-main-java openoffice. org-l10n- common layout- java visualvm libsoundtouch1c2 libgnome2-perl libhamcrest-java libequinox- osgi-java 2-java libstdc++6-4.4-dev mozilla/ plugins mozilla/ plugins mozilla/ plugins mozilla/ plugins firefox/ plugins firefox/ plugins firefox/ plugins firefox/ plugins mozilla/ plugins mozilla/ plugins Reader9/ Browser/ intellinux/ nppdf.so Reader9/ Browser/ intellinux/ nppdf.so -dbgsym (1.2.2-0ubuntu9) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libjna-java libqzeitgeist0 junit4 libgnome2-vfs-perl esound-clients g++-4.4 libgnomevfs2-extra javahelp2
firefox-branding libsexy2 libx264-98 libfelix-
libiptcdata0 libgnome2-
libswing-
libebml2 libnb-platform1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nspluginwrapper (1.2.2-0ubuntu9) ...
plugin dirs:
Auto-update plugins from /usr/lib/
Looking for plugins in /usr/lib/
Auto-update plugins from /usr/lib64/
Looking for plugins in /usr/lib64/
Auto-update plugins from /usr/lib/
Looking for plugins in /usr/lib/
Auto-update plugins from /usr/lib64/
Looking for plugins in /usr/lib64/
Auto-update plugins from /root/.
Looking for plugins in /root/.
Setting up acroread (9.4.2-0natty1) ...
nspluginwrapper: no appropriate viewer found for /opt/Adobe/
nspluginwrapper: no appropriate viewer found for /opt/Adobe/
Setting up nspluginwrapper
Worked like a charm for me.