[Hdf-forum] User-defined filter parameter parsing broken in h5repack?

Elvis Stansvik elvis.stansvik at orexplore.com
Mon Aug 22 03:18:27 CDT 2016


2016-08-22 10:16 GMT+02:00 Elvis Stansvik <elvis.stansvik at orexplore.com>:

> Consider the attached noop_plugin.c. It contains a dynamically loaded
> filter plugin, with filter number 42, which does nothing except print out
> the received `cd_values` array in the filter function.
>
> Build the test plugin (on *NIX) with `make`.
>
> Then test the following:
>
> estan at newton:~/noop_plugin$ HDF5_PLUGIN_PATH=. h5repack -f UD=42,1,1
> input.hdf5 output.hdf5
> 1
> estan at newton:~/noop_plugin$ HDF5_PLUGIN_PATH=. h5repack -f UD=42,2,1,2
> input.hdf5 output.hdf5
> 2 2
> estan at newton:~/noop_plugin$
>
> Notice how in the second invokation (with UD=42,2,1,2), the cd_values
> contains { 2, 2 }, despite { 1, 2 } being passed on the command line.
>

I forgot to say: This was with HDF5 1.8.16 on Ubuntu 16.04.

Elvis


>
> Has anyone seen this strangeness before, or can reproduce?
>
> Thanks in advance,
> Elvis Stansvik
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hdfgroup.org/pipermail/hdf-forum_lists.hdfgroup.org/attachments/20160822/7ce4d69c/attachment.html>


More information about the Hdf-forum mailing list