Skip to content

Instantly share code, notes, and snippets.

@X547
Created June 27, 2026 17:48
Show Gist options
  • Select an option

  • Save X547/b0917043f46cde251e61223a2c2fa7d8 to your computer and use it in GitHub Desktop.

Select an option

Save X547/b0917043f46cde251e61223a2c2fa7d8 to your computer and use it in GitHub Desktop.
KDL when writing through bindfs, Haiku hrev59799
kdebug> message
PANIC: Unexpected exception "General Protection Exception" occurred in kernel mode! Error code: 0x0
kdebug> bt
stack trace for thread 122523 "perl"
kernel stack: 0xffffffffb8679000 to 0xffffffffb867e000
user stack: 0x00007fe0107f1000 to 0x00007fe0147f1000
frame caller <image>:function + offset
0 ffffffffb867d190 (+ 32) ffffffff800bd5d9 <kernel_x86_64> invoke_command_trampoline(void*) + 0x19
1 ffffffffb867d1b0 (+ 32) ffffffff8016193b <kernel_x86_64> arch_debug_call_with_fault_handler + 0x1d
2 ffffffffb867d200 (+ 80) ffffffff800ba750 <kernel_x86_64> debug_call_with_fault_handler + 0x80
3 ffffffffb867d260 (+ 96) ffffffff800bd838 <kernel_x86_64> invoke_debugger_command + 0xf8
4 ffffffffb867d2a0 (+ 64) ffffffff800bd9e6 <kernel_x86_64> invoke_pipe_segment(debugger_command_pipe*, int, char*) + 0x116
5 ffffffffb867d2f0 (+ 80) ffffffff800bdb0c <kernel_x86_64> invoke_debugger_command_pipe + 0x9c
6 ffffffffb867d330 (+ 64) ffffffff800bfd76 <kernel_x86_64> ExpressionParser::_ParseCommandPipe(int&) + 0x1e6
7 ffffffffb867d370 (+ 64) ffffffff800c12dd <kernel_x86_64> ExpressionParser::EvaluateCommand(char const*, int&) + 0x43d
8 ffffffffb867d460 (+ 240) ffffffff800c190f <kernel_x86_64> evaluate_debug_command + 0x12f
9 ffffffffb867d4c0 (+ 96) ffffffff800bbf08 <kernel_x86_64> kernel_debugger_loop(char const*, char const*, __va_list_tag*, int) + 0x1b8
10 ffffffffb867d520 (+ 96) ffffffff800bc24e <kernel_x86_64> kernel_debugger_internal(char const*, char const*, __va_list_tag*, int) + 0x6e
11 ffffffffb867d610 (+ 240) ffffffff800bc647 <kernel_x86_64> panic + 0xb7
12 ffffffffb867d6f0 (+ 224) ffffffff8017058f <kernel_x86_64> x86_unexpected_exception + 0x2af
13 ffffffffb867da58 (+ 872) ffffffff8016324c <kernel_x86_64> intr_bottom + 0x80
kernel iframe at 0xffffffffb867da58 (end = 0xffffffffb867db20)
rax 0xffffffffbb0c5110 rbx 0xffffffffd9d59e40 rcx 0x0
rdx 0xdeadbeefdeadbeef rsi 0x2 rdi 0x2
rbp 0xffffffffb867dbf0 r8 0xffffffff812781f8 r9 0x0
r10 0xffffffffb0e026a0 r11 0x202 r12 0xffffffffbb0c5110
r13 0xffffffffb867dba0 r14 0xffffffff83251180 r15 0x0
rip 0xffffffff821341bf rsp 0xffffffffb867db28 rflags 0x10202
vector: 0xd, error code: 0x0
14 ffffffffb867dbf0 (+ 408) ffffffff821341bf <bfs> Inode::CheckPermissions const(int) + 0x0f
15 ffffffffb867dc50 (+ 96) ffffffffaff2a0c2 </boot/system/add-ons/kernel/file_systems/bindfs> bindfs_rename(fs_volume*, fs_vnode*, char const*, fs_vnode*, char const*) + 0x82
16 ffffffffb867de90 (+ 576) ffffffff80115de9 <kernel_x86_64> common_rename(int, char*, int, char*, bool) + 0x199
17 ffffffffb867df20 (+ 144) ffffffff8011d3e8 <kernel_x86_64> _user_rename + 0xf8
18 ffffffffb867df30 (+ 16) ffffffff80163541 <kernel_x86_64> x86_64_syscall_entry + 0xfb
user iframe at 0xffffffffb867df30 (end = 0xffffffffb867dff8)
rax 0x81 rbx 0x225288dc000 rcx 0x1a3f7f0b10c
rdx 0xffffff9c rsi 0x225288756a0 rdi 0xffffff9c
rbp 0x7fe0147f0830 r8 0xfefefefefefefeff r9 0x8080808080808080
r10 0x225288756c0 r11 0x202 r12 0x225292744b0
r13 0x22528d87bf8 r14 0x225288756c0 r15 0x225292744a8
rip 0x1a3f7f0b10c rsp 0x7fe0147f0818 rflags 0x202
vector: 0x63, error code: 0x0
19 00007fe0147f0830 (+ 0) 000001a3f7f0b10c </boot/system/lib/libroot.so> _kern_rename + 0x0c
20 00007fe0147f0880 (+ 80) 000001d0d3e36b68 </boot/system/lib/perl5/5.42.0/x> Perl_setdefout (nearest) + 0x7685
21 00007fe0147f08a0 (+ 32) 000001d0d3e90295 </boot/system/lib/perl5/5.42.0/x> Perl_runops_standard + 0x16
22 00007fe0147f0930 (+ 144) 000001d0d3d7c09c </boot/system/lib/perl5/5.42.0/x> perl_run + 0x282
23 00007fe0147f0980 (+ 80) 000001e1c275ddb8 </boot/system/bin/perl> main + 0xd3
24 00007fe0147f09b0 (+ 48) 000001e1c275dcbe </boot/system/bin/perl> _start + 0x3e
25 00007fe0147f09e0 (+ 48) 000001477decb515 </boot/system/runtime_loader> runtime_loader + 0x115
26 0000000000000000 (+ 0) 00007ffffd0d2258 <commpage> commpage_thread_exit + 0x00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment