Open ntrrgc opened 1 month ago
this should only really happen when the process and the debugger run in different namespaces, so likely interference from the bwrap sandbox? (try forcing it off, there is an env var for it)
@q66 shouldn't it work regardless? I would expect attaching a debugger to be something that works by default.
Inside the SDK the sandbox disables the pid namespacing.
FWIW it works fine here.
@ntrrgc it probably should, but that's separate from what i said :) i'm just trying to find the cause of the error here
@q66 I just tried with WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1
and it found the symbols. So that's confirmed at least.
@ntrrgc the pid namespace is unshared when enableDebugPermissions()
returns false https://github.com/WebKit/WebKit/blob/b1ed27f4948073a31795dc90b845554fda214420/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp#L784
looking at that, it checks an env var: https://github.com/WebKit/WebKit/blob/b1ed27f4948073a31795dc90b845554fda214420/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp#L465
so next thing you can try is setting WEBKIT_ENABLE_DEBUG_PERMISSIONS_IN_SANDBOX=1
in the environment instead of a full disable
if that works, and if what Patrick says is correct, it would mean your configuration having that messed up for some reason (but i dunno enough about how the container sdk works to tell by myself)
The issue still happens with WEBKIT_ENABLE_DEBUG_PERMISSIONS_IN_SANDBOX=1
.
hm, maybe it's one of the other namespaces then? or some change in bwrap behavior? the only ones the launcher seems to use are user, pid, ipc, uts, and network... doesn't sound like any of the others should be relevant
would need somebody to collect a bunch more information i guess...
In the past this has worked for me, but today I found this in my laptop while trying to attach gdb. Both gdb and WebKitWebProcess are running in the same container: