WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

485

I did not know this but there exists something called a "long jump" which saves the current stack and execution pointer and can let the program jump back right to that state. It's mainly used for escaping signal handlers back to a working state in your code.

That mf'ing regex code that comes with the latest c++ standards is excellent. However for some reason it comes with stack overflow bugs on mildly sized / complex regex calls. In my situation I'm making 100s of thousands of calls, if one fails it's not a big deal. But what's a big deal is if the whole code crashes.

Also another thing about stack overflow signal handlers. They register as a segmentation fault because the compiler allows program to run past the allotted stack. However because it went past the allotted stack, there is no remaining stack for the signal handler. So you have to put in extra calls to add in an alternative stack just for stack overflow signal handlers.

Always cool working with signal handlers in a viable way since they're "old code" "from the forgotten days".

I did not know this but there exists something called a "long jump" which saves the current stack and execution pointer and can let the program jump back right to that state. It's mainly used for escaping signal handlers back to a working state in your code. That mf'ing regex code that comes with the latest c++ standards is excellent. However for some reason it comes with stack overflow bugs on mildly sized / complex regex calls. In my situation I'm making 100s of thousands of calls, if one fails it's not a big deal. But what's a big deal is if the whole code crashes. Also another thing about stack overflow signal handlers. They register as a segmentation fault because the compiler allows program to run past the allotted stack. However because it went past the allotted stack, there is no remaining stack for the signal handler. So you have to put in extra calls to add in an alternative stack just for stack overflow signal handlers. Always cool working with signal handlers in a viable way since they're "old code" "from the forgotten days".

(post is archived)

[–] 4 pts

so you're an ex-journalist?