Package: procps
Version: 1:3.2.7-3
Severity: normal
When running "sysctl net.ipv6.conf", sysctl crashes after printing most
(or all?) output, printing the following to stderr:
*** glibc detected *** free(): invalid next size (fast): 0x0000000000503030 ***
Aborted
I have reproduced the problem on multiple amd64 machines running debian,
and one running ubuntu. I have not been able to reproduce it on i386.
According to Steinar Gunderson <[EMAIL PROTECTED]> (who I asked to
reproduce the problem), the following patch should do the trick:
--- procps-3.2.7.orig/sysctl.c
+++ procps-3.2.7/sysctl.c
@@ -135,7 +135,7 @@
}
/* used to open the file */
- tmpname = malloc(strlen(name)+strlen(PROC_PATH)+1);
+ tmpname = malloc(strlen(name)+strlen(PROC_PATH)+2);
strcpy(tmpname, PROC_PATH);
strcat(tmpname, name);
slashdot(tmpname+strlen(PROC_PATH),'.','/'); /* change . to / */
The reason why the extra byte is necessary can (again according to
Steinar) be spotted in sysctl.c:196.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-amd64
Locale: LANG=C, LC_CTYPE=nb_NO (charmap=ISO-8859-1)
Versions of packages procps depends on:
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip
Versions of packages procps recommends:
ii psmisc 22.3-1 Utilities that use the proc filesy
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]