[webkit-dev] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher

souvik.datta at wipro.com souvik.datta at wipro.com
Thu Mar 15 09:15:37 PDT 2012


Please find the gdb trace:

Program received signal SIGSEGV, Segmentation fault.
0x0046b886 in _NPN_Invoke () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
(gdb) bt
#0  0x0046b886 in _NPN_Invoke () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#1  0x02a86fe0 in threadImplementation (msg=0x0) at wcfplugin.c:110
#2  0x0099585a in WebCore::PluginMainThreadScheduler::dispatchCallsForPlugin(_NPP*, WTF::Deque<WebCore::PluginMainThreadScheduler::Call, 0u> const&) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#3  0x00995cd1 in WebCore::PluginMainThreadScheduler::dispatchCalls() () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#4  0x00995d6d in WebCore::PluginMainThreadScheduler::mainThreadCallback(void*) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#5  0x01504f43 in WTF::dispatchFunctionsFromMainThread() () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libjavascriptcoregtk-3.0.so.0
#6  0x01504ba7 in WTF::timeoutFired(void*) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libjavascriptcoregtk-3.0.so.0
#7  0x026234dc in g_timeout_dispatch (source=0x81ed5b8, callback=0x46b860 <_NPN_Invoke>, user_data=0x0) at gmain.c:3907
#8  0x02622d15 in g_main_dispatch (context=0x80804a0) at gmain.c:2441
#9  g_main_context_dispatch (context=0x80804a0) at gmain.c:3011
#10 0x02626b20 in g_main_context_iterate (context=0x80804a0, block=<value optimized out>, dispatch=1, self=0x80516e0) at gmain.c:3089
#11 0x02626f4f in g_main_loop_run (loop=0x81f94c8) at gmain.c:3297
#12 0x01ce8e64 in gtk_dialog_run (dialog=0x81f40a8) at gtkdialog.c:1110
#13 0x002f5cf0 in webkit_web_view_script_dialog(_WebKitWebView*, _WebKitWebFrame*, char const*, WebKitScriptDialogType, char const*, char**) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#14 0x002f5f3f in webkit_web_view_real_script_alert(_WebKitWebView*, _WebKitWebFrame*, char const*) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#15 0x002ff36b in webkit_marshal_BOOLEAN__OBJECT_STRING () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#16 0x0257eea7 in g_type_class_meta_marshal (closure=0xbfffe2c4, return_value=0xbfffe2c4, n_param_values=3, param_values=0x81f40a8, invocation_hint=0xbfffe2b0, 
    marshal_data=0x200) at gclosure.c:885
#17 0x025805ea in g_closure_invoke (closure=0x80b5978, return_value=0xbfffe2c4, n_param_values=3, param_values=0x812c920, invocation_hint=0xbfffe2b0) at gclosure.c:774
#18 0x02597490 in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x80c0008, emission_return=0xbfffe41c, 
    instance_and_params=0x812c920) at gsignal.c:3310
#19 0x0259898b in g_signal_emit_valist (instance=0x80c0008, signal_id=170, detail=0, var_args=0xbfffe4e0 "\374\344\377\277(\346\377\277\b\345\377\277ڨ\212")
    at gsignal.c:3013
#20 0x02598d7a in g_signal_emit_by_name (instance=0x80c0008, detailed_signal=0x116199a "script-alert") at gsignal.c:3097
#21 0x002bfe8e in WebKit::ChromeClient::runJavaScriptAlert(WebCore::Frame*, WTF::String const&) ()
---Type <return> to continue, or q <return> to quit---
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#22 0x0087b693 in WebCore::Chrome::runJavaScriptAlert(WebCore::Frame*, WTF::String const&) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#23 0x0088c9d1 in WebCore::DOMWindow::alert(WTF::String const&) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#24 0x00dac0ea in WebCore::jsDOMWindowPrototypeFunctionAlert(JSC::ExecState*) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#25 0x02a82c09 in ?? ()
#26 0x013a5ba2 in JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libjavascriptcoregtk-3.0.so.0
#27 0x01455d86 in JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libjavascriptcoregtk-3.0.so.0
#28 0x003f8f5f in WebCore::JSMainThreadExecState::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#29 0x003f8508 in WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#30 0x0057c635 in WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector<WebCore::RegisteredEventListener, 1u>&) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#31 0x0057c78d in WebCore::EventTarget::fireEventListeners(WebCore::Event*) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#32 0x0058b572 in WebCore::Node::handleLocalEvents(WebCore::Event*) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#33 0x00576cbd in WebCore::EventDispatcher::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#34 0x00585ac0 in WebCore::MouseEventDispatchMediator::dispatchEvent(WebCore::EventDispatcher*) const ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#35 0x00576027 in WebCore::EventDispatcher::dispatchEvent(WebCore::Node*, WTF::PassRefPtr<WebCore::EventDispatchMediator>) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#36 0x0058d90a in WebCore::Node::dispatchMouseEvent(WebCore::PlatformMouseEvent const&, WTF::AtomicString const&, int, WebCore::Node*) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#37 0x008a16cf in WebCore::EventHandler::dispatchMouseEvent(WTF::AtomicString const&, WebCore::Node*, bool, int, WebCore::PlatformMouseEvent const&, bool) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#38 0x008a22c8 in WebCore::EventHandler::handleMouseReleaseEvent(WebCore::PlatformMouseEvent const&) ()
   from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
