Eric Blake <[EMAIL PROTECTED]> writes: > Should I also add lib-ignore to the > dependencies of c-stack, so that Solaris need not waste space if > libsigsegv is not used independently of c-stack?
Yes, please. > In writing the patch, I noticed that it is probably not portable to > longjmp out of a stack overflow handler - POSIX is explicit that longjmp > is not async-signal safe, because the stack overflow might have occurred > in the middle of a library function like malloc; even though you can > manage to get back to the original stack, you no longer have guarantees > that malloc will work. So, we either need to document this in the > contract of c_stack_action, or we need to add a function in c-stack.h that > the user must call before attempting longjmp anyway; this wrapper would be > responsible for calling libsigsegv's sigsegv_leave_handler as needed. > Preferences? I think it unlikely that this will be a practical problem, so I'd just document it. Thanks for doing the work.