SIGBUS clang with OpenBSD #1341
Labels
🐞 Bug
Something isn't working
cat: general
Category engine (client/server)
❓ Feedback
Further information is requested
P3: Normal
Priority 3
Milestone
Author: namtsui (namtsui)
Date: 2019-08-27
Redmine Issue: 1341, https://dev.etlegacy.com/issues/1341
I am trying to write an OpenBSD port for etlegacy. It receive a SIGBUS when compiling with clang 8.0.0, without debug symbols. I am able to run the game successfully with gcc (debug/no debug) and clang (debug). Only clang without debug symbols exhibits this behavior.
Attached:
my_configure_debug: make configure in OpenBSD ports with debug flags turned on
my_configure_reg: " with debug flags off
my_build_debug: make update-plist in OpenBSD ports with debug flags turned on
my_build_reg: " with debug flags off
my_log_debug: game startup with debug flags on (OK)
my_log_reg: game startup with debug flags off (fails)
I notice that when the game is starting without an ~/.etlegacy folder, it takes two or three restarts during normal operation. However, the regular clang build will go from
Initializing Legacy ui
directly to:
----- CL_Shutdown -----
as shown in my_log_reg.
I sprinkled in COM_Printf's and saw that in client/cl_ui.c in CL_InitUI(void), the last call to
fails to get past this point.
in qcommon/vm.c:
This call
fails to get past this point.
In sys/sys_main.c I printed out the signal in Sys_SigHandler(int signal) and noticed that it was 10, which is a SIGBUS.
The text was updated successfully, but these errors were encountered: