Skip to content

gdb failing to obtain symbols when attaching #61

@ntrrgc

Description

@ntrrgc

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:

$ gdb
(gdb) attach 361837
Attaching to program: /host/home/ntrrgc/Apps/webkit/WebKitBuild/GTK/Debug/bin/WebKitWebProcess, process 361837
[New LWP 423389]
[New LWP 423367]
...
Error while mapping shared library sections:
Could not open `target:/host/home/ntrrgc/Apps/webkit/WebKitBuild/GTK/Debug/lib/libwebkitgtk-6.0.so.4' as an executable file: Operation not permitted
Error while mapping shared library sections:
Could not open `target:/lib/x86_64-linux-gnu/libepoxy.so.0' as an executable file: Operation not permitted
Error while mapping shared library sections:
Could not open `target:/lib/x86_64-linux-gnu/libfontconfig.so.1' as an executable file: Operation not permitted
(... tons of similar errors ...)
(gdb) bt
#0  0x00007fbc3652725d in ?? ()
#1  0x00007fbc36b6d40d in ?? ()
#2  0x0000000000020000 in ?? ()
#3  0x0000000000000001 in ?? ()
#4  0x00007fbc35f2d3e0 in ?? ()
#5  0x0000000000000001 in ?? ()
#6  0x00007fbc35f6cc70 in ?? ()
#7  0x000055f323a1bba0 in ?? ()
#8  0x00007fbc35f19768 in ?? ()
#9  0x00007fbc35e9c7da in ?? ()
#10 0x00007fbc3d6c1390 in ?? ()
#11 0x000055f323a1bc38 in ?? ()
#12 0x0000000000000002 in ?? ()
#13 0x00007ffe80525c60 in ?? ()
#14 0x000055f323a1bba0 in ?? ()
#15 0x00007ffe80525d90 in ?? ()
#16 0x0000000000000000 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions