http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57405
--- Comment #4 from jkf ---
Andrew,
BTW, if I only use the printf("act_handler sig %d addr=%p base=%p end=%p\n",
sig, add, &alt_stack[0], alt_top);
There is no SIGSEGV during execution.
So, I don't believe it a hard rule the printf is not allowe
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57405
--- Comment #2 from jkf ---
Andrew,
According to POSIX the write function is allowed inside a signal handler. Since
eventually printf ends in a write(), I'm assuming it is valid. If printf()
isn't valid than please supply a list of valid libc func
: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: jkf at research dot att.com
Created attachment 30185
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30185&action=edit
requested bug information and gdb session