It is surprisingly hard to recreate an array-out-of-bounds segfault to demonstrate gdb, do you have any example that is guaranteed to segfault?
Need help with my section

@dev allocate a MB on the stack and then recurse, you'll get there quick

Follow

@regehr @dev incidentally out-of-bounds writes into stack-allocated std::array is a great way to crash GDB and leave no trace in any of the standard *SAN tools

Sign in to participate in the conversation
Mastodon

General topic personal server.