origin icon indicating copy to clipboard operation
origin copied to clipboard

atomic-dbg's log buffer is too big

Open sunfishcode opened this issue 2 years ago • 0 comments

atomic-dbg has a PIPE_BUF-sized buffer which gets allocated on the stack. This is enough to quickly overflow stacks, especially SIGSTKSZ-sized stacks for signal handlers.

Perhaps atomic-dbg should use an mmaped buffer so that it doesn't use so much stack space.

sunfishcode avatar Aug 29 '23 02:08 sunfishcode