Commit Graph

12199 Commits

Author SHA1 Message Date
Allen Byrne
5b3223c7c5 [svn-r20216] Valgrind fix for memory leak in h5tools_dump_xxx which is fixed by adding a new function;
htri_t H5Tdetect_vlen_str(hid_t tid) to h5tools. This needs to be called before any H5Aread/H5Dread and if TRUE, then call vlen_reclaim function after the corresponding h5tools_dump_xxx().

Tested: local linux and valgrind
2011-03-09 15:00:20 -05:00
Allen Byrne
2a492f23a1 [svn-r20211] Valgrind indicated error in writing past buffer. Contary to ref man H5O_get_comment does not return null char in size.
Tested: local linux and valgrind
2011-03-09 10:49:46 -05:00
Peter Cao
d97523f47c [svn-r20209] add test case for -y -o for h5dump 2011-03-09 10:09:53 -05:00
Allen Byrne
a60f8c8f5e [svn-r20208] Valgrind fix for memory leak in free_tables - 2nd malloc was freed by free_table calls but not the first malloc. Added HDfree('table') after each free_table() call.
Tested: local linux and valgrind
2011-03-09 08:57:41 -05:00
Peter Cao
10aa3f98d6 [svn-r20207] removed duplicate line. 2011-03-09 08:44:24 -05:00
Peter Cao
a56b49aaba [svn-r20206] Updated manifest and source code for fixing h5dump -y -o problem 2011-03-09 08:07:38 -05:00
Jonathan Kim
b22867e42b [svn-r20205] Add tall-6.ddl from previous commit r20204.
Test file for Bug 2183 - h5dump -y -o prints out attribute values
2011-03-08 17:46:34 -05:00
Peter Cao
869a942926 [svn-r20204] Add test case for check -y -o options 2011-03-08 17:11:39 -05:00
Jonathan Kim
8245bf1572 [svn-r20203] Purpose:
Fix Bug 2120 - h5copy: improve to copy an object into same HDF file

Description:
    Before the fix users can't copy an object (dataset or group) with 
    different name if input file (-i) and output file (-o) is same.   
    This feature would be useful to clone any object with different name and 
    reuse contents.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake (jam)
2011-03-08 15:17:17 -05:00
Allen Byrne
9d115d89f2 [svn-r20202] Correct order of tests DEPENDS 2011-03-08 15:03:14 -05:00
Allen Byrne
1a12719753 [svn-r20201] Order fflush tests - fflush2 DEPENDS on fflush1 2011-03-08 14:50:51 -05:00
Allen Byrne
233d0574aa [svn-r20200] Add expected fail condition to memcheck alternate tests. 2011-03-08 14:42:50 -05:00
Allen Byrne
fe660a8da4 [svn-r20197] Change test macro to allow control of infile and outfile parameters 2011-03-08 10:11:02 -05:00
Scot Breitenfeld
6d350b4112 [svn-r20195] Description: Fixed memory leaks (valgrind detected) in field_info and make tables routines.
Tested: jam (gnu and intel compilers)
2011-03-07 10:13:51 -05:00
Scot Breitenfeld
86f15d4a33 [svn-r20192] Description: Bug 1939: h5tbget_field_info_f
* Fixed error in passing an array of characters with different length
    field names for h5tbmake_table.

  * Fixed error in h5tget_field_info_f with packing the C strings
    into a fortran array of strings.

  * Added optional arguement to h5tbget_field_info_f called maxlen
    which returns the maximum string character length in a field name
    element.

  * Uncommented out test for h5tbget_field_info_f in the test program
    and added additional checks for the output.

Tested: jam (intel and gnu compilers)
2011-03-06 17:20:56 -05:00
Jonathan Kim
0619b155aa [svn-r20188] Purpose:
Fixing Bug 2161 - GMQS: h5dump - only on Windows, skip displaying a data value every a certain lines in array type dataset

Description:
    Fixed h5dump for skipping some values for long array type dataset on 
    Windows. This issue only occurred on Windows due to the different 
    return behavior from _vsnprintf() funtion.
     
Tested:
 Windows, jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
