Skip to content

Kernel crash due to invalid enum value on user input #68

@leickh

Description

@leickh

When running the build x86-hosted-linux as a maximized window, the system crashed because of an invalid enum value when moving around a window in front of another window. The crash occurred when the mouse pointer was on the edge of the lower window. The following message was written to the terminal:

    23.080 [W] input: dropping mouse_abs_motion event
    23.080 [W] input: dropping mouse_abs_motion event
    23.080 [W] input: dropping mouse_abs_motion event
    23.080 [W] input: dropping mouse_abs_motion event
    23.080 [W] input: dropping mouse_abs_motion event
    23.132 [W] input: dropping mouse_abs_motion event
    23.132 [W] input: dropping mouse_abs_motion event
    23.488 [W] gui: window event queue is full, dropping event .{ .event_type = .mouse_motion, .mouse = .{ .event_type = .{ .input = 
=========================================================================
Kernel Panic: invalid enum value
=========================================================================

    panic return address: kernel:0x00D66981[/usr/lib/zig/std/Io/Writer.zig "printEnumExhaustive__anon_165348" in ".text"]

 function return address: kernel:0x00A3ED73[/usr/lib/zig/std/builtin.zig:1091:31 in ".text"]

error return trace:
stack usage:
  low:     0x0199C000
  pointer: 0x019BB52C
  high:    0x019BD000
  size:    135168
  usage:   6%

current thread:
  [!] Thread(0x01614F80, name=classic.ashex, ep=0x018FC0F0)

waiting threads:
  [0] Thread(0x00DF7480, name=wayland.eventloop, ep=0x00B14DE0)
  [1] Thread(0x0160DC00, name=os.tick, ep=0x00AE8A60)
  [2] Thread(0x0160DD00, name=os.entrypoint, ep=0x00AE8B10)
  [3] Thread(0x0160DF00, name=widgets.ashex, ep=0x01805E00)
  [4] Thread(0x00DF7580, name=filesystem, ep=0x00AF8C70)
  [5] Thread(0x0160DE00, name=2048.ashex, ep=0x01695310)

stack trace:
   0: kernel:0x00A3ED73[/usr/lib/zig/std/builtin.zig:1091:31 in ".text"]
   1: kernel:0x00A3ABFA[in ".text"]
   2: kernel:0x00D66981[/usr/lib/zig/std/Io/Writer.zig "printEnumExhaustive__anon_165348" in ".text"]
   3: kernel:0x00D64140[/usr/lib/zig/std/Io/Writer.zig:1256:43 "printValue__anon_165019" in ".text"]
   4: kernel:0x00D6069C[/usr/lib/zig/std/Io/Writer.zig:1291:41 "printValue__anon_164434" in ".text"]
   5: kernel:0x00D56D53[/usr/lib/zig/std/Io/Writer.zig:1333:33 "printValue__anon_163493" in ".text"]
   6: kernel:0x00D54570[/usr/lib/zig/std/Io/Writer.zig:1291:41 "printValue__anon_163237" in ".text"]
   7: kernel:0x00D527DC[/usr/lib/zig/std/Io/Writer.zig:1264:34 "printValue__anon_162864" in ".text"]
   8: kernel:0x00D50BBA[/usr/lib/zig/std/Io/Writer.zig:1229:36 "printValue__anon_161648" in ".text"]
   9: kernel:0x00D4DFA5[/usr/lib/zig/std/Io/Writer.zig:700:25 "print__anon_159860" in ".text"]
  10: kernel:0x00D495D8[/usr/lib/zig/std/fmt.zig:84:39 "format__anon_155328" in ".text"]
  11: kernel:0x00D3D514[/usr/lib/zig/std/Io/DeprecatedWriter.zig "print__anon_154099" in ".text"]
  12: kernel:0x00D2507E[/usr/lib/zig/std/Io.zig:350:47 "kernel_log_fn__anon_151021" in ".text"]
  13: kernel:0x00CFD13B[/usr/lib/zig/std/log.zig:124:22 "log__anon_147384" in ".text"]
  14: kernel:0x00CDA31B[/usr/lib/zig/std/log.zig:181:16 "warn__anon_141351" in ".text"]
  15: kernel:0x00CAEF5B[/run/media/leickh/4459ea1a-d4da-4ce1-82c6-6d259c03cb8f/Technology/Development/github.com/Ashet-Technologies/Ashet-OS/src/kernel/components/gui.zig:597:24 "post_event_direct" in ".text"]
  16: kernel:0x00C7B2A2[/run/media/leickh/4459ea1a-d4da-4ce1-82c6-6d259c03cb8f/Technology/Development/github.com/Ashet-Technologies/Ashet-OS/src/kernel/components/gui.zig:486:33 "post_event" in ".text"]
  17: kernel:0x00C5FDAB[/run/media/leickh/4459ea1a-d4da-4ce1-82c6-6d259c03cb8f/Technology/Development/github.com/Ashet-Technologies/Ashet-OS/src/kernel/components/syscalls.zig:751:30 "post_window_event" in ".text"]
  18: kernel:0x00C2DFCF[/run/media/leickh/4459ea1a-d4da-4ce1-82c6-6d259c03cb8f/Technology/Development/github.com/Ashet-Technologies/Ashet-OS/.zig-cache/o/0afaec6ea3788115687b099fe5d923a0/kernel.zig:1309:106 "ashet_syscalls_gui_post_window_event" in ".text"]
  19: classic.ashex:0x00050198
  20: classic.ashex:0x000500E7
  21: classic.ashex:0x00042C1E
  22: classic.ashex:0x000437EF
  23: classic.ashex:0x00044D67
  24: classic.ashex:0x00044F44
  25: classic.ashex:0x00047C24
  26: classic.ashex:0x0004A134
  27: kernel:0x00A39009["__kernel_flash_start" in ".text"]

... followed by a memory map, and then:

=========================================================================
Kernel Panic: invalid enum value
=========================================================================

I'm using Fedora Linux 43 with KDE Plasma 6.5.5 on an x86_64-based processor.. Neither the RAM nor the processing power may be a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions