Segmentation and stack errors are most certainly bad memory, I’m 99% sure of it, reboot and run mem test from GRUB if you have the option. The “stack” is the non-dynamically allocated space your program is assigned to run in. Stack errors mean some pointers somewhere are likely getting corrupted and it’s trying to access addresses beyond what it’s allowed to access.
1980s: Hey guise, computers are now cheap and small enough that you can run an entire system and all your programs on your own machine at home instead of having to dial in to the mainframe!
2010s: No, we’re putting it all back on the servers, you get a thin client.