[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
This bug was fixed in the package udev - 161+git20100827-1 --- udev (161+git20100827-1) maverick; urgency=low * Merge fixes from trunk: - keymap: Fix Acer TravelMate 4720 (LP: #569815) - gudev: fix crash if netlink is not available (LP: #581527) - udev(7) manpage: Fix description of $attr (LP: #348513) * debian/changelog: Fix bug reference in previous upload. * debian/udev.{pre,post}inst: Remove pre-lucid upgrade code. * debian/udev.postinst: Drop obsolete /lib/udev/devices/sndstat symlink, OSS has gone from our kernels ages ago. (LP: #605443) * debian/udev.postinst, create_devices(): Drop devices which are handled by static_dev_create_links(). * debian/udev.postinst, create_devices(): Drop devices which are handled by devtmpfs. * debian/rules: Work around gtk-doc not being able to work in a separate build tree; debian/rules prep already fixes $srcdir→$builddir, so copy the relevant source files into the build tree so that gtk-doc has something to scan for. (LP: #519670) * Add debian/local/hotplug.functions: Provides some helper functions which udev callouts can use. This is being used by usb-modeswitch, alsa, and other Debian packages. Copied from current udev sid package. (LP: #625110) -- Martin Pitt martin.p...@ubuntu.com Mon, 30 Aug 2010 11:21:43 +0200 ** Changed in: udev (Ubuntu Maverick) Status: Fix Committed = Fix Released -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
** Branch linked: lp:~ubuntu-core-dev/ubuntu/maverick/udev/ubuntu -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Stephane, if this is important to you, please feel free to backport it to lucid and reopen the lucid task. I don't object to it from an SRU POV, but I won't do it myself. -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
The current code in udev is quite inconsistent, though -- about half of the udev_monitor_*() functions return NULL if the passed monitor is NULL, the other half will crash. -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Looking at the stacktrace and rhythmbox code, it actually crashes in g_udev_client_new(). This is actually a gudev bug. ** Changed in: rhythmbox (Ubuntu Maverick) Status: New = Invalid ** Changed in: udev (Ubuntu Lucid) Milestone: lucid-updates = None ** Changed in: udev (Ubuntu Maverick) Assignee: (unassigned) = Martin Pitt (pitti) ** Changed in: udev (Ubuntu Maverick) Status: Triaged = In Progress ** Changed in: rhythmbox (Ubuntu Lucid) Status: New = Invalid -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=e4dcdc4ab232bcbbe61a2026c16e647d9302cdd2 ** Changed in: udev (Ubuntu Maverick) Status: In Progress = Fix Committed ** Changed in: udev (Ubuntu Maverick) Assignee: Martin Pitt (pitti) = (unassigned) -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
** Tags removed: patch -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
** Tags added: lucid maverick patch -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Sorry, I don't agree with this patch. This should be an assertion, rather than a check -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Note that the bug here is clearly in rhythmbox, libudev correctly returns NULL for the monitor because there is no netlink socket - and rhythmbox failed to check for that, and blindly passed that NULL around assuming it was a valid object ** Changed in: udev (Ubuntu Lucid) Status: New = Won't Fix ** Changed in: udev (Ubuntu Maverick) Status: New = Triaged ** Changed in: udev (Ubuntu Maverick) Importance: Undecided = Low ** Also affects: rhythmbox (Ubuntu) Importance: Undecided Status: New -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Won't Fix the lucid udev, the correct patch merely turns a segfault into an assertion error and will still terminate the process. Will send adding an assert in there upstream for maverick though Opened the bug on rhythmbox for not checking the return value is not NULL before blindly passing it around -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
I know that using lucid in a container on top of an older kernel (in this case Hardy's) is not recommended and is known to fail. Most users doing that know that, though I believe that if something can be fixed in udev to correctly fail rather than segfault, it's still worth fixing. Please let me know if you need any additional information on that environment. -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Ok, so that patch does the trick. I haven't been looking at the definition of the return codes so -1 might not be a good idea :) ** Patch added: Check if udev_monitor != NULL http://launchpadlibrarian.net/48581043/libudev-monitor.c.diff -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
Here's a debdiff for Lucid. It seems like Debian isn't using any kind of patching system, so that's a patch directly applied to upstream code + it's changelog entry targeted at lucid-proposed. As for maverick, I believe that this bug should be fixed upstream and will then be pulled from a new udev in Debian without needing any ubuntu-specific release (as udev is currently synced from Debian). ** Patch added: debdiff for lucid-proposed http://launchpadlibrarian.net/48582648/libudev-monitor.c.diff ** Changed in: udev (Ubuntu) Milestone: None = lucid-updates ** Changed in: udev (Ubuntu) Milestone: lucid-updates = None ** Also affects: udev (Ubuntu Maverick) Importance: Undecided Status: New ** Also affects: udev (Ubuntu Lucid) Importance: Undecided Status: New ** Changed in: udev (Ubuntu Lucid) Milestone: None = lucid-updates -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 581527] Re: udev segfaults in udev_monitor_enable_receiving when netlink doesn't work
** Patch removed: debdiff for lucid-proposed http://launchpadlibrarian.net/48582648/libudev-monitor.c.diff ** Patch added: debdiff for lucid-proposed http://launchpadlibrarian.net/48585067/581527.debdiff -- udev segfaults in udev_monitor_enable_receiving when netlink doesn't work https://bugs.launchpad.net/bugs/581527 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs