[Bug 206990] powerpc (32-bit), projects/clang380-import vs. 11.0-CURRENT's sendsig: need to avoid signal delivery trashing the stack and so causing SIGSEGV

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 8 16:37:19 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206990

Justin Hibbits <jhibbits at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jhibbits at FreeBSD.org

--- Comment #6 from Justin Hibbits <jhibbits at FreeBSD.org> ---
(In reply to Mark Millard from comment #5)
There is no provision in the ABI for a redzone in 32-bit powerpc.  LLVM is
broken for 32-bit PowerPC regarding this, and there are comments in the source
code to this regard, to the effect:

(PPCFrameLowering.cpp):
    // FIXME: On PPC32 SVR4, we must not spill before claiming the stackframe.

If a signal interrupts the thread at the precise wrong time (when creating the
stack frame, but before adjusting %r1), Bad Things will happen.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list