[Webkit-unassigned] [Bug 22067] [GTK] Sun Java plugin segfaults at PluginPackage::createPackage()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 5 18:51:35 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22067





------- Comment #9 from alp at nuanti.com  2008-11-05 18:51 PDT -------
(In reply to comment #7)
> (In reply to comment #6)
> > The backtrace suggests this crash may be related to the plugin code
> 
> You are totally right! The segfault is caused by the new java plugin
> (libnpjp2.so). After removing this one, everything seems to work quite stable.
> Actually, I have yet to see any crash... great!

Found the cause of the crash. It's due to the lack of null checking following
g_module_symbol() calls.

I've been trying to get the plugin working but I don't know what to make of it.
libnpjp2.so is unusual in that it:

 1) Doesn't provide the expected NP_GetValue function symbol
 2) Doesn't explicitly link to libnspr.so which it seems to use (working around
this with LD_PRELOAD=/usr/lib/libnspr4.so for testing)

I'm beginning to suspect the new Java plugin is tied more closely to Mozilla
internals than its predecessors and other plugins in which case the best I'll
be able to do is fix the crash. On the plus side, the crash fixes I'm cooking
up will make the plugin code more robust in general.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list