Open taobert opened 2 years ago
On Sat, Oct 01, 2022 at 08:16:14PM -0700, taobert wrote:
I'd appreciate it if this could be independently confirmed @.***?), so that i can rule out it just being me having a broken install.
I've just tried the git HEAD on bullseye, and all is fine. It's a lot more convenient to test on sid when I'm home, so bear with me on that.
so assuming that the
page_id
is correct, perhapsglobalconf.webviews
is getting b0rked somehow,
Yes, that would be my guess, too. Since things appear to be fine on bullseye, I would guess that either changes in webkitgtk (shudder) or in glib (shudder, too, as that may be a subtle -- as in: concurreny -- problem then) are to be blamed. Ouch.
- if(NULL == w || NULL == w->info) {
- error("webview_get_endpoint called with bad widget\n");
- return 0;
- }
Uhhh... I'll need to be really desperate to even consider this :-)
On Sat, Oct 01, 2022 at 08:16:14PM -0700, taobert wrote:
I'd appreciate it if this could be independently confirmed @.***?),
Running in a sid podman, I interestingly get a "web process crashed" right on startup (reproducibly); this goes along with a note about 'BadShmSeg (invalid shared segment parameter)' on the console, so I'm going to believe this is related to the somewhat crazy setup through the podman. After a "Reload page", things are just fine, so... I'll not delve into this unless it actually hurts a use case anyone really cares about.
That aside, archlinux.org renders without a problem. I hence suspect there is some other ingredient to your segfault. For the record, my test is on i386, but these days that tends to uncover rather than hide bugs.
Thankyou. I'll try to figure out what i've got wrong then.
Presis: On current Debian Sid, with current develop (luakit 2.3.1-29-g6df6f982), i'm seeing a segmentation fault if i go to Arch's download page.
I'd appreciate it if this could be independently confirmed (@msdemlei?), so that i can rule out it just being me having a broken install.
Current Behavior: The gdb backtrace is:
Note that
w
passed intowebview_get_endpoint
is NULL.webview_get_endpoint
immediately dereferences this, causing the crash.Discussion: The NULL
w
is returned fromwebview_get_by_id
called with a plausible lookingpage_id
, but that's as far as i've got.webview_get_by_id
is quite brief:so assuming that the
page_id
is correct, perhapsglobalconf.webviews
is getting b0rked somehow, or perhaps the behaviour ofg_ptr_array_index
,webkit_web_view_get_page_id
orWEBKIT_WEB_VIEW
have changed.It was not happening on a separate install of sid until i ran
apt upgrade
, now it does, so my supposition is that this is a change in a library rather than luakit. This is further supported by luakit 2.2 showing the same behaviour.Workaround: For now, the patch:
stops the crash, but can also stop the page loading, so is not really a viable fix, but may be a workable short term stop-gap.