Hi everyone who encountered this bug on Debian,

I have performed some shallow debugging after I encountered these dwb crashes 
myself (Debian stretch x86-64, webkitgtk 2.4.9-3, dwb built from the most 
recent git snapshot).

At the first glance, the culprit is dwb (namely adblock.c), not webkitgtk. As a 
temporary solution, you may disable adblocker by setting the option "adblocker" 
to false (or just :set adblocker false) - that should fix the constant crashes 
at every page. (Of course it's better to run dwb on a clean session or use -R 
option from the beginning, otherwise dwb will try to restore the session and 
the crash will hit you before you ever have a chance to disable the adblocker).

The segfault originates from the function "adblock_apply_element_hider" in 
adblock.c: due to some reason, one of the elements of the list 
VIEW(gl)->status->styles (a local variable) is a corrupted pointer; when the 
function attempts to apply WEBKIT_DOM_NODE typecast on it, this leads to a 
segfault from a GObject typecasting internal. No idea yet who is responsible 
for corrupting the pointers (adblocker or maybe webkit); I'll try to examine 
the logic of adblock.c a bit later.

By the way, dwb source distribution has a primitive backtrace script, 
tools/backtrace.sh; you will probably want to attach its output to the bug 
report.


Thanks,
Oleg

Reply via email to