2011-03-04 11:21:26 -05:00
Allen Byrne
190878d797 [svn-r20186] Verify/cleanup code due to debugging changes
Tested: local linux
2011-03-04 09:44:48 -05:00
Allen Byrne
1fff6f29d5 [svn-r20184] Enable h5dump tests in valgrind 2011-03-04 08:54:37 -05:00
Raymond Lu
a0f4d6d40c [svn-r20180] I added 2 public macros to the H5public.h - H5_VERSION_GE and H5_VERSION_LE - and put some test cases in tfile.c.
Tested on jam, heiwa, and amani.
2011-03-02 15:44:44 -05:00
Allen Byrne
f62a87c45b [svn-r20172] Add h5mkgrp utility to package list 2011-03-01 14:27:22 -05:00
Allen Byrne
484b1f5cfa [svn-r20171] Add HDF5_USING_MEMCHECKER guards around script mode ADD_TEST. This will replace the list of ignore tests in CTestCustom.cmake file.
Tested: local linux
2011-03-01 14:20:20 -05:00
Allen Byrne
f306642f9a [svn-r20170] Correct name of tool from hdf2gif to h52gif. 2011-03-01 14:05:27 -05:00
Allen Byrne
c6382f50c5 [svn-r20168] BZ2048: Add -E --enable-error-stack option to h5dump.
Tested: local linux, heiwa, windows
2011-02-28 15:25:25 -05:00
Allen Byrne
600bcf0dc3 [svn-r20161] Correct test properties for test order
Tested: local linux
2011-02-25 12:51:15 -05:00
Allen Byrne
b36793344f [svn-r20156] Update macros to correct errors found on windows 2011-02-25 09:30:43 -05:00
Allen Byrne
251a65e448 [svn-r20155] Change macros - do not need URL parameter 2011-02-24 15:59:27 -05:00
Allen Byrne
982812004b [svn-r20154] Update error in szip ext project macro 2011-02-24 14:45:12 -05:00
Allen Byrne
05dfc85de8 [svn-r20153] Move ext lib handling for ext project building to a common macro. Update HDF5 project to use HDFMacros.cmake file. Add test properties for test ordering.
Tested: local linux, windows
2011-02-24 14:43:07 -05:00
Allen Byrne
be50f4a424 [svn-r20151] On windows the name of static zlib library is dependent on the use of HDF_LEGACY_NAMING value when built from SVN/TGZ source. 2011-02-24 06:57:56 -05:00
Allen Byrne
85304e9fee [svn-r20149] Change Name of Legacy naming option 2011-02-23 15:09:55 -05:00
Allen Byrne
caffe76187 [svn-r20145] Correct misplaced bracket 2011-02-22 10:16:13 -05:00
Allen Byrne
5d320f5c89 [svn-r20141] Bring 1.8 r20139 cmake and windows changes to trunk 2011-02-22 09:55:04 -05:00
Quincey Koziol
cab5c372bf [svn-r20135] Description:
Bring r20134 from metadata journaling merging branch to trunk:

	Bring changes from metadata journaling branch to "merging" branch:

Unify routine to mark a dataset's metadata as changed.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, w/threadsafe, in production mode
        Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
2011-02-21 19:03:37 -05:00
Jonathan Kim
cf7f31f0c6 [svn-r20132] Purpose:
Fixing Bug 2092 - h5dump does not display index for a dataset

Description:
    improve the test case from previous checkin r20108, which also display 
    dataset via region reference.
    Previous Log:
    h5dump skip displaying array indices every certain number when the 
    array type dataset is relatively big. The certain number varies 
    according to the size of each array. 
    This checkin fix the skipping array indices problem. This fix also
    correct indentation of the dataset data output.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
2011-02-21 16:53:36 -05:00
Albert Cheng
09103b6cb0 [svn-r20124] Bug fix (ID: 519)
The content of bin/config_para_ibm_sp.sh has been added to
release_docs/INSTALL_parallel long ago.  Just got around to remove it.

Tested: no need since nothing refer to config_para_ibm_sp.sh except MANIFEST.
Ran bin/chkmanifest.
2011-02-18 14:57:06 -05:00
Raymond Lu
4f75c8c24b [svn-r20121] Bug 1586 - the datatype handler created with H5Tencode/decode had the reference count 0. I fixed it by changing the APP_REF parameter of H5I_register from FALSE to TRUE and added a test case in dtypes.c.
Tested on jam, heiwa, and amani.
2011-02-18 14:01:34 -05:00
Quincey Koziol
40d2ecb45f [svn-r20119] Description:
Clean up MPI resource leaks in parallel tests, along with a bunch of
compiler warnings.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
                w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x,
                w/C++ & FORTRAN, in production mode
        Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
                w/szip filter, w/threadsafe, in production mode
        Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
        Mac OS X/32 10.6.6 (amazon) in debug mode
        Mac OS X/32 10.6.6 (amazon) w/C++ & FORTRAN, w/threadsafe,
                in production mode
