summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-08-27 15:29:55 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-08-27 15:29:55 (GMT)
commit57e38d527c07a4f889795d7e0a8517f590ccf5c8 (patch)
treef819e503994753734c50e24b9b302306cdf2534a /tools/h5diff
parent88218592e6eb14e71a217de7be79a43355446cdf (diff)
downloadhdf5-57e38d527c07a4f889795d7e0a8517f590ccf5c8.zip
hdf5-57e38d527c07a4f889795d7e0a8517f590ccf5c8.tar.gz
hdf5-57e38d527c07a4f889795d7e0a8517f590ccf5c8.tar.bz2
[svn-r7419] Purpose:
bug fix Description: h5diff would incur a segmentation fault in Alpha clusters when the percentage option is used. This was due to memory aliagment issue when the options variable is declared as a local variable in main(). Moved the declaration to a global declaration. Platforms tested: "h5committested" And tested at cluster QT of SNL. Misc. update:
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/h5diff.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/h5diff/h5diff.c b/tools/h5diff/h5diff.c
index 8b6f1fb..71c66ff 100644
--- a/tools/h5diff/h5diff.c
+++ b/tools/h5diff/h5diff.c
@@ -52,6 +52,11 @@ typedef struct options_t
int count; /* count value */
} options_t;
+/* Due to alignment issue in Alpha clusters, options must be declared here
+ * not as a local variable in main().
+ */
+options_t options = {0,0,0,0,0,0,0};
+
/*-------------------------------------------------------------------------
* prototypes
*-------------------------------------------------------------------------
@@ -182,7 +187,6 @@ int main(int argc, const char *argv[])
int nobjects1, nobjects2;
info_t *info1=NULL;
info_t *info2=NULL;
- options_t options = {0,0,0,0,0,0,0};
void *edata;
hid_t (*func)(void*);
const char *file1_name = NULL;