Ticket #1401 (closed bug: fixed)

Opened 16 months ago

Last modified 15 months ago

implement sigaltstack()

Reported by: korli Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1 development
Cc: Blocked By:
Platform: All Blocking:

Description

http://www.opengroup.org/onlinepubs/000095399/functions/sigaltstack.html

The most common usage of an alternate signal stack is to handle the SIGSEGV signal that is generated if the space available for the normal process stack is exhausted: in this case, a signal handler for SIGSEGV cannot be invoked on the process stack; if we wish to handle it, we must use an alternate signal stack.

Note that BeOS R5 provides set_signal_stack(). Something should be done about it too.

Change History

Changed 15 months ago by axeld

  • status changed from new to assigned
  • component changed from System/libroot.so to System/Kernel

Changed 15 months ago by axeld

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r21989.

Changed 15 months ago by axeld

Note that currently, set_signal_stack() is not really BeOS compatible: it will actually only use that new stack for all signals that have the SA_ONSTACK flag set - and it seems this just didn't exist on BeOS.

Note: See TracTickets for help on using tickets.