I am getting this:
Code: Select all
Thread 1 "gzdoom" received signal SIGSEGV, Segmentation fault.
0x00000000009b0f14 in OpenGLSWFrameBuffer::OpenGLPal::Update() ()
(gdb) bt
#0 0x00000000009b0f14 in OpenGLSWFrameBuffer::OpenGLPal::Update() ()
#1 0x00000000009b17c0 in OpenGLSWFrameBuffer::OpenGLPal::OpenGLPal(FRemapTable*, OpenGLSWFrameBuffer*) ()
#2 0x00000000009b1875 in OpenGLSWFrameBuffer::CreatePalette(FRemapTable*) ()
#3 0x0000000000a41177 in FRemapTable::GetNative() ()
#4 0x00000000009ac756 in OpenGLSWFrameBuffer::SetStyle(OpenGLSWFrameBuffer::OpenGLTex*, DrawParms&, unsigned int&, unsigned int&, OpenGLSWFrameBuffer::BufferedTris&) ()
#5 0x00000000009b3658 in OpenGLSWFrameBuffer::DrawTextureParms(FTexture*, DrawParms&) ()
#6 0x0000000000933add in DCanvas::DrawChar(FFont*, int, double, double, int, int, ...) ()
#7 0x0000000000978234 in DBaseStatusBar::DrawString(FFont*, FString const&, double, double, int, double, int, int, bool, int, int) ()
#8 0x000000000097893a in ?? ()
#9 0x0000000000aad0b7 in VMExec_Unchecked::Exec(VMFrameStack*, VMOP const*, VMReturn*, int) ()
#10 0x0000000000aaef77 in VMExec_Unchecked::Exec(VMFrameStack*, VMOP const*, VMReturn*, int) ()
#11 0x0000000000abbcec in VMCall(VMFunction*, VMValue*, int, VMReturn*, int) ()
#12 0x0000000000976fe0 in DBaseStatusBar::CallDraw(EHudState) ()
#13 0x0000000000767753 in D_Display() ()
#14 0x0000000000767b44 in D_DoomLoop() ()
#15 0x00000000007693ba in D_DoomMain() ()
#16 0x000000000052bd62 in main ()
Oh, and for the record:
- The source I am using is from git commit
8303d8bbd14a77b74dc9a8ab9d9a00d9efcad1d6.
- The Arch PKGBUILD script has some more cmake options, which I have included in the debug build as well:
Code: Select all
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="$CFLAGS -DSHARE_DIR=\\\"/usr/share/gzdoom\\\"" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -DSHARE_DIR=\\\"/usr/share/gzdoom\\\"" \
-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -Wl,-z,noexecstack" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_PATH=lib/gzdoom \
-DINSTALL_PK3_PATH=share/gzdoom \
..
Shell variables $LDFLAGS $CFLAGS and $CXXFLAGS are empty, so they shouldn't have any effect.