Hello,

Tomas Rippl <[email protected]> wrote:
> Hello,
> 
> On OpenBSD 8.0/amd64, pressing right Alt (AltGr) together with the
> grave key in my cwm session causes cwm to crash. The session ends,
> xenodm returns to the login screen, and cwm.core appears in my home
> directory. I have no custom grave binding in ~/.cwmrc.

looks a bit weird, i do use alt gr quite a low as well (i have a custom
keyboard layout to access the accented wovels via alt gr) and never
observed this in years.

i'm using still a fairly outdated snap (nov 2), but there shouldn't be
much changes in cwm anyway.

> GDB reports SIGSEGV in strcmp() at
> /usr/src/lib/libc/arch/amd64/string/strcmp.S:47.
> The faulting instruction is `mov 0x8(%rsi),%rdx` and rsi is -8,
> so the effective read address is zero. The caller is in cwm,
> but GDB does not show its name.
> 
> One possible caller is kbfunc_client_cycle()? Its same-class
> comparison passes both res_class pointers directly to strcmp().
> A missing class could explain the NULL pointer. I have not
> confirmed which binding the key combination invokes.

can you provide a full backtrace?

You can compile cwm with debug symbols:

        $ cd /usr/xenocara/app/cwm
        $ make clean obj # just in case
        $ make DEBUG='-O0 -g3'
        $ doas make DEBUG='-O0 -g3' install

(passing DEBUG to make install is important, otherwise the binary will
be stripped before installing anyway.)

then, try to replicate the crash.  the "bt" command on gdb should work,
attach its output to a mail, so that we can see the stacktrace.  in any
case, I'd say is preferable to use egdb (pkg_add gdb) to base gdb.


Thanks,
Omar Polo

Reply via email to