Opened 2 weeks ago

Closed 2 weeks ago

#19063 closed bug (duplicate)

Kernel panic when a program triggers a floating-point trap

Reported by: bhaible Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/Kernel Version: R1/beta5
Keywords: Cc:
Blocked By: #18624 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.

Attachments (2)

foo2.c (2.3 KB ) - added by bhaible 2 weeks ago.
test case foo2.c
foo2.png (57.1 KB ) - added by bhaible 2 weeks ago.
screenshot after kernel panic

Download all attachments as: .zip

Change History (4)

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.

comment:2 by waddlesplash, 2 weeks ago

Blocked By: 18624 added
Resolution: duplicate
Status: newclosed

It appears to be identical, yes.

Note: See TracTickets for help on using tickets.