IRC channel logs

2026-08-30.log

back to list of logs

<damo22>what is supposed to happen when you get a SIGTRAP in userspace?
<damo22>is that even supposed to happen?
<damo22>Thread 4 received signal SIGTRAP, Trace/breakpoint trap.
<damo22>0x000000000108732c in __GI___mach_msg_trap () at /part4/debian/glibc-2.43/build-tree/hurd-amd64-libc/mach/mach_msg_trap.S:2
<damo22>2 kernel_trap (__mach_msg_trap,-25,7)
<damo22>(gdb)
<damo22>seems to be a kernel trap not a user trap
<damo22>#7 0xffffffff81058656 in kdb_trap (type=<optimized out>, type@entry=3, code=0, regs=regs@entry=0xffffffffc0e00e78) at ../i386/i386/db_interface.c:316
<damo22>#8 0xffffffff8105b9b5 in user_trap (regs=0xffffffffc0e00e78) at ../i386/i386/trap.c:552
<damo22>#9 0xffffffff8102e002 in _take_trap () at ../x86_64/locore.S:677
<damo22>(gdb) p *regs
<damo22>$7 = {r15 = 0x1040, r14 = 0x3f978, r13 = 0x401c0, r12 = 0x40120, r11 = 0x3313e, r10 = 0x39000, r9 = 0x1000, r8 = 0xfffffffffffff000, edi = 0x3f978, esi = 0x1, ebp = 0x1041c90, cr2 = 0x176c0, ebx = 0x1, edx = 0x0, ecx = 0x0, eax = 0x0, trapno = 0x3, err = 0x0, eip = 0x7b21, cs = 0x1f, efl = 0x246, uesp = 0x10419f8, ss = 0x17}
<damo22>it was a user trap
<damo22>it was supposed to call i386_exception(6, 2, 0)
<damo22>but i intercepted it with kdb