issue with dicom_hdr

Hi everyone,

I’m trying to read the dicom headers and everytime I use this command I get the following crash error:

Fatal Signal 11 (SIGSEGV) received
Last STATUS: DCM_OpenFile open failed; try again as Part 10
dicom_hdr main
Bottom of Debug Stack
** AFNI version = AFNI_18.0.22 Compile date = Feb 26 2018
** [[Precompiled binary macosx_10.7_local: Feb 26 2018]]
** Program Death **
** If you report this crash to the AFNI message board,
** please copy the error messages EXACTLY, and give
** the command line you used to run the program, and
** any other information needed to repeat the problem.
** You may later be asked to upload data to help debug.
** Crash log is appended to file /Users/sondosayyash/.afni.crashlog

This is the command I used:
dicom_hdr -sexinfo /Users/MRIdata/Ser3

Any ideas why I’m getting these errors?

My guess is that /Users/MRIdata/Ser3 is a directory, not a file. If that is the case, something funny seems to be happening.