Commit Graph

2310 Commits

Author SHA1 Message Date
Neil Fortner
0ea9a38644 [svn-r22607] Port test from r22601 from trunk to 1.8 branch. Also remove spurious
FUNC_ENTER_PACKAGE_TAG and FUNC_ENTER_STATIC_TAG macros.

Tested: jam, koala, ostrich (h5committest), durandal
2012-07-26 13:12:00 -05:00
Quincey Koziol
43995f12ac [svn-r22583] Description:
Bring r22582 from trunk to 1.8 branch:

    Refactor ID class registration to be more like how other "class"s in the
library are registered, and clean up compiler warnings.

Tested on:
    Mac OSX/64 10.7.4 (amazon) w/debug
    (Too minor to require h5comittest)
2012-07-16 15:28:44 -05:00
HDF Tester
11ddad75fb [svn-r22488] Snapshot version 1.8 release 10 (snap4) 2012-06-24 19:22:53 -05:00
Quincey Koziol
2725ab3daf [svn-r22485] Description:
Merge r22484 from trunk to 1.8 branch:

    Copy the file image test file from the source directory to the build
directory, instead of trying to open the [in-memory] file R/W.

    Also, clean up a few other test files that were left lying around from
other tests.

Tested on:
    MacOSX/64 10.7.4 (amazon) w/debug
    Too minor to require h5committest
2012-06-23 18:40:53 -05:00
Vailin Choi
596d5b2662 [svn-r22438] (1) fix for making MEM_GHEAP as MEM_DRAW
(2) fix to extend into the aggregator based on threshold 
(3) fix for the "flavor" logging problem
(4) fix for test failures due to the above fixes
(5) bug fix for h5stat when h5stat against a non-existing file

--Ths line, and th se below, will be ignored--

M    test/mf.c
M    src/H5MFaggr.c
M    src/H5FDpublic.h
M    src/H5MF.c
M    src/H5FDmulti.c
M    src/H5FDlog.c
M    src/H5Faccum.c
M    tools/h5copy/testfiles/h5copytst.out.ls
M    tools/h5copy/testfiles/h5copy_ref.out.ls
M    tools/h5stat/testh5stat.sh.in
M    tools/h5stat/h5stat.c
2012-06-06 16:12:34 -05:00
Allen Byrne
fe744bd8df [svn-r22412] reduce compiler warnings by removing unreferenced variables and adding cast
Tested: local linux
2012-05-25 12:58:59 -05:00
Raymond Lu
58d14b196b [svn-r22394] I forgot to close a few datatypes in test_str_create. I fixed them in this commit.
Tested on jam - very simple change.
2012-05-23 09:47:59 -05:00
Mohamad Chaarawi
ca8d4218d2 [svn-r22376] add a test to expose a memory leak when adding/removing the same property in property list multiple times.
fix that bug.
2012-05-18 09:18:09 -05:00
Quincey Koziol
34ada2e41d [svn-r22291] Description:
Bring r22287 from trunk to 1.8 branch:

    Clean up more FUNC_ENTER/FUNC_LEAVE macros and move H5D & H5T code toward
the final design (as exemplified by the H5EA & H5FA code).

Tested on:
    Mac OSX/64 10.7.3 (amazon) w/debug & parallel
2012-04-17 15:59:36 -05:00
Allen Byrne
5510432932 [svn-r22264] Use correct index for inserting null terminator
Tested: windows under debug
2012-04-09 13:17:26 -05:00
Vailin Choi
dee21e9e82 [svn-r22252] Fixed a bug in H5Ocopy(): When copying an opened object, call the object's
flush class action to ensure that cached data is flushed so that H5Ocopy will get
the correct data.  (HDFFV-7853)
this line, and those below, will be ignored--

_M   .
M    test/objcopy.c
M    src/H5Ocopy.c
M    src/H5Goh.c
M    src/H5Dint.c
M    src/H5Opkg.h
M    src/H5Doh.c
M    src/H5Toh.c
M    src/H5O.c
M    src/H5Dpkg.h
M    release_docs/RELEASE.txt
_M   fortran
2012-04-05 14:14:38 -05:00
Allen Byrne
9ac4faa923 [svn-r22248] Added new files and tests to CMakeLists.txt
Tested: local linux
2012-04-04 14:15:33 -05:00
Quincey Koziol
177cbf2b9b [svn-r22239] Description:
Bring r22233 from trunk to 1.8 branch:

   Correct several errors in fractal heap code: root indirect block was
getting pinned/protected more than once, "single" free space sections weren't
getting "re-parented" correctly when the heap transitioned between having a
root indirect block and a root direct block, and several related issues.  Also
cleaned up some warnings in library/tests.

Tested on:
   FreeBSD/32 8.2 (loyalty) w/gcc4.6, w/C++ & FORTRAN, in debug mode
   FreeBSD/64 8.2 (freedom) w/gcc4.6, 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 (koala) w/Intel compilers, w/default API=1.6.x,
       w/C++ & FORTRAN, in production mode
   Mac OSX/64 10.7.3 (amazon) w/debug
2012-04-02 13:21:05 -05:00
Quincey Koziol
362f22119d [svn-r22228] Description:
Bring r22219 from trunk to 1.8 branch: (with release manager's blessing)

      Merge "file image" changes from feature branch back to trunk.

Tested on:
   h5committested
2012-04-01 17:27:15 -05:00
Quincey Koziol
0e573bd240 [svn-r22215] Description:
Bring r22171 from trunk to 1.8 branch:

Bring "merge committed datatypes during H5Ocopy" feature from branch to
    trunk.  (Also has some minor bugfixes with it)

Tested on:
    Mac OSX/64 10.7.3 (amazon) w/debug
    (h5committest coming up)
2012-03-30 23:40:52 -05:00
Neil Fortner
658af5c1f8 [svn-r22174] Port r22173 from trunk to 1.8 branch
Purpose: Fix HDFFV-7762

Description:
When copying an object with attribute creation order tracked, the attribute
creation order was not copied correctly to the destination file, causing an
error if the creation order was also indexed (due to attempting to insert
duplicate keys) or incorrect creation orders otherwise.  Fixed to copy the
creation order correctly.

Also fixed the attribute character set not being copied, and fixed an issue
where an attribute opened with H5Aopen (or similar, but not by_idx), from an
object using the latest format but without creation order being tracked, would
always report the creation order as 0 (and marked as valid).

Tested: jam, koala, ostrich (h5committest), durandal
2012-03-28 16:20:20 -05:00
Dana Robinson
81145a2968 [svn-r22162] Pushed r22161 from the trunk to the 1.8 branch.
This adds a message when the time-consuming istore test is skipped due to a lack of sparse file support.

Minor change: tested on 64-bit Mac OS-X Lion
2012-03-27 16:54:19 -05:00
Dana Robinson
5a65a6d367 [svn-r22160] Pushed r22152 from the trunk to the 1.8 branch.
This adds a "skipped" message when the 50x50x50 sparese istore test is skipped.

Minor change: tested on jam (test not skipped) and 64-bit Mac OS-X Lion (test skipped due to HFS sparse files not being suppored in the SEC2 VFD).
2012-03-27 16:21:42 -05:00
Dana Robinson
db1dedef50 [svn-r22150] Merged trunk rev 22103 which fixes HDFFV-7769 (Windows tests time out when the core VFD is set).
Tested on: jam, koala, ostrich, loyalty, 64-bit Windows 7
2012-03-26 15:44:47 -05:00
Dana Robinson
35a903680e [svn-r22148] Removed incorrect executable svn properties from text, source, in, and HDF5 files. 2012-03-26 15:12:51 -05:00
Raymond Lu
0035a10a22 [svn-r22145] #Issue 7922 - H5Pset_data_transform had seg fault with some operations like x*-100.
The parser mistaked "-" as substraction.  I fixed it and also fixed another problem
with some special cases like 100-x and 2/x.  This is a merge from the trunk.

Tested on jam, koala, and ostrich.
2012-03-26 14:06:42 -05:00
Quincey Koziol
5c0ed1b304 [svn-r22113] Description:
Bring r22112 from trunk to 1.8 branch:

        Minor code safety issue in test/fheap.c and whitespace in other files.

Tested on:
        Mac OSX/64 10.7.3 (amazon) w/debug
        (Too minor to require h5committest)
2012-03-21 15:28:59 -05:00
Neil Fortner
4afb95df4f [svn-r22073] Port r22072 to 1.8 branch
Purpose: Fix rare corruption bug (HDFFV-7879)

Description:
When using the new object header format, it was possible for corruption to occur
if the first object header chunk changed size such that the lenght of the "chunk
0 size" field changed.  This only occurred if there were messages that had not
been decoded.  The original algorithm that changed the object header chunk size
marked all messages as dirty, causing those that had not been decoded to have
both the raw and native form invalidated.  Changed the algorithm to avoid
marking messages dirty and added assertions to catch the case where messages
are dirtied without being decoded (or recently created) first.

Tested: jam, koala, ostrich (h5committest), durandal
2012-03-15 14:23:55 -05:00
Neil Fortner
bd54b26466 [svn-r22071] Port r22070 to 1.8 branch
Purpose: Fix rare corruption bug

Description:
When using the new object header format and adding an attribute with a size near
64K, it was possible for file corruption to occur.  This happened only if the
first object header chunk was smaller than 256 bytes and then grew to larger
than 64K after the attribute was added.

Tested: ostrich, jam, koala (h5committest), durandal
2012-03-15 14:13:04 -05:00
Quincey Koziol
37156e3914 [svn-r22055] Description:
Bring r22053 from trunk to 1.8 branch:

    Correct corner case for creating a contiguous dataset with a zero-sized
dataspace, when the allocation time is set to early.

    Also clean up a few compiler warnings in the dataspace code.

Tested on:
    Mac OSX/64 10.7.3 (amazon) w/debug & parallel
2012-03-12 16:54:00 -05:00
Allen Byrne
6a2c50b10a [svn-r22025] Cleanup compiler warnings.
Add HD prefix to tools library based tests. Cleaned allocation/free in tests.

Tested: local linux/ h5committetest
2012-03-05 09:19:02 -05:00
Quincey Koziol
34e40a1294 [svn-r21935] Description:
Bring r21932 & r21934 from trunk to 1.8 branch:

r21932:
    Correct misnamed FUNC_ENTER macro.

r21934:
    Remove some leftover uses of the __FUNCTION__ macro, replacing them with
FUNC macro, as used everywhere else.

Tested on:
    Mac OSX/64 10.7.3 (amazon) w/debug & production
2012-02-13 10:35:21 -05:00
Quincey Koziol
5f94d17285 [svn-r21925] Description:
Bring r21919-21924 from trunk to 1.8 branch: cleanup FUNC_ENTER macros,
etc.

    Also removed Subversion mergeinfo tags from a few directories and files.
These are artifacts from non-root merges using pre-1.6 Subversion clients. (This
should fix the problem of unchanged directories looking "changed" during
checkins.)

Tested on:
    Mac OSX/64 10.7.3 (amazon) w/debug & production
    (daily tested on trunk)
2012-02-10 14:48:08 -05:00
Raymond Lu
a7c969372e [svn-r21912] Issue 7756 - Creating a dataset in a read-only file caused seg fault when the file is closed. I fixed the problem by putting a condition check early in H5O_create of H5O.c. The old code checked it too late, not until a file space is created. I added a test case in tfile.c to check the creation of group, dataset, attribute, and datatype.
Tested on jam - I've tested the same changes in the trunk with h5committest.
2012-02-07 10:49:44 -05:00
Allen Byrne
6158a3128c [svn-r21805] Update CMake Required version in all folders to match current standard 2.8.6 2011-12-05 11:32:07 -05:00
Neil Fortner
4904187cab [svn-r21791] Port r21789 to 1.8 branch
Purpose: Fix HDFFV-7833

Description:
When shrinking a chunked dataset, the library fills in the unused parts of
chunks that have been shrunk.  The fill value buffer allocated for this purpose
had a maximum size of 1 MB, but the fill was performed in a single operation.
Therefore, if the amount of unused space in a chunk after being shrunk was
greater than 1 MB, the library would read off the end of the fill value buffer.
Changed the maximum fill buffer size to be equal to the chunk size.

Tested: durandal; jam, koala, heiwa (h5committest)
2011-12-01 10:47:54 -05:00
Raymond Lu
db7410f838 [svn-r21765] Issue 7618 - the library had seg fault when it tried to shrink the size of compound data type through H5Tset_size immediately after the type was created. I fixed it in this commit. I'm bringing the fix from the trunk. The only files being change are test/dtypes.c, src/H5T.c, src/H5Tconv.c, and release_docs/RELEASE.txt. All others are property changes.
Tested on jam, koala, and linew.
2011-11-15 17:45:06 -05:00
Raymond Lu
92e5075da8 [svn-r21718] Issue 7618 - the library had seg fault when it tried to shrink the size of compound data type through H5Tset_size immedia
tely after the type was created.  I'm bringing the fix from the trunk that I committed a while ago. My real changes are in test/dtypes.c, src/H5T.c, and release_docs/RELEASE.txt.  All other changes are property changes.

Tested on jam.  But I tested the same fix in the trunk on jam, koala, and linew.
2011-11-04 17:58:49 -05:00
Allen Byrne
141383fb26 [svn-r21717] Update cmake configuration
Update cmake to generate source folders in VS
Brought parallel changes from trunk

Tested: local linux
2011-11-04 13:45:41 -05:00
Quincey Koziol
44b776141b [svn-r21676] Description:
Don't check dataset storage size for compressed datasets with region
reference datatypes.  (The address of the region reference type in the file
varies and affects the compressed size)

Tested on:
    Mac OS X/32 10.7.2 (amazon) w/debug & production + check-vfd
2011-10-26 09:58:36 -05:00
Neil Fortner
f22b7d2e12 [svn-r21646] Port r21603 to 1.8 branch
Purpose: Add generic skip list implementation

Description:
Added new H5SL_TYPE_GENERIC skip list type, which uses void *'s as keys and a
client-supplied callback for key comparison.  This was added to support the
upcoming "merge named datatype" feature for H5Ocopy, but may be used in other
places as well.  Also added testing.

Also fixed a potential bug with the H5SL_TYPE_OBJ implementation, and added
testing for that.

Tested: jam, koala, heiwa (h5committest), durandal
2011-10-21 14:51:32 -05:00
Neil Fortner
c36a79fd91 [svn-r21631] Port revisions 21629 and 21630 to 1.8 branch
Purpose: Update fix committed in r21556

Description:
An old patch was mistakenly committed in r21556.  Replaced this fix with the
latest.

Tested: jam, koala, heiwa (h5committest)
2011-10-20 17:20:00 -05:00
Quincey Koziol
13bc2e73cf [svn-r21618] Description:
Bring r21617 from trunk to 1.8 branch:

    Recalculate the size of destination attribute message when the source and
destination versions are different during an object copy operation.
(Jira: HDFF-7718)

Tested on: 
    Mac OS X/32 10.7.2 (amazon) w/debug
    (h5committested on trunk)
2011-10-20 12:13:11 -05:00
Neil Fortner
8f0218e3f5 [svn-r21605] Back out r21604 (wait for code freeze to be lifted) 2011-10-18 16:37:31 -05:00
Neil Fortner
b02f6c2171 [svn-r21604] Port r21603 to 1.8 branch
Purpose: Add generic skip list implementation

Description:
Added new H5SL_TYPE_GENERIC skip list type, which uses void *'s as keys and a
client-supplied callback for key comparison.  This was added to support the
upcoming "merge named datatype" feature for H5Ocopy, but may be used in other
places as well.  Also added testing.

Also fixed a potential bug with the H5SL_TYPE_OBJ implementation, and added
testing for that.

Tested: jam, koala, heiwa (h5committest), durandal
2011-10-18 16:29:13 -05:00
Quincey Koziol
fe32509673 [svn-r21566] Description:
Bring r21561 from trunk back to 1.8 branch:

    Correct error in loading local heap prefix & data block from the file.
Sometimes the local heap's prefix could be loaded before the data block (e.g.
using H5Oget_info), but then when the data block was loaded later, the free
list information would get lost, causing the heap's size to grow larger than
necessary.  This is Jira bug #HDFFV-7767

Tested on:
    Mac OS X/32 10.7.2 (amazon) w/debug
    (h5committest coming up)
2011-10-14 12:42:22 -05:00
Neil Fortner
41052158c7 [svn-r21563] Improve testing for H5Pset_libver_bounds
Add testing for H5F_LIBVER_18

Tested: durandal (too minor for full h5committest)
2011-10-14 10:29:55 -05:00
Neil Fortner
363988bd77 [svn-r21557] Port r21556 to 1.8 branch
Purpose: Fix bug in H5Ocopy

Description:
H5Ocopy could get confused when copying a named datatype containing an
attribute which used that named datatype as its datatype.  This happened
because H5Ocopy would recurse into the attribute's datatype before the object
the attribute was in was fully copied (i.e. before the "post-copy" pass).
Modified H5Ocopy to avoid recursing before the post-copy step in this case.
Required many changes, including to how non-committed shared messages are
copied.

Tested: jam, koala, heiwa (h5committest); durandal
2011-10-13 19:03:09 -05:00
Dana Robinson
0e0b6fc5ab [svn-r21524] Reverts 20920 (HDFFV-7579 fix) (this is 20913/21 from the trunk)
This change reverts the HDFFV-7579 fix while we more carefully consider enum conversions as a part of the h5compare work.

Tested on jam, Windows 7 and linew.
2011-10-11 17:09:25 -05:00
Allen Byrne
3fa119253b [svn-r21513] Add HDprefix and change when pio_timer.h is included
Tested
2011-10-11 08:49:40 -05:00
Albert Cheng
25ceee7392 [svn-r21460] Problem:
Some machines, like LLNL udawn, a blue-gene machine, requires all executables,
be launched by some command like mpirun.

Solution:
Added $RUNSERIAL to launch the executable.

Tested: LLNL uDawn.
2011-10-04 03:37:34 -05:00
Scot Breitenfeld
4af3cd2b7a [svn-r21421] Merged the Fortran 2003 changes from the trunk into the 1.8 branch, used:
svn merge -r 20506:21414 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/fortran

Tested: jam (gnu, intel, pgi compilers)

Also merged effected non-Fortran files: 
svn merge -r21247:r21248 https://svn.hdfgroup.uiuc.edu/hdf5/trunk/src/libhdf5.settings.in
2011-09-27 00:02:38 -05:00
Allen Byrne
9115bab9e3 [svn-r21376] JIRA-HDFFV-2748: Relplace WIN32 macros in source. New H5_HAVE_WIN32_API and H5_HAVE_VISUAL_STUDIO defines only need to be set on windows. Autotools configure is not affected.
Trunk passed for a week and cmake branch has been in place > 3 weeks.

Tested: local linux
2011-09-12 09:02:44 -05:00
Raymond Lu
e3b66f853a [svn-r21343] Issue 7674 - clang compiler with -fcatch-undefined-behavior -ftrapv discovered several problems in the test suite. One of
them is in the INIT_INTEGER macro definition in dt_arith.c.  It complained about line 150 where it tried to subtract 1 from
the negative minimal value of "int", causing it to overflow (or underflow).  So I revised the code to avoid it.

Tested on jam and Mac OS Lion with CLANG compiler.  But I tested the same change for the trunk with h5committest.
2011-08-31 15:28:03 -05:00
Allen Byrne
a4c02d6350 [svn-r21311] add variables and commands to create libhdf5.settings. Add option to enable embedded strings. Add test to grep for string.
Trunk cycle passed and verified on windows.
2011-08-25 10:35:40 -05:00