From c3a137b29796a0225ceee11873c99497ee90db10 Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Thu, 16 Apr 2026 02:36:59 -0300 Subject: [PATCH] cleanup(idt): remove debug page fault traces for PID 1 Removed debug kprintf statements that were added during the execve/SIGSEGV debugging session: PDE/PTE dumps, CR3 comparison, GOT dumps, and LAPIC ID traces. These are no longer needed now that the root cause has been fixed. --- src/arch/x86/idt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/arch/x86/idt.c b/src/arch/x86/idt.c index c1a2015a..23cdaaa1 100644 --- a/src/arch/x86/idt.c +++ b/src/arch/x86/idt.c @@ -9,6 +9,7 @@ #include "arch/x86/idt.h" #include "arch/x86/lapic.h" +#include "hal/cpu.h" #include "io.h" #include "console.h" #include "process.h" @@ -105,6 +106,10 @@ static void deliver_signals_to_usermode(struct registers* regs) { if (h == 0) { if (sig == 11) { + kprintf("[SIGSEGV] pid=%d fault_addr=0x%x eip=0x%x\n", + current_process ? (int)current_process->pid : -1, + (unsigned)current_process->last_fault_addr, + (unsigned)regs->eip); process_exit_notify(128 + sig); __asm__ volatile("sti"); schedule(); -- 2.43.0