VMP Protection causing Segfault

Out of the blue i started getting segfault whenever i run a version of my program wich i protected with VMP. I was not having this problem before.
If i run my program without protecting it with VMP it works just normal.
I already tried removing all function protections, removing packing, creating a fresh new vmp project, and the crash still happens.

I’m using C++ CMake at ubuntu 20.04.
And protecting it with VMProtect Ultimate v3.9.4


backtrace:

Reading symbols from protected_program…
BFD: /home/protected_program(.rela.dyn): relocation 76 has invalid symbol index 4294967295
BFD: /home/protected_program(.rela.dyn): relocation 77 has invalid symbol index 4294967295
BFD: /home/protected_program(.rela.dyn): relocation 78 has invalid symbol index 4294967295
BFD: /home/protected_program(.rela.dyn): relocation 79 has invalid symbol index 4294967295
(gdb) run
Starting program: /home/protected_program

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7fdd002 in elf_dynamic_do_Rela (skip_ifunc=, lazy=, nrelative=,
relsize=, reladdr=, map=0x7ffff7ffe190) at do-rel.h:147
147 do-rel.h: No such file or directory.
(gdb) bt
#0 0x00007ffff7fdd002 in elf_dynamic_do_Rela (skip_ifunc=, lazy=, nrelative=,
relsize=, reladdr=, map=0x7ffff7ffe190) at do-rel.h:147
#1 _dl_relocate_object (l=l@entry=0x7ffff7ffe190, scope=, reloc_mode=, consider_profiling=,
consider_profiling@entry=0) at dl-reloc.c:255
#2 0x00007ffff7fd353a in dl_main (phdr=, phnum=, user_entry=, auxv=)
at rtld.c:2265
#3 0x00007ffff7febc4b in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7fffffffdb80, dl_main=dl_main@entry=0x7ffff7fd15e0 <dl_main>)
at ../elf/dl-sysdep.c:252
#4 0x00007ffff7fd104c in _dl_start_final (arg=0x7fffffffdb80) at rtld.c:449
#5 _dl_start (arg=0x7fffffffdb80) at rtld.c:539
#6 0x00007ffff7fd0108 in _start () from /lib64/ld-linux-x86-64.so.2
#7 0x0000000000000001 in ?? ()
#8 0x00007fffffffde61 in ?? ()
#9 0x0000000000000000 in ?? ()

Please try the latest version of VMProtect:
https://vmpsoft.com/uploads/VMProtectDemo.tar.gz

Same problem with demo version, i have no idea of what to do anymore

Please send us a test example (original binary + VMP files) that shows your problem.

Never mind, after EXTENSIVE testing I found that the issue was caused by a specific .cpp file I was linking.
It was using static Hyperscan + static PCRE, and apparently the TLS/relocations generated by these libraries were fine normally, but after protecting the binary with VMProtect they were always getting corrupted.. Causing the program to crash before main function even gets called.
After replacing Hyperscan + PCRE with an equivalent, the problem disappeared completely.

Please send us a test example (original binary + VMP files) that shows your problem.