Bug#562679: libc6: malloc_info() segv when no mallocs yet
Package: libc6
Version: 2.10.1-3
Severity: normal
The program nomallocinfo.c below prints a bit
<malloc version="1">
<heap nr="0">
<sizes>
then gets a segfault. malloc_info() won't have much to say when there's
been no mallocs yet, but I think it shouldn't segfault in that case.
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
int
main (void)
{
malloc_info(0,stdout);
return 0;
}
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.6.30-1-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc6 depends on:
ii libc-bin 2.10.1-3 GNU C Library: Binaries
ii libgcc1 1:4.4.2-4 GCC support library
Versions of packages libc6 recommends:
pn libc6-i686 <none> (no description available)
Versions of packages libc6 suggests:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii glibc-doc 2.10.1-5 GNU C Library: Documentation
ii locales 2.10.1-5 GNU C Library: National Language (
-- debconf information:
* glibc/upgrade: true
glibc/disable-screensaver:
glibc/restart-failed:
* glibc/restart-services: rsync openbsd-inetd exim4 cron atd
Reply to: