[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 150241] New: nspluginviewer crashes on amd64 (with explanation
From:       Leon Bottou <leon () bottou ! org>
Date:       2007-09-26 21:20:18
Message-ID: 20070926232016.150241.leon () bottou ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=150241         
           Summary: nspluginviewer crashes on amd64 (with explanation of the
                    cause)
           Product: konqueror
           Version: unspecified
          Platform: Debian stable
        OS/Version: Linux
            Status: NEW
          Severity: crash
          Priority: NOR
         Component: nspluginviewer
        AssignedTo: staikos kde org
        ReportedBy: leon bottou org


Version:           debian 4:3.5.5a.dfsg.1-6etch1 (using KDE KDE 3.5.5)
Installed from:    Debian stable Packages
Compiler:           AMD64
OS:                Linux

On April 9th, someone changed the netscape plugin sdk file npapi.h
was changed to the mozilla ones (revision 665076) without
reporting the changes necessary to make it work on amd64.

In particular the line 190:   
#if defined(__alpha) || defined(_AIX) || defined(__x86_64__) || defined(__LP64__)
became
#if defined(__alpha)
which leads to defining type uint32 as a 64 bit integer.
See http://websvn.kde.org/branches/KDE/3.5/kdebase/nsplugins/sdk/npapi.h?r1=651942&r2=665076

As a result, nspluginviewer calls the plugins with
incorrect data structures on all 64 bit platforms other than alpha.
Most of them crash in NPP_SetWindow without displaying anything.


Solution #1:
Make sure all changes to npapi.h prior to revision 665076
are copied into the newer mozilla version.

Solution #2:
Do not use ancient version of npapi.h.
Modern versions of npapi.h contain the right stuff.
See http://lxr.mozilla.org/seamonkey/source/modules/plugin/base/public/npapi.h
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic