FEX-Emu / FEX-Emu/FEX

FTL crashes when using GL thunks without GLVND

Open
#2,031 2 comments 0 reactions 1 assignee Claimed by @neobrain View on GitHub
Library forwarding
Dominant language
C++
Stars
8k
Forks
351
Avg merge
12h 31m
Merged PRs (30d)
102

Description

Running the game using a mesa build with GLVND disabled triggers a crash on startup:
```
Thread 1 "FEXInterpreter" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ff7ff1010 (LWP 7822)]
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x0000007fe11adb84 in fexfn_unpack_libGL_glXCreateContextAttribsARB(fexfn_packed_args_libGL_glXCreateContextAttribsARB*) () from /usr/lib/fex-emu/HostThunks//libGL-host.so
#2 0x0000007fe25fd3d8 in ?? ()
```

The crash is caused by `fexldr_ptr_libGL_glXCreateContextAttribsARB` (called in the unpacking function) being `nullptr`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.