[Bug 268033] x11/xscreensaver: Crashing and dumping core on unlock

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Dec 2022 09:28:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268033

--- Comment #3 from Duncan Bayne <duncan@bayne.id.au> ---
This is proving tricky to debug :)

I've added:

WITH_DEBUG_PORTS=x11/xscreensaver

... to /etc/make.conf, rebuilt xscreensaver, and I'm running it with lldb. 
However when the segfault happens it leaves the screen locked, preventing me
from interacting further with lldb.

I can unlock the system by switching to a different virtual console and killing
lldb, but that obviously stops the debugging session.  

Anyways, this is what I've been able to glean so far:

Process 35829 stopped
* thread #1, name = 'xscreensaver-aut', stop reason = signal SIGSEGV: invalid
address (fault address: 0x0)
    frame #0: 0x000000080066fe84 libc.so.7`strlen + 84
libc.so.7`strlen:
->  0x80066fe84 <+84>: movq   (%rdi), %r11
    0x80066fe87 <+87>: leaq   (%r11,%r8), %rcx
    0x80066fe8b <+91>: notq   %r11
    0x80066fe8e <+94>: andq   %r11, %rcx
((lldb) Terminated

(Terminated here is when I kill lldb from the virtual console).

-- 
You are receiving this mail because:
You are the assignee for the bug.