Code Monkey home page Code Monkey logo

libudev-devd's People

Contributors

adriaandegroot avatar amshafer avatar arrowd avatar dumbbell avatar evadot avatar jbeich avatar johalun avatar kevans91 avatar kwm81 avatar mattmacy avatar tcberner avatar valpackett avatar wulf7 avatar zeising avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

libudev-devd's Issues

Need udev_hwdb for wlroots >= 0.16

In wlroots#3541 the hardcoded list of EDID manufacturers was replaced by udev_hwdb_new which is not implemented on FreeBSD:

libudev-devd/udev-hwdb.c

Lines 33 to 39 in a91c357

LIBUDEV_EXPORT struct udev_hwdb *
udev_hwdb_new(struct udev *udev)
{
TRC("(%p", udev);
UNIMPL();
return (NULL);
}

$ pkg install sway-devel
$ vidcontrol -s 1 </dev/ttyv0 # aka Ctrl+Alt+F1
$ if [ -z "$XDG_RUNTIME_DIR" ]; then export XDG_RUNTIME_DIR=/tmp; fi
$ seatd-launch sway
[...]
00:00:00.003 [ERROR] [wlr] [backend/drm/backend.c:187] udev_hwdb_new failed
[...]

CC @emersion @unrelentingtech

tag_list is always NULL

#include <libudev.h>

int main() {
    int res;
    struct udev * context;
    struct udev_device * device;
    char const * sys_name;
    char const * subsystem;
    context = udev_new();

    device = udev_device_new_from_syspath(
       context,
       "/dev/input/event0"
    );
    if (device == NULL) {
        return 1;
    }

    printf("%d",udev_device_has_tag(device,"TAG"));
    return 0;
}
cc udev.c -I /usr/local/include/ -L/usr/local/lib -ludev

udev_new
udev_device_new_from_syspath(/dev/input/event0)
udev_device_get_syspath(0xbd83f41b000) /dev/input/event0
udev_device_get_sysname(0xbd83f41b000(/dev/input/event0)) event0
udev_device_get_udev(0xbd83f41b000(/dev/input/event0))
udev_device_get_syspath(0xbd83f419100) kbdmux0
udev_device_has_tag(0xbd83f41b000, TAG)

Segmentation fault (core dumped)

Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0 0x00000008216c13e6 in udev_list_entry_get_by_name (ule=0x0, name=0x200620 "TAG") at ../udev-list.c:170
170 ret = RB_FIND(udev_list, ule->list, find);
(gdb) bt
#0 0x00000008216c13e6 in udev_list_entry_get_by_name (ule=0x0, name=0x200620 "TAG") at ../udev-list.c:170
#1 0x00000008216be853 in udev_device_has_tag (ud=0xbd83f41b000, tag=0x200620 "TAG") at ../udev-device.c:185
#2 0x0000000000201829 in main ()

This causes kwin_wayland to segfault since it uses has_tag here https://invent.kde.org/plasma/kwin/-/blob/784d48ef/src/tabletmodemanager.cpp#L38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.