Commit Graph

11642 Commits

Author SHA1 Message Date
Quincey Koziol
ddcae21908 [svn-r19298] Description:
Bring r19297 from trunk to 1.8 branch:

	Whack a few more memory errors exposed by valgrind.

	Make the debugging dump output a little bit prettier.

Tested on:
   FreeBSD/32 6.3 (duty) w/debug
   (h5committested on trunk)
2010-08-25 16:08:49 -05:00
Quincey Koziol
02a65c4685 [svn-r19291] Description:
Avoid getting object information for soft/external links if we aren't
going to traverse across the link itself.

Tested on:
    Linux/64 2.6 (chicago) w/debug & production
    (h5committest coming up)
2010-08-24 14:57:38 -05:00
Quincey Koziol
0915222903 [svn-r19290] Description:
Correct another error in metadata accumulator dirty region calculations
(this time with a corner case when freeing data in the file).

Tested on:
    Linux/32 2.6 (talwit) w/debug
    (following up with h5committest)
2010-08-24 14:50:29 -05:00
Albert Cheng
b93b61ee6b [svn-r19289] bug 1678: temporary fix.
Description: aix -q32 default to a memory limit that some HDF5 tests would
fail in malloc.

Solution:
Temporary hardset
RUNSERIAL=${RUNSERIAL="env LDR_CNTRL=MAXDATA=0x20000000@DSA"}
to bypass this problem until the test programs are fixed.  Though -q64 binary
has a higher default memory limit and does not need this patch, it is applied
the same for the sake of simplicity since it is a temporary fix.

Tested:
in BP, both -q32 and -q64 modes. No h5committest since this applies to the
AIX platform only.
2010-08-24 13:55:16 -05:00
Allen Byrne
d65e4dbd7e [svn-r19287] Corrected name of file appearing in expected output.
(Missed edit from local test)
2010-08-24 08:48:15 -05:00
Quincey Koziol
063ca4ad8a [svn-r19284] Description:
Add note about correcting valgrind issues.
2010-08-24 06:13:39 -05:00
Quincey Koziol
e5d9761aba [svn-r19283] Description:
Bring r19278 from trunk to 1.8 branch:

	More fixes to memory allocation, etc. exposed by valgrind.

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-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
       in production mode
   Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
   Mac OS X/32 10.6.4 (amazon) in debug mode
   Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
       in production mode
   Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
2010-08-23 19:33:09 -05:00
Allen Byrne
3de1ecd9c8 [svn-r19281] Fix test scripts changed extension of file 2010-08-23 17:29:51 -05:00
Allen Byrne
23da86c0dc [svn-r19280] Fix test scripts (Cmake needs to capture output yet)
linux script needed -R and double compare:

Tested: local linux
2010-08-23 17:28:52 -05:00
Raymond Lu
9d68049cc6 [svn-r19279] Bug 1934 - I added support of all data types for H5Tget_order. I added a new byte order
H5T_ORDER_MIXED specifically for compound types and its derived types.  They report mixed 
orders if they have members of different orders.

Tested on heiwa, jam, and amani.
2010-08-23 16:37:10 -05:00
Quincey Koziol
bec868b005 [svn-r19277] Description:
Bring r19276 from trunk to 1.8 branch:

	Correct calculation of end of dirty information in metadata accumulator

Tested on:
       FreeBSD/32 6.3 (duty) in debug mode
	(h5committested on trunk)
2010-08-22 00:01:04 -05:00
Quincey Koziol
0b00c26b02 [svn-r19274] Description:
Bring r19272 & 19273 from trunk to 1.8 branch:

	Close out various resource leaks and usages of uninitialized memory that
were flagged by valgrind.  [There's still some more valgrind warnings, but
it's better now... :-/ ]

   Also clean up warnings and code formatting.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
        Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
                in production mode
        Mac OS X/32 10.6.4 (amazon) in debug mode
        Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
                in production mode
        Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
2010-08-20 17:22:40 -05:00
Allen Byrne
2d7c01d1eb [svn-r19270] Add warning exceptions.
Add memcheck ignore.
2010-08-20 15:04:06 -05:00
Allen Byrne
eb0cc7a576 [svn-r19266] Remove configuration of cmake zlib config filed which has been deleted.
Correct naming of SKIP test
Tested: local linux
2010-08-20 11:01:45 -05:00
Allen Byrne
82799772ad [svn-r19263] Undo r19258 2010-08-20 10:48:42 -05:00
Allen Byrne
b846a4ba20 [svn-r19259] Correct formatting and endif labels 2010-08-20 10:36:00 -05:00
Allen Byrne
fc975cffa2 [svn-r19258] Remove unused variables and allocation
Tested: local linux
2010-08-20 10:18:41 -05:00
Allen Byrne
456ebba0fb [svn-r19257] Change Cmake to allow a local zlib header to be used in H5Zdelate module.
Corrected use of "SKIP" message in cmake.
Corrections to cmake configuration files (for cmake external projects).

Community suggested changes.

Tested: local linux
2010-08-20 10:16:06 -05:00
Quincey Koziol
7c31e7873c [svn-r19256] Description:
Bring r19255 from trunk to 1.8 branch:

	Add missing include file from r19252.

Tested on:
       (Eyeballed only, too simple to require h5committest)
2010-08-20 09:14:58 -05:00
Quincey Koziol
525caddd9e [svn-r19254] Description:
Bring r19252 & 19253 from trunk to 1.8 branch:

   Bring Coverity changes from branch to trunk:


r19161:
Fixed the part for matching the subset info with dataset

r19189:
BZ1646: h5dump does not check number of dimensions for subsetting parameters against the dataset

Changed subset_t structure from holding hsize_t pointers to holding new subset_d pointers, which hold the original hsize_t pointer + len. this len is then checked against dataset ndims in the handle_dataset function of h5dump.

Changed all references to use new data structure.

Added tests for each subset parameter.

r19190:
Added new h5dump ddl files

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (h5committested on Coverity branch)
2010-08-19 16:16:28 -05:00
Raymond Lu
d221d97f99 [svn-r19250] New feature(bug #1934): I made H5Tset_order support all data types with some restictions:
1. For enum type, members shouldn't be defined yet.
        2. H5T_ORDER_NONE only works for reference and fixed-length
           string.
        3. For opaque type, the order will be ignored.
        4. For compound type, all restrictions above apply to the
           members.

I'll change H5Tget_order and do another commit.

Tested on jam, heiwa, and amani.
2010-08-18 14:32:26 -05:00
Quincey Koziol
0949a25c13 [svn-r19248] Description:
Bring r19247 from trunk to 1.8 branch:

    Bring r19246 from Coverity branch to trunk:

    Improve metadata "accumulator" for files to track the dirty region within
the accumulator data.  This allows the accumulator to drop clean data and
reduces the number of I/O operations when it is dirtied.

    This is progress toward Bz#1142 - speeding up the fheap test (which it
doesn't help much, actually, but it does help other aspects of file I/O).

Tested on:
    FreeBSD/32 6.3 (duty) in debug mode
    (h5committested on trunk)
2010-08-17 08:29:01 -05:00
Quincey Koziol
9f779228f9 [svn-r19243] Description:
Bring r19242 from trunk to 1.8 branch:

    Add in override for testing timeout alarm to allow "HDF5_ALARM_SECONDS"
environment variable to change the timeout value from the default value.

Tested on:
    Mac OS X/32 10.6.4 (amazon) w/debug & production
    (Too minor to require h5committest)
2010-08-16 16:07:06 -05:00
Quincey Koziol
d9af3b4fdf [svn-r19238] Description:
Bring r19237 from trunk to 1.8 branch:

	Clean up misc. compiler warnings.

Tested on:
        FreeBSD/32 6.3 (duty) in debug mode
        Mac OS X/32 10.6.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
                in production mode
        Mac OS X/32 10.6.4 (amazon) w/parallel, in debug mode
2010-08-12 16:27:02 -05:00
Quincey Koziol
94e652b097 [svn-r19234] Description:
Initialize loop variable that caused failures in certain circumstances.

	Also clean up compiler warnings and release MPI datatype.

Tested on:
        Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
2010-08-12 14:01:02 -05:00
Albert Cheng
5db5169813 [svn-r19229] Reset alarm_seconds back to 20 minutes.
Description:
honest3 v1.8 failed in parallel test.  It got stuck in the same
testpar/testphdf5 subtest (cbhsssdrpio).  This is an old problem.
Upon closer inspection, the testphdf5, when terminated, had clocked
up 1hr 9min 46 sec wall clock time.  Honest1 system also sent a message
that an mpi process has used up 30+ CPU minutes which exceeded their login
node cpu time limit and they killed the process.  I also did a hand-run
of testphdf5. All subtests before cbhsssdrpio completed in a few minutes.
Therefore, it is safe to say the majority of the 70 minutes of wall clock
time are spent in the sub-test cbhsssdrpio. It also used up lots of CPU
time.  cbhsssdrpio is likely infinite looping.

Since MPI application is prone to infinite looping due to message deadlock,
the testphdf5 has a built-in protection to give each subtest at most 20 minutes
of wall-clock time to run.  When the 20 minutes wall-clock time is exceeded,
the testphdf5 will attempt to terminate itself.  This prevents unnecessary
CPU time consumption in infinite looping.

But that clock limit was changed to 30 and then 60 minutes.  I should have
but failed to, noticed the change mentioned by Quincey.  IMO, 20 wall clock
time is more than sufficient for each subtest of testphdf5 to complete.
If a subtest takes longer than 20 minutes, it is likely infinite looping.
Giving it more time will not help.

If a subtest of testphdf5 takes more than 20 minutes, it should be broken
down to small tests that will finish way under 20 minutes so that it is 
much easier to see progress and identify any deadlock problems.

In view of this, I am changing the testphdf5 time limit back to 20 minutes.
This will at least stop the CPU TIME exceeding limits and annoying the
system administrators.

Maybe there could be a provision, such as environment variable like
$HDF5_ALARM_SECOND to modify the alarm duration on individual execution.
Even so, that should be used temporary to see if an execution just needs
a little more time.

Tested: just eyeballed as the change is trivia.
2010-08-11 13:12:21 -05:00
Allen Byrne
051cf48d0b [svn-r19226] File read/write happens at configure time, so moved windows specific copy from test macro to where the expected file is copied.
Tested: windows
2010-08-11 11:48:38 -05:00
Allen Byrne
e4925d1512 [svn-r19224] Moved subfolder checked outside of OPTION command. If folder doesn't exists, there is no reason to have option enabled.
Tested: local linux
2010-08-11 09:30:20 -05:00
Allen Byrne
5d82f0d79f [svn-r19220] Move hl fortran ADD_SUBDIRECTORY to right after fortran ADD_SUBDIRECTORY. This fixes a problem with compiler generated files not including target module directory on some linux machines.
Tested: local linux
2010-08-10 15:03:43 -05:00
Allen Byrne
9c21c3934a [svn-r19219] Corrected minor format/location of commands.
Tested: local linux
2010-08-10 14:35:44 -05:00
Albert Cheng
ac240e1ed4 [svn-r19216] Bug 1986, error1.
It is an error to use the condition H5_HAVE_FSEEK64 to control the definition
of HDlseek. It caused errors in AIX where lseek64 is available.

Replaced it with H5_HAVE_LSEEK64. Also added the missing HDstrcasecmp macro.

Tested: AIX using default and --disable-largefile.
2010-08-10 11:41:45 -05:00
Allen Byrne
ecdf033499 [svn-r19213] Test for compare of output text to expected needed to account for windows line endings.
Moved ADD_TEST commands to macro.

Tested: local linux, windows
2010-08-10 11:07:54 -05:00
Allen Byrne
a558736861 [svn-r19212] Updated cmake file with community suggested changes for cmake install files.
Removed configure check for fseek

Tested: local linux
2010-08-10 09:55:55 -05:00
Quincey Koziol
e5a5aed0cd [svn-r19208] Description:
Switch from using "UINT16_MAX" to "64 * 1024" for assert macro.

Tested on:
    None, just eyeballed.
2010-08-10 08:26:14 -05:00
Albert Cheng
9d208e402d [svn-r19204] Bug 1917: post cleanup.
fseek64 was used to support large file access for the STDIO driver back in
version 1.2.2 in year 2000.  Some how it was not included in version 1.4.0.
Now, fseeko64 is used to support large file. There is no more need for fseek64
which is not a standard call. Removed its presence from configure and related
files.

Tested: jam for configure only.
2010-08-09 17:12:38 -05:00
Allen Byrne
1e263eb46c [svn-r19200] Added tests that subdirectories exist before using ADD_SUBDIRECTORY CMake command
Added cache set command for default install prefix

Tested: local linux
2010-08-09 12:19:20 -05:00
Allen Byrne
56b00bca02 [svn-r19199] new expected output file for BZ1953 fix 2010-08-09 12:17:30 -05:00
Allen Byrne
02b5824f57 [svn-r19198] [BZ1953]implementation for the proposed changes suggested by the "h5dump_output_option" RFC. This required that the region reference code be duplicated and reduced to allow the do_bin_output() function to understand region references. The container type-id also needed to be propagated into the do_bin_output() function and functions referenced (render_bin_output*).
Existing tests tested the binary function, so only one test was added to test the region reference generated file.
Tested: local linux
2010-08-09 12:15:06 -05:00
Raymond Lu
a586c760ee [svn-r19196] Defined the file format version H5F_LIBVER_18 to prepare for the 1.10 release. It isn't used
anywhere yet.

Tested on jam - very simple change and not used.
2010-08-09 11:21:13 -05:00
Albert Cheng
b439d940fd [svn-r19194] Bug fix: ID 1917
Fixed a typo in the Windows definitions. Had __ftelli64, should be _ftelli64.

Tested by Allen in Windows platform.
2010-08-09 10:45:41 -05:00
Albert Cheng
d5817f6ac2 [svn-r19187] Bug fix: ID 1917
The STDIO only checked for fseeko and incorrectly assumed it can support file
sizes larger than 32bits. Fixed it by making to use fseeko64 if supported, else
use fseeko.  To simplify the code, assume fseeko which is a POSIX function must
be supported. Therefore, fseek is not used at all.
(Note: the above applies to Unix-like system.  The Windows platform has
hardcoding using Windows functions which are NOT POSIX compliant.)

Tested: h5committested. Also tested in BP (AIX) 32/64 and enable/disable-largefile.
2010-08-06 14:47:06 -05:00
Albert Cheng
7b375507ae [svn-r19186] Bug fix: ID 1917
In some machine (Linux), when --disable-largefile is used, it claims it has
fseeko64 but off64_t is NOT supported.  Moved the test of fseeko64 and ftello64
to where fseek64 is so that they are tested only if off64_t is supported.

Tested: h5committested.
2010-08-06 14:37:50 -05:00
Allen Byrne
ab1051e0b0 [svn-r19184] Corrected h5repack verbose test for windows
Updated tools/lib source dir variable for source list

Tested: local linux
2010-08-06 13:06:30 -05:00
Quincey Koziol
ae32ba97fd [svn-r19182] Description:
Bring r19179 from trunk to 1.8 branch:

Bring changes from Coverity branch back to trunk:

r19079 & 19080:
[BZ1942]  h5dump -u to generate XML, it does not respect the -m option

xml version of dump_data function didn't check for use of fp_format variable.

Added new test expected file for committed bug 1942

r19103, 19104 & 19105:
[BZ1821] h5repack -v did not display correct output for a selected compression. Needed new test for comparing output of -v option.

Added new test file for solution to BZ1821

BZ1821 - Bring test changes from the shell script actually used.

Tested on:
    Mac OS X/32 10.6.4 (amazon) debug & production
    (h5committested on branch)
2010-08-06 12:51:53 -05:00
Raymond Lu
2d9d60aef1 [svn-r19177] Took out several redundant lines when object IDs are closed.
Tested on jam.
2010-08-05 12:16:51 -05:00
Raymond Lu
bb83e1ff9a [svn-r19172] Bug fix for #1239 - The filter's public function CAN_APPLY should return htri_t not
herr_t.  To minimize the change of the library's behavior, in the function 
H5Z_prelude_callback of H5Z.c, if the return value of can_apply is FALSE and
the filter is MANDATE, this function returns a FAILURE.  If the return value is FALSE 
but the filter is OPTIONAL, this function returns a SUCCEED.  During the IO, the filter 
will fail and return a size of zero.  But the pipeline will skip this filter. 

Tested on jam, linew, and amani.  Tested on jam with szip.
2010-08-05 10:53:16 -05:00
Albert Cheng
30ac7d89a2 [svn-r19170] Bug fix: 1917.
The previous fix had the Windows code in H5private.h but they should have been
in H5win32defs.h which holds all Windows-specific definitions.  Moved the fix.

Tested: BP (AIX) to confirm the fix is still valid. Windows tests will occur
in daily tests tonight.
2010-08-04 19:13:49 -05:00
Quincey Koziol
ecee0e5e1e [svn-r19169] Description:
Bring r19168 from trunk to 1.8 branch:

	Clean up compiler warning

Tested on:
	None, eyeballed only (tested on trunk)
2010-08-03 23:22:21 -05:00
Albert Cheng
e440364f8e [svn-r19166] Bug fix: 1917.
Description:
test/big incorrectly determined not able to write files larger than 2GB and
skipped the SEC2 and STDIO driver tests.  The reason was because it was using
off_t while the SEC2 driver is using lseek64 which expects off64_t type.

Solution:
Created a new HDoff_t which is set to off_t or off64_t or other appropriate
type depending on which of lseek or lseek64 is available. Changed SEC2 file
driver and the big test to use this common definition.

Tested:
In BP (AIX), using --enable and --disable-largefile, for both 32 and 64 bits
modes.  Did not do h5committest because: 1. the error was exposed in the remote
BP machine; 2. the change is trivial.
2010-08-03 18:33:43 -05:00
Allen Byrne
28ffed9ebf [svn-r19164] Add configure changes from r19159 to CMake. 2010-08-02 09:04:20 -05:00