This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcc/57405] Using printf in signal handler with alternate stack generates a SIGSEGV


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

Harald van Dijk <harald at gigawatt dot nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |harald at gigawatt dot nl

--- Comment #5 from Harald van Dijk <harald at gigawatt dot nl> ---
Turn on warnings. This has nothing to do with calling printf inside a signal
handler, this is because no declaration of strsignal is provided, so strsignal
is implicitly declared as returning int instead of char *. You're on a 64-bit
system where they don't have the same size, so this breaks badly. Appropriate
warnings for this get enabled even in GCC 4.4 with -Wall.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]