Hello everyone.
I've been developing an SDL or SDL2 app called LaserBoy for many years on Ubuntu with no major issues, but now, all of a sudden, it's crashing. I don't know much about gdb, but I have found some stuff online and I can get it to save a core dump and use gdb to do a back trace. The app crashes in all kinds of different places but it all seems to lead back to malloc.c and free being called on an invalid pointer. So first I thought this was some new bug I had introduced into the code. Then I compiled a much older version of LaserBoy and it does the same thing. I have an AMD 8 core CPU and 24GB of ram in the form of 2x4GB and 2X16GB The 2x16GB says each stick is 2x8GB so I would think I'd be getting 32GB from these two, but I don't. That's never been a problem for about 5 years. I did a mem test from the boot screen and the 2x4GB test ok. The 2x16GB hangs the system. So I thought that was it. But after I removed those sticks the crashing is still happening. It must be a hardware issue of some sort because the exact same code compiles and runs fine in Win10 and on a Raspberry Pi. What should I look for? Everything else in Ubuntu runs just fine. I run a very old clone of an XP laptop in a VMWare VM, share a directory and mount that from Ubuntu. That's where all the code is. I can mount it from the pi or the Win10 laptop. All that works fine.
The code can be linked to either SDL 1.2 or SDL2 and also uses some boost stuff. Both the SDL and the SDL2 builds crash in the same way.
General public release (full version)
New development version (just the source code, requires the installation folder from above)
Thanks.
Bookmarks