Opened 2 weeks ago

Last modified 2 weeks ago

#19063 closed bug

Kernel panic when a program triggers a floating-point trap — at Version 1

Reported by: bhaible Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/beta5
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description (last modified by bhaible)

Find attached a program that triggers a floating-point exception (not C++ exception). It triggers a kernel panic.

Seen in Haiku hrev57823 (from 2024-07-15).

How to reproduce:

  • Open a Terminal.
    gcc -Wall foo2.c
    sync
    ./a.out
    

Expected outcome: The program crashes with some signal (most likely SIGFPE).

Actual outcome: Kernel panic; screenshot attached.

Change History (3)

by bhaible, 2 weeks ago

Attachment: foo2.c added

test case foo2.c

by bhaible, 2 weeks ago

Attachment: foo2.png added

screenshot after kernel panic

comment:1 by bhaible, 2 weeks ago

Description: modified (diff)

It is possibly related to #18624.

Note: See TracTickets for help on using tickets.