Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011866Dwarf FortressTechnical -- Generalpublic2022-05-01 10:532022-05-02 19:25
next_ghost 
lethosor 
normalcrashalways
resolvedduplicate 
Gentoo Linux
0.47.05 
 
0011866: Custom built libgraphics.so causes crashes
Gento Linux builds its own libgraphics.so from the sources provided in Dwarf Fortress tarball. Due to missing return statements in three functions, the custom built library causes crashes on program startup.
1. Build libgraphics.so from sources
2. Run Dwarf Fortress
3. Crash
No tags attached.
duplicate of 0011564confirmed lethosor Segfault when starting game, infinite loop when stopping it 
Issue History
2022-05-01 10:53next_ghostNew Issue
2022-05-01 10:55next_ghostNote Added: 0041249
2022-05-01 10:55next_ghostIssue Monitored: next_ghost
2022-05-01 10:56next_ghostIssue End Monitor: next_ghost
2022-05-02 19:23lethosorNote Added: 0041250
2022-05-02 19:23lethosorView Statusprivate => public
2022-05-02 19:25lethosorNote Added: 0041251
2022-05-02 19:25lethosorRelationship addedduplicate of 0011564
2022-05-02 19:25lethosorStatusnew => resolved
2022-05-02 19:25lethosorResolutionopen => duplicate
2022-05-02 19:25lethosorAssigned To => lethosor

Notes
(0041249)
next_ghost   
2022-05-01 10:55   
Patch to fix the issues in Dwarf Fortress 0.47.05:

--- df_linux_orig/g_src/enabler.cpp 2022-05-01 14:52:07.053022460 +0200
+++ df_linux/g_src/enabler.cpp 2022-05-01 15:08:52.435383092 +0200
@@ -590,6 +590,7 @@
 
   // Clean up graphical resources
   delete renderer;
+ return 0;
 }
 
 void enablerst::override_grid_size(int x, int y) {
--- df_linux_orig/g_src/music_and_sound_openal.cpp 2022-05-01 14:52:07.054022447 +0200
+++ df_linux/g_src/music_and_sound_openal.cpp 2022-05-01 15:20:17.963764833 +0200
@@ -480,7 +480,7 @@
 
 void alEnable( ALenum capability ) { _alEnable(capability); }
 void alDisable( ALenum capability ) { _alDisable(capability); }
-ALboolean alIsEnabled( ALenum capability ) { _alIsEnabled(capability); }
+ALboolean alIsEnabled( ALenum capability ) { return _alIsEnabled(capability); }
 const ALchar* alGetString( ALenum param ) { return _alGetString(param); }
 void alGetBooleanv( ALenum param, ALboolean* data ) { _alGetBooleanv(param, data); }
 void alGetIntegerv( ALenum param, ALint* data ) { _alGetIntegerv(param, data); }
@@ -490,7 +490,7 @@
 ALint alGetInteger( ALenum param ) { return _alGetInteger(param); }
 ALfloat alGetFloat( ALenum param ) { return _alGetFloat(param); }
 ALdouble alGetDouble( ALenum param ) { return _alGetDouble(param); }
-ALenum alGetError( void ) { _alGetError(); }
+ALenum alGetError( void ) { return _alGetError(); }
 ALboolean alIsExtensionPresent( const ALchar* extname ) { return _alIsExtensionPresent(extname); }
 void* alGetProcAddress( const ALchar* fname ) { return _alGetProcAddress(fname); }
 ALenum alGetEnumValue( const ALchar* ename ) { return _alGetEnumValue(ename); }
(0041250)
lethosor   
2022-05-02 19:23   
Marking as public because I don't see any identifying information here.
(0041251)
lethosor   
2022-05-02 19:25   
Duplicate of 0011564