Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/ladybird-git dies in _rtld_call_ifunc



On Fri, 5 Jul 2024, Thomas Klausner wrote:

I sometimes try running wip/ladybird-git on NetBSD, and it reached
github.com once already.

Not so right now, it dies during startup even before showing a window, in

(gdb) r
Starting program: /usr/pkg/bin/Ladybird

Program received signal SIGSEGV, Segmentation fault.
_rtld_call_ifunc (obj=0x77d34d728800, mask=mask@entry=0x7f7fffc5ded0, cur_objgen=cur_objgen@entry=1)
   at /usr/src/libexec/ld.elf_so/reloc.c:311
311                             *where = target;
(gdb) bt
#0  _rtld_call_ifunc (obj=0x77d34d728800, mask=mask@entry=0x7f7fffc5ded0, cur_objgen=cur_objgen@entry=1)
   at /usr/src/libexec/ld.elf_so/reloc.c:311
#1  0x00007f7ff78f9284 in _rtld_call_ifunc_functions (cur_objgen=1, obj=<optimized out>, mask=0x7f7fffc5ded0)
   at /usr/src/libexec/ld.elf_so/rtld.c:280
#2  _rtld_call_init_functions (mask=mask@entry=0x7f7fffc5ded0)
   at /usr/src/libexec/ld.elf_so/rtld.c:304
#3  0x00007f7ff78f9de5 in _rtld (sp=<optimized out>, relocbase=<optimized out>)
   at /usr/src/libexec/ld.elf_so/rtld.c:795
#4  0x00007f7ff78f3033 in rtld_start () from /usr/libexec/ld.elf_so
#5  0x0000000000000000 in ?? ()

Is this a problem in NetBSD or ladybird? There's no code from Ladybird
in the backtrace, but perhaps it's hidden behind frame 5.


PR #57792 strikes again, I think. The stack traces look identical--but, this
is C++ code and I can't locate where it's doing its ifunc thing. If you a
stack trace like this, Thomas, just remove `Wl,-z,now' from the linker flags.

-RVP


Home | Main Index | Thread Index | Old Index