Package: libgksu2-0
Version: 2.0.11-1
Severity: serious
Tags: patch

--- Please enter the report below this line. ---

First sorry for my English.

If gksu(do) fails execute command and sometimes if executed command fails, this 
is printed to stdout:
*** glibc detected *** gksu: double free or corruption (fasttop): 0x0901c278 ***
and gksu(do) will stop and never finish. This makes many scripts that are using 
gksu(do) non-functional.

The patch that works for me is added.

Cheers,
Petr

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.29-2-686

Debian Release: squeeze/sid
  500 unstable        www.debian-multimedia.org 
  500 unstable        uqm.debian.net 
  500 unstable        ftp.debian-unofficial.org 
  500 unstable        ftp.cz.debian.org 
  500 unstable        deb.opera.com 

--- Package information. ---
Depends                          (Version) | Installed
==========================================-+-==============
libatk1.0-0                    (>= 1.20.0) | 1.26.0-1
libc6                        (>= 2.3.6-6~) | 2.9-18
libcairo2                       (>= 1.2.4) | 1.8.8-2
libfontconfig1                  (>= 2.4.0) | 2.6.0-4
libfreetype6                    (>= 2.2.1) | 2.3.9-5
libgconf2-4                    (>= 2.23.2) | 2.26.2-1
libglade2-0                   (>= 1:2.6.1) | 1:2.6.4-1
libglib2.0-0                   (>= 2.16.0) | 2.20.3-1
libgnome-keyring0              (>= 2.20.3) | 2.26.1-1
libgtk2.0-0                     (>= 2.8.0) | 2.16.2-1
libgtop2-7                     (>= 2.23.2) | 2.26.1-1
libpango1.0-0                  (>= 1.14.0) | 1.24.3-1
libstartup-notification0         (>= 0.10) | 0.10-1
libxml2                        (>= 2.6.27) | 2.7.3.dfsg-1
zlib1g                        (>= 1:1.1.4) | 1:1.2.3.3.dfsg-14
gconf2                       (>= 2.10.1-2) | 2.26.2-1
xauth                                      | 1:1.0.3-2
 OR xbase-clients                          | 1:7.4+3


Recommends      (Version) | Installed
=========================-+-===========
sudo                      | 1.7.0-1


Package's Suggests field is empty.



--- libgksu/libgksu.c	2009-06-24 18:00:13.000000000 +0000
+++ libgksu/libgksu.c-new	2009-06-27 10:06:51.000000000 +0000
@@ -2860,7 +2860,6 @@
                              "does not allow you to run this program. Contact "
                              "the system administrator."));
             }
-	  g_free(child_stderr);
 	  if(cmdline)
 	    {
 	      /* sudo already exec()ed something else, don't report
@@ -2869,6 +2868,7 @@
 	      if (!g_str_has_suffix (cmdline, "sudo"))
 		{
 		  g_free (cmdline);
+          g_free(child_stderr);
 		  return FALSE;
 		}
 	      g_free (cmdline);

Reply via email to