Bug#638753: libhdf5-serial-1.8.7: threadsafe memory leaks

Jerome BENOIT g6299304p at rezozer.net
Sun Aug 21 15:35:26 UTC 2011


Package: libhdf5-serial-1.8.7
Severity: wishlist

Hello:

Since a while I have noticed via valgrind some memory leaks let by the function `H5Zfilter_avail':
the following Code reproduce the issue:

--8><---------------------------------------------------
// gcc -o test_H5Zfilter_avail test_H5Zfilter_avail.c -lhdf5
// valgrind --leak-check=yes --leak-check=full --show-reachable=yes ./test_H5Zfilter_avail
//

#include <stdio.h>
#include <hdf5.h>

// http://wiki.hdfgroup.org
#ifndef H5Z_BZIP2
#define H5Z_BZIP2 307
#endif

int main(int nargs, char *args[]) {

	fprintf(stderr,
			"filter with identifier `%d' is %s registered\n",
		H5Z_BZIP2,
		(H5Zfilter_avail(H5Z_BZIP2))?"already":"not"
		);

	return (0); }
--><8-----------------------------------------------------

A closer look shows that the memory leakes are let by the threadsafe machinery.

hth,
Jerome



-- System Information:
Debian Release: Wheezy*
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-amd64-mbp62 (SMP w/4 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-grass-devel mailing list