Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bus error on FreeBSD (clang 18.1.6) #372

Open
180watt opened this issue Aug 16, 2024 · 0 comments
Open

Bus error on FreeBSD (clang 18.1.6) #372

180watt opened this issue Aug 16, 2024 · 0 comments

Comments

@180watt
Copy link

180watt commented Aug 16, 2024

When building and trying to run on FreeBSD-current (15) with clang 18.1.6, I get a Bus error (core dumped) after playing for a few minutes. Looking at a backtrace from gdb, it seems to come from D3DXVec4Normalize. Below is the whole backtrace.

#0  0x000000080124fe05 in D3DXVec4Normalize () from bin//libtogl.so
#1  0x0000000812ddea01 in CShaderAPIDx8::CommitFastClipPlane() () from /home/seafork/wrk/source-engine/install/bin/libshaderapidx9.so
#2  0x0000000812ddaf6f in CShaderAPIDx8::CommitStateChanges() () from /home/seafork/wrk/source-engine/install/bin/libshaderapidx9.so
#3  0x0000000812ddaf25 in CShaderAPIDx8::DrawMesh(CMeshBase*) () from /home/seafork/wrk/source-engine/install/bin/libshaderapidx9.so
#4  0x000000080ea6c9cd in DispInfo_DrawPrimLists(ERenderDepthMode) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#5  0x000000080ea6f15a in DispInfo_RenderList(int, msurface2_t**, int, bool, unsigned long, ERenderDepthMode) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#6  0x000000080ea7b6b0 in Shader_DrawDispChain(int, CMSurfaceSortList const&, unsigned long, ERenderDepthMode) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#7  0x000000080ea7f664 in R_DrawWorldLists(IWorldRenderList*, unsigned long, float) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#8  0x000000082c3d9112 in CBaseWorldView::DrawExecute(float, view_id_t, float) () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#9  0x000000082c3d9e77 in CAboveWaterView::CReflectionView::Draw() () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#10 0x000000082c3d9aea in CAboveWaterView::Draw() () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#11 0x000000082c3d12bb in CViewRender::DrawWorldAndEntities(bool, CViewSetup const&, int, ViewCustomVisibility_t*) () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#12 0x000000082c3d07af in CViewRender::ViewDrawScene(bool, SkyboxVisibility_t, CViewSetup const&, int, view_id_t, bool, int, ViewCustomVisibility_t*) () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#13 0x000000082c3d2479 in CViewRender::RenderView(CViewSetup const&, int, int) () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#14 0x000000082c3ba8c5 in CViewRender::Render(vrect_t*) () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#15 0x000000082c276920 in CHLClient::View_Render(vrect_t*) () from /home/seafork/wrk/source-engine/install/hl2/bin/libclient.so
#16 0x000000080ebe0fe2 in V_RenderView() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#17 0x000000080ec5ba5f in SCR_UpdateScreen() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#18 0x000000080eb4e80c in _Host_RunFrame_Render() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#19 0x000000080eb4f883 in _Host_RunFrame(float) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#20 0x000000080eb5d97d in CHostState::State_Run(float) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#21 0x000000080eb5cdf4 in CHostState::FrameUpdate(float) () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#22 0x000000080ebb8f41 in CEngine::Frame() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#23 0x000000080ebb5e01 in CEngineAPI::MainLoop() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#24 0x000000080ebb6b64 in CModAppSystemGroup::Main() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#25 0x000000080ee376e5 in CAppSystemGroup::Run() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#26 0x000000080ebb61c8 in CEngineAPI::RunListenServer() () from /home/seafork/wrk/source-engine/install/bin/libengine.so
#27 0x00000008008d05e5 in CAppSystemGroup::Run() () from bin/liblauncher.so
#28 0x00000008008d05e5 in CAppSystemGroup::Run() () from bin/liblauncher.so
#29 0x00000008008af246 in LauncherMain () from bin/liblauncher.so
#30 0x0000000000201e38 in main ()

I am also able to get this to happen with clang version 15.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant