I've been getting Segmentation faults crashing my game as well, but I haven't been able to work out why.
I thought that you could be the same error I'm getting but I'm pretty new at this side of
computering fun. I'll make a new thread since mine seems to have a different address for the error.
This is the coredump from your save after crashing, since it might help others with more knowledge (sorry, this is as far as I got):
Code:
chom@audrey:~$ coredumpctl debug
PID: 28071 (Dwarf_Fortress)
UID: 1000 (chom)
GID: 1000 (chom)
Signal: 11 (SEGV)
Timestamp: Sat 2021-01-09 17:31:59 NZDT (13s ago)
Command Line: ./libs/Dwarf_Fortress
Executable: /home/chom/games/df_linux/libs/Dwarf_Fortress
Control Group: /user.slice/user-1000.slice/user@1000.service/apps.slice/apps-org.gnome.Terminal.slice/vte-spawn-1d4e6e91-148f-4574-9172-c3cd7bdd599b.scope
Unit: user@1000.service
User Unit: vte-spawn-1d4e6e91-148f-4574-9172-c3cd7bdd599b.scope
Slice: user-1000.slice
Owner UID: 1000 (chom)
Boot ID: 7356b6f638c244278e7f33c1155abfaa
Machine ID: 233b5af985104d368d4f00982ce1f048
Hostname: audrey
Storage: /var/lib/systemd/coredump/core.Dwarf_Fortress.1000.7356b6f638c244278e7f33c1155abfaa.28071.1610166719000000000000.lz4
Message: Process 28071 (Dwarf_Fortress) of user 1000 dumped core.
Stack trace of thread 28073:
#0 0x0000000000487060 n/a (/home/chom/games/df_linux/libs/Dwarf_Fortress + 0x87060)
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: (etc, etc...)
...
Reading symbols from /home/chom/games/df_linux/libs/Dwarf_Fortress...
(No debugging symbols found in /home/chom/games/df_linux/libs/Dwarf_Fortress)
[New LWP 28073]
[New LWP 28076]
[New LWP 28077]
[New LWP 28078]
[New LWP 28071]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./libs/Dwarf_Fortress'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000000487060 in ?? ()
[Current thread is 1 (Thread 0x7f2b1685a700 (LWP 28073))]
(gdb) bt
#0 0x0000000000487060 in ?? ()
#1 0x0000000000000000 in ?? ()
(gdb) quit