Bug#627349: gnome-dvb-daemon crashes if miredo is active
Jochen Friedrich
jochen at scram.de
Thu May 19 19:05:32 UTC 2011
Package: gnome-dvb-daemon
Version: 1:0.1.23-1
Severity: normal
Tags: patch
If miredo is configured, gnome-dvb-daemon immediately crashes on start.
This is due to a missing check for NULL of ->ifa_addr in vapi/cstuff.c.
According to the man page (http://www.kernel.org/doc/man-
pages/online/pages/man3/getifaddrs.3.html), this field might be NULL in certain
cases, like the miredo interface which doesn't have a hardware MAC address.
This patch fixes the issue for me:
--- gnome-dvb-daemon-0.1.23.orig/vapi/cstuff.c
+++ gnome-dvb-daemon-0.1.23/vapi/cstuff.c
@@ -74,6 +74,11 @@ get_adapters ()
}
for (iter = ifap; iter; iter = iter->ifa_next) {
+ if (iter->ifa_addr == NULL) {
+ g_debug("%s has no address.\n", iter->ifa_name);
+ continue;
+ }
+
family = iter->ifa_addr->sa_family;
if (family == AF_INET) { /* IPv4 only */
errnum = getnameinfo (iter->ifa_addr, sizeof(struct sockaddr_in),
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gnome-dvb-daemon depends on:
ii gstreamer0.10-plugins-ba 0.10.22-2 GStreamer plugins from the "bad" s
ii gstreamer0.10-plugins-go 0.10.29-2 GStreamer plugins from the "good"
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii libdbus-1-3 1.4.8-3 simple interprocess messaging syst
ii libdbus-glib-1-2 0.92-1 simple interprocess messaging syst
ii libgee2 0.6.1-2 GObject based collection library
ii libglib2.0-0 2.28.6-1 The GLib library of C routines
ii libgstreamer-plugins-bas 0.10.34-1 GStreamer libraries from the "base
ii libgstreamer0.10-0 0.10.34-1 Core GStreamer libraries and eleme
ii libgstrtspserver-0.10-0 0.10.8-2+b1 RTSP server plugin for GStreamer
ii libgudev-1.0-0 168-2 GObject-based wrapper library for
ii libsqlite3-0 3.7.6.2-1 SQLite 3 shared library
ii libxml2 2.7.8.dfsg-2+b1 GNOME XML library
gnome-dvb-daemon recommends no packages.
gnome-dvb-daemon suggests no packages.
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list