LoadPlugin: failed to initialize shared library (it's a 32bit library on a 64bit system) elvis or htop

Bug #516483 reported by richard nerwein
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elvis (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: elvis

1) lsb_relase -rd (please have a look at the file permissions of:/usr/lib/mozilla/plugins/libflashplayer.so
    and i am not a catechumen about unix system and there for a writeable shared library is detected scuffing
    for a bad boy --> ! security)
   Description: Ubuntu 9.10
   Release: 9.10
2) i will give you to packeges ( elvis-toos and htop - the only stuff i installed yesterday)
    apt-cache policy elvis-tools
   elvis-tools:
   Installiert: 2.2.0-11ubuntu1
   Kandidat: 2.2.0-11ubuntu1
   Versions-Tabelle:
   *** 2.2.0-11ubuntu1 0
        500 http://de.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

   apt-cache policy htop
   htop:
  Installiert: 0.8.3-1ubuntu1
  Kandidat: 0.8.3-1ubuntu1
  Versions-Tabelle:
   *** 0.8.3-1ubuntu1 0
        500 http://de.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status
3) want to use htop for system monitoring and ctags (coming with elvis-tools) for development
4) the tools works ok but the at the next login i got:
    the panel get problems when loading
Das Panel ist beim Laden von
                               find a problem
»OAFIID:GNOME_IndicatorApplet« auf ein Problem gestoßen.

do you want to delete the aplet in your configuration
Wollen Sie das Applet aus Ihrer Konfiguration löschen?

        nicht löschen löschen

            not delete delete

p.s. i don't delete it !
in one of thes packes comes a wrong library wich dosen't fit to my system achitecture.
found in .xsession-errors
 found in: ".xsession-errors"
 ** (gnome-panel:2287): WARNING **: panel-applet-frame.c:1273: failed to
 load applet OAFIID:GNOME_IndicatorApplet:
 System exception: IDL:omg.org/CORBA/COMM_FAILURE:1.0
 ** (update-notifier:2322): DEBUG: --security-updates-unattended: 0

 LoadPlugin: failed to initialize shared library
 /usr/lib/mozilla/plugins/libflashplayer.so
 [/usr/lib/mozilla/plugins/libflashplayer.so: wrong ELF class: ELFCLASS32]

and had a look there:

   <======================== strange to very strange ============================>
 and now have a look at this (permission/owner/group of the directory plugins
 and permissions/owner/group of the library ?????????????

 richi@tschang:/usr/lib/mozilla/plugins 07:52-> ls -ld ../plugins
 drwxr-xr-x 2 root root 4096 2010-01-04 12:02 ../plugins

 richi@tschang:/usr/lib/mozilla/plugins 07:57-> ls -l libflashplayer.so
 -rwxr-xr-x 1 richi richi 10290936 2009-10-28 04:26 libflashplayer.so

 richi@tschang:/usr/lib/mozilla/plugins 07:58-> file libflashplayer.so
               libflashplayer.so: ELF 32-bit LSB shared object, Intel 80386,
               version 1 (SYSV), dynamically linked, stripped

 richi@tschang:/usr/lib/mozilla/plugins 07:59-> ls -litra
 .....
 .....
 788680 lrwxrwxrwx 1 root root 60 2010-01-04 12:02
                    npwrapper.libflashplayer.so ->
                   /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so

---> what i did now is:
cd /usr/lib/nspluginwrapper/plugins
richi@tschang:/usr/lib/nspluginwrapper/plugins 08:04-> ls -l
 -rwxr-xr-x 1 root root 117960 2010-01-04 12:02 npwrapper.libflashplayer.so

 richi@tschang:/usr/lib/nspluginwrapper/plugins 08:05->file npwrapper.libflashplayer.so
 npwrapper.libflashplayer.so: ELF 64-bit LSB shared object, x86-64,
 version 1 (SYSV), dynamically linked, stripped
=======> now i moved libflashplayer.so (32 bit) to libflashplayer.so.sav
=======> and copy /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so
=======> to /usr/lib/mozilla/plugins/libflashplayer.so

and now i get: Feb 3 10:23:26 tschang pulseaudio[4375]: pid.c:
              Stale PID file, overwriting.
              in /var/log/messages (but this is the only thing
              - see no side effekts at the
              moment - even the lib is very small. where can i get the
              orginal libflashplayer.so ? please tell me !!!!!!!!!!!!!! )

my question is can this behavior come from setfsuid and any aplication of these packets is
using this system call ? ( this is the only think what i can guess)
    man setfsuid
    The system call setfsuid() sets the user ID that the Linux kernel uses to check for all
    accesses to the file system. Normally, the value of fsuid will shadow the value of the
    effective user ID. In fact, whenever the effective user ID is changed, fsuid will also be
    changed to the new value of the effective user ID.
    Explicit calls to setfsuid() and setfsgid(2) are usually only used by programs such as the
    Linux NFS server that need to change what user and group ID is used for file access without
    a corresponding change in the real and effective user and group IDs. A change in the normal
    user IDs for a program such as the NFS server is a security hole that can expose it to
    unwanted signals. (But see below.)

    setfsuid() will only succeed if the caller is the superuser or if fsuid matches either the
    real user ID, effective user ID, saved set-user-ID, or the current value of fsuid.
    :-) ???

  have a nice day
  ciao
     richi

ProblemType: Bug
Architecture: amd64
Date: Wed Feb 3 10:56:31 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: elvis-tools 2.2.0-11ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-16.52-generic
SourcePackage: elvis
Uname: Linux 2.6.31-16-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:4393): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:4393): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:4426): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:4458): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:4423): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 24

Revision history for this message
richard nerwein (rnerwein) wrote :
Revision history for this message
richard nerwein (rnerwein) wrote :

hello
now i am totaly confused. i just had another look to my libraries and recognized that the modification date of the directory and the 32bit library
drwxr-xr-x 2 root root 4096 2010-01-04 12:02 ../plugins
788680 lrwxrwxrwx 1 root root 60 2010-01-04 12:02
                    npwrapper.libflashplayer.so ->
                   /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so
and this linked file has the date:
-rwxr-xr-x 1 root root 117960 2010-01-04 12:02 npwrapper.libflashplayer.so

and here the differents about the updates i made between the 4.1.2010 and 10.1.2010
> libaudio2 install
> libntfs10 install
> libqt4-network install
> libqtcore4 install
> libqtgui4 install
> libufs2 install
> nspluginwrapper install
> ntfsprogs install
> p7zip-full install
> ufsutils install
> unetbootin install
> unetbootin-translations install

may be will help you too

security vulnerability: yes → no
visibility: private → public
tags: added: karmic
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.