pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37423: LP64 problem in x11/kdebase3's nspluginviewer

>Number:         37423
>Category:       pkg
>Synopsis:       LP64 problem in x11/kdebase3's nspluginviewer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 23 18:55:00 +0000 2007
>Originator:     Steve Woodford
>Release:        NetBSD 4.99.36
System: NetBSD oor-wullie 4.99.36 NetBSD 4.99.36 (Q35) #0: Thu Nov 22 16:53:57 
GMT 2007 steve@horace:/export/netbsd/local/netbsd/sys/arch/amd64/compile/Q35 
Architecture: x86_64
Machine: amd64
There is an LP64 bug in x11/kdebase3's nspluginviewer on amd64 (and no
doubt all other LP64 platforms) which causes a SEGV on startup.

The problem is caused by truncation of a 64-bit long into an int variable.
Install KDE3 and nspluginwrapper. Access a website with Flash content.
Observe KDE crash popup.
The following patch to x11/kdebase3 fixes the problem (might be a good
idea to forward it upstream too):

--- nsplugins/viewer/qxteventloop.cpp.orig      2007-05-14 08:55:42.000000000 
+++ nsplugins/viewer/qxteventloop.cpp   2007-11-23 15:42:11.000000000 +0000
@@ -72,7 +72,7 @@
     QIntDict<QSocketNotifier> socknotDict;
     bool activate_timers;
-    int timerid;
+    XtIntervalId timerid;
     // arguments for Xt display initialization
     const char* applicationClass;

 KDE3's nspluginviewer will crash on startup on amd64

Home | Main Index | Thread Index | Old Index