Project

General

Profile

Actions

Bug #11495

open

siginfo should always have a valid si_pc for fault signals

Added by Joshua M. Clulow about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
kernel
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Some fault conditions experienced by user programs are reported via signals, directed to the LWP which induced the fault. The list of such signals includes at least SIGSEGV, SIGBUS, SIGILL, SIGTRAP, and SIGFPE. As documented in siginfo.h[3HEAD], we attempt (for some of these) to set si_addr to either the program counter (SIGILL for illegal op codes) or the fault address (SIGSEGV). In many, if not most or even all cases we know the program counter address at the point of the fault. We should store it in the __fault.__pc member of siginfo_t, known externally as si_pc, and document it in the manual page.

No data to display

Actions

Also available in: Atom PDF