http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57405

--- Comment #4 from jkf <jkf at research dot att.com> ---
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 allowed in signal
handlers.

Jeff Fellin

-----Original Message-----
From: pinskia at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
Sent: Friday, May 24, 2013 16:54
To: FELLIN, JEFFREY K (JEFF)
Subject: [Bug libgcc/57405] Using printf in signal handler with alternate stack
generates a SIGSEGV

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57405

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |4.4.7

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Is calling
printf a valid thing to do inside this signal handler?

Also can you try a newer compiler 4.4.7 is no longer supported.  Since you are
using a redhat supplied GCC, you really should reporting it to them.

--
You are receiving this mail because:
You reported the bug.

Reply via email to