mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-31 16:21:11 +03:00
5d6a1fa6e9
On Fri, Nov 7, 2008 at 13:07, Matthias Schwarzott <zzam@gentoo.org> wrote: > I managed to let udev-131 segfault at startup. > > I configured it like this: > CFLAGS="-Wall -ggdb" ./configure --prefix=/usr --sysconfdir=/etc --exec-prefix= > > Running it in gdb shows it segfaults at udev-rules.c:831 > > (gdb) run > Starting program: /tmp/udev-131/udev/udevd > > Program received signal SIGSEGV, Segmentation fault. > 0x0804ea06 in get_key (udev=0x9175008, line=0xafcdc8f0, key=0xafcdc5d8, > op=0xafcdc5d0, value=0xafcdc5d4) > at udev-rules.c:831 > 831 dbg(udev, "%s '%s'-'%s'\n", operation_str[*op], *key, *value); If compiled without optimization, the dbg() macro dereferences variables which are not available. Convert the string array to a function, which just returns NULL if compiled without DEBUG. |
||
---|---|---|
.. | ||
lib | ||
.gitignore | ||
Makefile.am | ||
test-udev.c | ||
udev-event.c | ||
udev-node.c | ||
udev-rules.c | ||
udev-selinux.c | ||
udev-sysdeps.h | ||
udev-util.c | ||
udev.h | ||
udev.xml | ||
udevadm-control.c | ||
udevadm-info.c | ||
udevadm-monitor.c | ||
udevadm-settle.c | ||
udevadm-test.c | ||
udevadm-trigger.c | ||
udevadm.c | ||
udevadm.xml | ||
udevd.c | ||
udevd.xml |