Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poor error message if bzip support not available #31

Closed
shanedsnyder opened this issue May 13, 2021 · 3 comments
Closed

poor error message if bzip support not available #31

shanedsnyder opened this issue May 13, 2021 · 3 comments

Comments

@shanedsnyder
Copy link
Contributor

In GitLab by @shanedsnyder on Sep 24, 2015, 16:25

If you compile darshan-utils without bzip support and then try to run darshan-job-summary on a bzip'd log file, then this message is displayed:

Error: incompatible darshan file.
Error: expected version 2.01, but got BZh91AY&SY
Error: unable to read job information from log file.
Use of uninitialized value $starttime in localtime at /tmp/darshan-util/bin/darshan-job-summary.pl line 285.
This darshan log has no file records. No summary was produced.
Use of uninitialized value $jobid in concatenation (.) or string at /tmp/darshan-util/bin/darshan-job-summary.pl line 288.
    jobid:
Use of uninitialized value $uid in concatenation (.) or string at /tmp/darshan-util/bin/darshan-job-summary.pl line 289.
      uid:
Use of uninitialized value $starttime in concatenation (.) or string at /tmp/darshan-util/bin/darshan-job-summary.pl line 290.
starttime: Wed Dec 31 19:00:00 1969 ( )
Use of uninitialized value $runtime in concatenation (.) or string at /tmp/darshan-util/bin/darshan-job-summary.pl line 291.
  runtime: (seconds)
Use of uninitialized value $nprocs in concatenation (.) or string at /tmp/darshan-util/bin/darshan-job-summary.pl line 292.
   nprocs:
Use of uninitialized value $version in concatenation (.) or string at /tmp/darshan-util/bin/darshan-job-summary.pl line 293.
  version: 

The utilities should detect this gracefully (by checking magic numbers in header, for example) and provide a more helpful error message.

@shanedsnyder
Copy link
Contributor Author

In GitLab by @shanedsnyder on Sep 24, 2015, 16:25

The configure script should probably display some information about bzip at compile time warning that the build doesn't support bzip.

@shanedsnyder
Copy link
Contributor Author

In GitLab by @shanedsnyder on Sep 24, 2015, 16:25

The underlying problem at the darshan utility binary level has been fixed in svn. Those tools now print an error like this in this scenario:

Error: this Darshan build does not support bz2 files.
Error: please install libbz2-dev and reconfigure.
darshan_log_open() failed to open ../../../foo_bar_id246361_3-15-57751_1.darshan.bz2

Still need to check what's going on at the darshan-job-summary.pl level.

@shanedsnyder
Copy link
Contributor Author

In GitLab by @shanedsnyder on Sep 24, 2015, 16:25

darhan-job-summary has been fixed in svn as well. The full stderr output from darshan-job-summary now looks like this:

Error: this Darshan build does not support bz2 files.
Error: please install libbz2-dev and reconfigure.
darshan_log_open() failed to open ../../../zuhone_flash3_id246361_3-15-57751_1.darshan.bz2
.darshan-parser failure:  65280 at ./darshan-job-summary.pl line 280.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant