[Pkg-utopia-commits] r3471 - in /packages/unstable/hal/debian: changelog patches/15-probe-input-segfault-fix.patch patches/series

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Thu Jan 28 00:16:13 UTC 2010


Author: biebl
Date: Thu Jan 28 00:16:08 2010
New Revision: 3471

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=3471
Log:
Fix segfault in hald-probe-input.

* debian/patches/15-probe-input-segfault-fix.patch
  - Initialize error structure before using it to avoid segfault in
    hald-probe-input. (Closes: #562068)
    Thanks to Sebastian Andrzej Siewior for the patch.

Added:
    packages/unstable/hal/debian/patches/15-probe-input-segfault-fix.patch
Modified:
    packages/unstable/hal/debian/changelog
    packages/unstable/hal/debian/patches/series

Modified: packages/unstable/hal/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/changelog?rev=3471&op=diff
==============================================================================
--- packages/unstable/hal/debian/changelog (original)
+++ packages/unstable/hal/debian/changelog Thu Jan 28 00:16:08 2010
@@ -2,6 +2,11 @@
 
   * debian/hal.init
     - Source the lsb init-functions after checking if the daemon exists.
+  * debian/patches/15-probe-input-segfault-fix.patch
+    - Initialize error structure before using it to avoid segfault in
+      hald-probe-input. (Closes: #562068)
+      Thanks to Sebastian Andrzej Siewior for the patch.
+
 
  -- Michael Biebl <biebl at debian.org>  Thu, 28 Jan 2010 00:19:31 +0100
 

Added: packages/unstable/hal/debian/patches/15-probe-input-segfault-fix.patch
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/patches/15-probe-input-segfault-fix.patch?rev=3471&op=file
==============================================================================
--- packages/unstable/hal/debian/patches/15-probe-input-segfault-fix.patch (added)
+++ packages/unstable/hal/debian/patches/15-probe-input-segfault-fix.patch Thu Jan 28 00:16:08 2010
@@ -1,0 +1,50 @@
+commit dcb2829b8eff61463b0869614ddb07b1c86cecaa
+Author: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
+Date:   Wed Dec 30 12:42:52 2009 +0100
+
+    linux/probe-input: don't use error prio init
+    
+    it may happen in the out: case that LIBHAL_FREE_DBUS_ERROR (&error) is
+    called before the error structure is initialized via
+    dbus_error_init (&error). This could lead to a segfault during startup
+    as seen in dmesg:
+    
+    |Intel AES-NI instructions are not detected.
+    |padlock: VIA PadLock not detected.
+    |hald-probe-inpu[1793]: segfault at 2 ip 00007f656fb68969 sp 00007fff39eeb950 error 4 in libc-2.10.2.so[7f656faf3000+14a000]
+    |hald-probe-inpu[1796]: segfault at 2 ip 00007fa2c3293969 sp 00007fffd92a5dd0 error 4 in libc-2.10.2.so[7fa2c321e000+14a000]
+    |hald-probe-inpu[1797]: segfault at 2 ip 00007f1d08ba2969 sp 00007fff34244e30 error 4 in libc-2.10.2.so[7f1d08b2d000+14a000]
+    |hald-probe-inpu[1799]: segfault at 2 ip 00007f35c0e3d969 sp 00007fffe5ec7ee0 error 4 in libc-2.10.2.so[7f35c0dc8000+14a000]
+    |hald-probe-inpu[1800]: segfault at 2 ip 00007f931c556969 sp 00007fffe1825b60 error 4 in libc-2.10.2.so[7f931c4e1000+14a000]
+    |hald-probe-inpu[1801]: segfault at 2 ip 00007f5156d9a969 sp 00007fff4e620af0 error 4 in libc-2.10.2.so[7f5156d25000+14a000]
+    |RPC: Registered udp transport module.
+    |RPC: Registered tcp transport module.
+    
+    What I run into seems to be reported as Debian #562068 [0]. This patch
+    makes the segfault go away on my machine.
+    
+    [0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562068
+    
+    Signed-off-by: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
+    Signed-off-by: Martin Pitt <martin.pitt at ubuntu.com>
+
+diff --git a/hald/linux/probing/probe-input.c b/hald/linux/probing/probe-input.c
+index 94e9929..cad47d3 100644
+--- a/hald/linux/probing/probe-input.c
++++ b/hald/linux/probing/probe-input.c
+@@ -70,6 +70,7 @@ main (int argc, char *argv[])
+ 	fd = -1;
+ 
+ 	setup_logger ();
++	dbus_error_init (&error);
+ 
+ 	button_type = getenv ("HAL_PROP_BUTTON_TYPE");
+ 	if (button_type == NULL)
+@@ -96,7 +97,6 @@ main (int argc, char *argv[])
+ 	if (udi == NULL)
+ 		goto out;
+ 
+-	dbus_error_init (&error);
+ 	if ((ctx = libhal_ctx_init_direct (&error)) == NULL)
+ 		goto out;
+ 

Modified: packages/unstable/hal/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/patches/series?rev=3471&op=diff
==============================================================================
--- packages/unstable/hal/debian/patches/series (original)
+++ packages/unstable/hal/debian/patches/series Thu Jan 28 00:16:08 2010
@@ -1,6 +1,7 @@
 # Debian patches for hal
 01_at_console.patch
 10_nonpolkit-mount-policy.patch
+15-probe-input-segfault-fix.patch
 40_readme_remove_hacking.patch
 45-fix-libusb-detection.patch
 50-kfreebsd-setproctitle.patch




More information about the Pkg-utopia-commits mailing list