Fix --ftrace with cosmo_dlopen()

This change ensures function call logging won't crash the process when
cosmo_dlopen() is called.
This commit is contained in:
Justine Tunney 2024-01-05 15:11:37 -08:00
parent 15548b523c
commit 2d93788ce3
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 35 additions and 7 deletions

View file

@ -291,7 +291,7 @@ static wontreturn dontinstrument void foreign_helper(void **p) {
__foreign.dlsym = p[1];
__foreign.dlclose = p[2];
__foreign.dlerror = p[3];
longjmp(__foreign.jb, 1);
_longjmp(__foreign.jb, 1);
}
static dontinline void elf_exec(const char *file, char **envp) {