2011-02-17 16:43:07 -05:00
Frank Baker
264f76847e [svn-r20116] Description:
Update copyright dates to include 2011.
2011-02-17 14:03:56 -05:00
Neil Fortner
45093b00f9 [svn-r20113] Add note to RELEASE.txt about external file cache. 2011-02-17 11:26:29 -05:00
Neil Fortner
afe9ef21d3 [svn-r20112] Merge open_file_pool branch into trunk.
Tested: jam (branch tested with h5committest)
2011-02-17 11:11:05 -05:00
Jonathan Kim
e3c11f1146 [svn-r20110] Ignore valgrind memleak test on cmake script for H5LS-tgrp_comments and H5DUMP-tarray1_big test cases. 2011-02-17 09:21:13 -05:00
Jonathan Kim
bb294c2b1e [svn-r20108] Purpose:
Fixing Bug 2092 - h5dump does not display index for a dataset

Description:
    h5dump skip displaying array indices every certain number when the 
    array type dataset is relatively big. The certain number varies 
    according to the size of each array. 
    This checkin fix the skipping array indices problem. This fix also
    correct indentation of the dataset data output.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
2011-02-15 14:28:48 -05:00
Jonathan Kim
23a80ac554 [svn-r20103] Purpose:
Change to use HDxxx macros.

Description:
    Originally this started for fixing incorrect pointer usage. But that got
    fixed through coverity merge. So this is mainly changing to use HDxxx 
    macros and clean up some related code.
     
Tested:
 jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
2011-02-14 17:20:32 -05:00
Albert Cheng
1c625e6ad9 [svn-r20095] Removed AIX 5.3 and Cray xt3, added AIX 6.1 as supported platforms. 2011-02-13 02:25:35 -05:00
Neil Fortner
2134048e82 [svn-r20089] Add note to known problems section of RELEASE.txt about run-all-ex.sh on Cygwin.
Tested: kwrite
2011-02-11 16:24:10 -05:00
Albert Cheng
6509e1056d [svn-r20076] Updated for the adding of mpicc/mpif90 as default parallel compiler commands
for linux systems.
2011-02-09 16:07:29 -05:00
Quincey Koziol
2fbca68293 [svn-r20070] Description:
Switch order of system includes, to correct error on FreeBSD machines.

Tested on:
	FreeBSD/32 6.3 (duty) w/debug
2011-02-09 09:48:42 -05:00
Quincey Koziol
575469a6a7 [svn-r20065] Description:
Bring changes from Coverity branch to trunk:

r19975:
Fixed potential mem leak at H5O_attr_open_by_name

r19980:
Fix coverity issue 792.
Free tmp_env_prefix in H5Lexternal.c line 365 if it is not NULL but its contents are 0 when it goes out of scope.

r20039:
Eliminate warnings about nested extern and implicit declarations of parallel_print and address Coverity defects 712-781 by #including h5tools_utils.h in h5diff_array.c, h5diff_attr.c, h5diff_dset.c and h5diff_util.c.

r20046:
Purpose: Address TOCTOU warnings in h5jam and h5unjam

Description: Coverity is afraid that the state of the input file could change
between the call to stat() and the call to open().  This is called a time-of-
check time-of-use (TOCTOU) vulnerability.  Modified stat calls to fstat which
uses an open file pointer so it (hopefully) won't complain any more.

r20047:
Addressed coverity issues 135-137, 462-464.  Local pointers that needed to be freed in case of error were moved out of a switch statement in src/H5Tnative.c, set to NULL, and checked before freeing.

Tested on:
    Mac OS X/32 10.6.6 (amazon) w/debug & production
    (h5committested on Coverity branch)
2011-02-08 16:35:54 -05:00
Neil Fortner
0863d30372 [svn-r20064] Purpose: Implement external file cache
Description:
Implements a cache of files opened through external links.  Adds the public
functions H5Pset_elink_file_cache_size(), H5Pget_elink_file_cache_size(), and
H5Frelease_file_cache().

Tested: jam, amani, heiwa (h5committest), fedora 64.
2011-02-08 12:32:56 -05:00
Neil Fortner
f3ee1cc38d [svn-r20063] Merge changes from trunk from revision 19519 to 20062 into open_file_pool branch. No testing needed as the branch is currently identical to the trunk. 2011-02-08 10:55:31 -05:00