[dev] [surf] segfault at web inspector

From: Reimundo Heluani <rheluani_AT_gmail.com>
Date: Sun, 14 Aug 2016 13:23:06 -0300

Dear all, first of all congratulations and thank you for surf! it is the best
browser I have come around in years. I am getting a segfault when running
surf-0.7 with the web inspector open trying to debug a page with a java script
. Attached is the JRE error log. I can get a meaningful core dump but those
are large to attach in an e-mail. The segfault happens either when stepping
into or stepping over.

Steps to reproduce

1) surf https://www2.bancobrasil.com.br/aapf/login.jsp
2) open the web inspector (CTRL+SHIFT+o)
3) reload the page with the breakpoints enabled
4) step into

Actual result: SIGSEGV
Expected result: continue debugging the program.

The backtrace is #0 0x00007ffff2c7acaf in
Inspector::InjectedScript::wrapCallFrames(Deprecated::ScriptValue const&) ()
from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#1 0x00007ffff2c9de27 in Inspector::InspectorDebuggerAgent::currentCallFrames() ()
  from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#2 0x00007ffff2c9df1d in Inspector::InspectorDebuggerAgent::didPause(JSC::ExecState*, Deprecated::ScriptValue const&, Deprecated::ScriptValue const&) ()
  from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#3 0x00007ffff2c92a3f in Inspector::ScriptDebugServer::dispatchDidPause(Inspector::ScriptDebugListener*) () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#4 0x00007ffff2c93feb in Inspector::ScriptDebugServer::dispatchFunctionToListeners(WTF::HashSet<Inspector::ScriptDebugListener*, WTF::PtrHash<Inspector::ScriptDebugListener*>,
WTF::HashTraits<Inspector::ScriptDebugListener*> > const&, void (Inspector::ScriptDebugServer::*)(Inspector::ScriptDebugListener*)) ()
  from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#5 0x00007ffff2c94173 in Inspector::ScriptDebugServer::dispatchFunctionToListeners(void (Inspector::ScriptDebugServer::*)(Inspector::ScriptDebugListener*), JSC::JSGlobalObject*) () from
/usr/lib64/libjavascriptcoregtk-1.0.so.0
#6 0x00007ffff2c9419d in Inspector::ScriptDebugServer::handlePause(JSC::Debugger::ReasonForPause, JSC::JSGlobalObject*) () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#7 0x00007ffff2c744ac in JSC::Debugger::pauseIfNeeded(JSC::ExecState*) ()
  from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#8 0x00007ffff2c745ec in JSC::Debugger::updateCallFrameAndPauseIfNeeded(JSC::ExecState*) () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#9 0x00007ffff2c74710 in JSC::Debugger::returnEvent(JSC::ExecState*) ()
  from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#10 0x00007ffff2ca5501 in JSC::Interpreter::unwind(JSC::ExecState*&, JSC::JSValue&) ()
  from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#11 0x00007ffff2ccf50f in JSC::genericUnwind(JSC::VM*, JSC::ExecState*, JSC::JSValue)
   () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#12 0x00007ffff2ce7808 in ?? () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#13 0x00007fffa60ea12a in ?? ()
#14 0x00007fff5de73240 in ?? ()
#15 0x00007fff5e18c800 in ?? ()
#16 0x00007fff9c16ef70 in ?? ()
#17 0x00007fff5e18c800 in ?? ()
#18 0x00007fff5e18c808 in ?? ()
#19 0x00007fffe615d2d0 in ?? ()
#20 0x00007fffe6153000 in ?? ()
#21 0x00007ffff2cc46c9 in JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*, JSC::Register*) () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#22 0x00007ffff2caa366 in JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
Value, JSC::JSValue*) () from /usr/lib64/libjavascriptcoregtk-1.0.so.0
#24 0x00007ffff5cfc800 in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#25 0x00007ffff5cfcad3 in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#26 0x00007ffff5eb76a4 in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#27 0x00007ffff607c9eb in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#28 0x00007ffff607cdad in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#29 0x00007ffff607d11f in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#30 0x00007ffff606b24a in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#31 0x00007ffff61acf00 in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#32 0x00007ffff61ada19 in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#33 0x00007ffff619d7dd in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#34 0x00007ffff620f80a in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#35 0x00007ffff69f29b5 in ?? () from /usr/lib64/libwebkitgtk-1.0.so.0
#36 0x00007ffff3552733 in ?? () from /usr/lib64/libgio-2.0.so.0
#37 0x00007ffff3552dde in ?? () from /usr/lib64/libgio-2.0.so.0
#38 0x00007ffff38bb0fe in ?? () from /usr/lib64/libsoup-2.4.so.1
#39 0x00007ffff3552733 in ?? () from /usr/lib64/libgio-2.0.so.0
#40 0x00007ffff3552dde in ?? () from /usr/lib64/libgio-2.0.so.0
#41 0x00007ffff38bfdd2 in ?? () from /usr/lib64/libsoup-2.4.so.1
#42 0x00007ffff38c4c0d in ?? () from /usr/lib64/libsoup-2.4.so.1
#43 0x00007ffff38c5a52 in ?? () from /usr/lib64/libsoup-2.4.so.1
#44 0x00007ffff2678bbd in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#45 0x00007ffff2678f90 in ?? () from /usr/lib64/libglib-2.0.so.0
#46 0x00007ffff26792b2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#47 0x00007ffff51ca007 in gtk_main () from /usr/lib64/libgtk-x11-2.0.so.0
#48 0x0000000000409490 in ?? ()
#49 0x00007ffff2096620 in __libc_start_main () from /lib64/libc.so.6
#50 0x0000000000404a89 in ?? ()


Incidentally, I am trying to debug what happens in that particular webpage
cause I'd like to understand why is it that I cannot access my bank. I
understand that this may be an issue with my bank java-based security module,
but the segfault above is preventing me from debugging this issue. I can
access my bank from firefox but not from any webkit-based browser.

When running the webpage listed in 1) above, without the web-inspector, the
page just displays a gif saying to wait and it hangs there. I have already
whitelisted these domains to run java applets in the java console.

Any help in any of these two issues will be appreciated.

Best,

R.





Received on Sun Aug 14 2016 - 18:23:06 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 14 2016 - 18:24:16 CEST