16
lxmcf
4y

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

Comments
  • 8
    Once I wrote code so horrible that I glitched GCC into a loop to which afterward started generating random characters
  • 0
    @Bybit260 ... I'm kind of impressed
  • 1
    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.
  • 1
    @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.
  • 1
    @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
  • 0
    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
  • 0
    @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 .-.
Add Comment