You are not logged in.

#1 2024-03-28 17:22:43

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 270

ddcutil dumps the core under linux-zen 6.8.2.zen1-1

Since my last update of kernel linux-zen (6.8.1.zen1-1 -> 6.8.2.zen1-1) I am getting ddcutil dumping the core.
As a side affect, automount isn't working any more.
Rolling back to previous kernel version fixes everything.
Upstream bug is here.


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#2 2024-03-28 17:39:47

loqs
Member
Registered: 2014-03-06
Posts: 17,458

Re: ddcutil dumps the core under linux-zen 6.8.2.zen1-1

It might help to provide upstream with the backtrace with debug symbols from the core dump.  The results of the bisecting between 6.8.1.zen1-1 and 6.8.2.zen1-1 and if the issue is limited to zen.

Offline

#3 2024-04-07 20:43:56

Leprotto
Member
Registered: 2023-07-07
Posts: 14

Re: ddcutil dumps the core under linux-zen 6.8.2.zen1-1

loqs wrote:

It might help to provide upstream with the backtrace with debug symbols from the core dump.  The results of the bisecting between 6.8.1.zen1-1 and 6.8.2.zen1-1 and if the issue is limited to zen.

I run kernel 6.8.4-zen1-1-zen. I can help with the trace but haven't tested other kernels.

Reading symbols from /usr/bin/ddcutil...
Reading symbols from /usr/lib/debug/usr/bin/ddcutil.debug...
[New LWP 403]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/ddcutil chkusbmon /dev/usb/hiddev1 -v'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
76              VPCMPEQ (%rdi), %ymm0, %ymm1
(gdb) bt
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:76
#1  0x00005b95a72d2031 in strsplit (str_to_split=0x0, delims=0x5b95a72edaea ":") at util/string_util.c:455
#2  0x00005b95a72e44ba in avoid_device_by_usb_interfaces_property_string (interfaces=0x0) at usb/usb_displays.c:346
#3  0x00005b95a72e4778 in is_possible_monitor_by_hiddev_name (hiddev_name=hiddev_name@entry=0x5b95a7d89d60 "/dev/usb/hiddev1") at usb/usb_displays.c:405
#4  0x00005b95a72e48a9 in check_usb_monitor (device_name=0x5b95a7d89d60 "/dev/usb/hiddev1") at usb/usb_displays.c:903
#5  0x00005b95a7262752 in main (argc=<optimized out>, argv=<optimized out>) at app_ddcutil/main.c:1034

To mitigate the issue i commented out the rule in /usr/lib/udev/rules.d/60-ddcutil-usb.rules, since i don't use USB monitors. But it will be reversed whenever new hooks happens.

Last edited by Leprotto (2024-04-08 00:59:20)

Offline

#4 2024-04-09 00:36:14

loqs
Member
Registered: 2014-03-06
Posts: 17,458

Re: ddcutil dumps the core under linux-zen 6.8.2.zen1-1

At https://github.com/rockowitz/ddcutil/bl … ays.c#L404 interfaces is null which passes that value to avoid_device_by_usb_interfaces_property_string which passes it to strsplit which calls strlen on null triggering the segmentation fault.  I would suggest raising this with upstream ddcutil.

Offline

#5 2024-04-09 13:04:06

Leprotto
Member
Registered: 2023-07-07
Posts: 14

Re: ddcutil dumps the core under linux-zen 6.8.2.zen1-1

loqs wrote:

At https://github.com/rockowitz/ddcutil/bl … ays.c#L404 interfaces is null which passes that value to avoid_device_by_usb_interfaces_property_string which passes it to strsplit which calls strlen on null triggering the segmentation fault.  I would suggest raising this with upstream ddcutil.

Done.

Last edited by Leprotto (2024-04-10 16:55:48)

Offline

#6 2024-04-10 16:59:25

Leprotto
Member
Registered: 2023-07-07
Posts: 14

Re: ddcutil dumps the core under linux-zen 6.8.2.zen1-1

As https://github.com/rockowitz/ddcutil/co … 14a96ea35a it should be fixed now.

Last edited by Leprotto (2024-04-10 17:29:55)

Offline

Board footer

Powered by FluxBB