Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Once I wrote code so horrible that I glitched GCC into a loop to which afterward started generating random characters
-
ldd. I guess you're missing a library. Happened far too many times in my sysadmin days :) both missing libraries and faulty filesystems/missing files (mmap I guess) do cause SIGSEGV, not only direct RAM access out-of-bounds.
-
@lxmcf Yeah, I did something weird with the header files that caused that glitch.
Also about your rant, you could use strace when running your program to get an idea of what is causing it to crash. -
lxmcf204104y@netikras nope for sure have all libraries and its not RAM related, it's so bizarre, the function exists and should output the data, can assign a variable to the required data structure but as soon as I try to populate data.... Boom gone
-
ldd to check you've referenced the correct libraries.
lldb / gdb to debug.
https://wiki.gnome.org/Projects/...
Maybe recompile / ggdb or higher to get meaningful stacktraces -
lxmcf204104y@IntrusionCM all references are correct unfortunately, seems it may be an SDL2 issue, might see if I can perform the same function using C rather than Vala incase it could be an issue with the transpile of Vala to C .-.
Related Rants
Well after years of programming, I've hit my first runtime error that provides no info , the code fails prior to being able to generate an error so this is fucking fine :-)
And of course, the one time I need stack overflow, it tells you to initialise the class with data... Yet the class doesn't contain a fucking constructor... Smiley face
rant
vala
virgil
oh yeah devrant exists