---Type <return> to continue, or q <return> to quit---
#39 0x002f57a8 in webkit_web_view_button_release_event(_GtkWidget*, _GdkEventButton*) () from /home/souvik/Webkit/Webkit/webkit-1.6.1/.libs/libwebkitgtk-3.0.so.0
#40 0x01d79194 in _gtk_marshal_BOOLEAN__BOXED (closure=0x805e958, return_value=0xb65b5a94, n_param_values=2, param_values=0xbfffedb4, invocation_hint=0xbfffef80, 
    marshal_data=0x2f5720) at gtkmarshalers.c:85
#41 0x0257eea7 in g_type_class_meta_marshal (closure=0x805e958, return_value=0xbfffef94, n_param_values=2, param_values=0x810d6a0, invocation_hint=0xbfffef80, 
    marshal_data=0xc4) at gclosure.c:885
#42 0x025805ea in g_closure_invoke (closure=0x805e958, return_value=0xbfffef94, n_param_values=2, param_values=0x810d6a0, invocation_hint=0xbfffef80) at gclosure.c:774
#43 0x02597490 in signal_emit_unlocked_R (node=<value optimized out>, detail=<value optimized out>, instance=0x80c0008, emission_return=0xbffff0ec, 
    instance_and_params=0x810d6a0) at gsignal.c:3310
#44 0x0259898b in g_signal_emit_valist (instance=0x80c0008, signal_id=29, detail=0, 
    var_args=0xbffff150 "|\361\377\277\030\243\005\b\324\311Y\002\n\323\353\001\364\257\377\001\b") at gsignal.c:3013
#45 0x02598f32 in g_signal_emit (instance=0x80c0008, signal_id=29, detail=0) at gsignal.c:3060
#46 0x01ebd50e in gtk_widget_event_internal (widget=0x80c0008, event=0x80c4458) at gtkwidget.c:6132
#47 0x01d72c59 in gtk_propagate_event (widget=0x80c0008, event=0x80c4458) at gtkmain.c:2614
#48 0x01d73d7f in gtk_main_do_event (event=0x80c4458) at gtkmain.c:1889
#49 0x020193ae in _gdk_event_emit (event=0x80c4458) at gdkevents.c:71
#50 0x020402f8 in gdk_event_source_dispatch (source=0x80816a8, callback=0, user_data=0x0) at gdkeventsource.c:360
#51 0x02622d15 in g_main_dispatch (context=0x80804a0) at gmain.c:2441
#52 g_main_context_dispatch (context=0x80804a0) at gmain.c:3011
#53 0x02626b20 in g_main_context_iterate (context=0x80804a0, block=<value optimized out>, dispatch=1, self=0x80516e0) at gmain.c:3089
#54 0x02626f4f in g_main_loop_run (loop=0x815b7b0) at gmain.c:3297
#55 0x01d7430d in gtk_main () at gtkmain.c:1362
#56 0x0804b016 in main ()
(gdb) 

Thanks,
Souvik
________________________________________
From: webkit-dev-bounces at lists.webkit.org [webkit-dev-bounces at lists.webkit.org] on behalf of Sergio Villar Senin [svillar at igalia.com]
Sent: Thursday, March 15, 2012 9:19 PM
To: webkit-dev at lists.webkit.org
Subject: Re: [webkit-dev] NPAPI plugin crashes while calling npnfuncs->invoke in GtkLauncher

En 15/03/12 08:13, souvik.datta at wipro.com escribiu:
> Hi,
>
> I am trying to load my NPAPI plugin in GtkLauncher ( built from source
> version-1.6.1  under Ubuntu 10.10). The plugin is used to communicate
> with a native shared library.  Although I am able to load the plugin (
> Got NP_Initialize and NP_GetEntryPoints calls on the console ) and make
> successful calls to my native shared library from Java Scripts (through
> my plugin), but when I am trying to call a java script function "from"
> my plugin using :
>
>     err = npnfuncs->invoke(npp_, console, id, args_temp,
>              sizeof(args_temp) / sizeof(args_temp[0]),
>              &voidResponse);
>
> I am observing a segmentation fault. This is always happenning.

Can you get a trace?

BR

_______________________________________________
webkit-dev mailing list
webkit-dev at lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com


More information about the webkit-dev mailing list