TIL: this is something... you can dopic.twitter.com/YVkCdJZKPP
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
@dev_console @FioraAeterna The only sane thing to do would probably just be to silently call abort() I guess?
@oe1cxw @fioraaeterna POSIX doesn’t specify if fread() has to allocate, but there are implementations that don’t — musl libc comes to mind.
@dev_console @oe1cxw @FioraAeterna Where is fread() involved and why would it ever allocate?
@oe1cxw @fioraaeterna As a library, it’s mostly not your decision to make — you can try to clean up some internal buffers maybe…
@dev_console @FioraAeterna That sounds reasonable for a lib. (Only half-serious: But how can you test this?)
@oe1cxw @fioraaeterna But you should mostly include the possibility of failure in your API so it can be returned to the caller…
@oe1cxw @fioraaeterna Who then can do various things depending on the environment, constraints and need. abort() is one of them of course…
@oe1cxw @fioraaeterna But an embedded application can for instance try to make some space by swapping out stuff.
@dev_console @FioraAeterna At least for non-embedded: You never now when the OS tries to increase the stack size.. You can run OOM this way.
@oe1cxw @fioraaeterna Main point is it’s not a library’s call to make, just like a library shouldn’t (unless requested) mess with ctrl flow.
@oe1cxw @fioraaeterna For applications, if nothing else I find even an attempt at an error message more useful than just SIGSEGV. :)
@oe1cxw @fioraaeterna Since error messages can also include source code file and line, SIGSEGV can also mean all kinds of NULL deref stuff.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.