Page 2 of 2

Re: SIGSEGV: Segmentation fault

Posted: February 27th, 2023, 1:38 pm
by Fantine
I was able to convert your wrfout file successfully, running with the Linux and PC version. You may need to check your netCDF library.

Re: SIGSEGV: Segmentation fault

Posted: February 28th, 2023, 10:39 am
by Oleg
Thank you, Fantine, for your reply.
Honestly, the error looks weird. The NetCDF library appears to be installed correctly. At least the WRF model (v4.3) was installed and it works correctly with the same NetCDF on the same machine (the wrfout-file included in my previous post is a proof). Besides, the calwrf converter was also compiled and it runs correctly with the same NetCDF on the same machine.
Could you please give me a hint where I can find the code of the PAKSET function that seems to produce this error?

Re: SIGSEGV: Segmentation fault

Posted: March 2nd, 2023, 9:42 am
by Fantine
PAKSET is in ${your hysplit directory]/library/hysplit
Another check is ... was your netcdf library compiled with the same compiler used to install HYSPLIT?

Re: SIGSEGV: Segmentation fault

Posted: March 2nd, 2023, 9:42 am
by Fantine
PAKSET is in ${your hysplit directory]/library/hysplit
Another check is ... was your netcdf library compiled with the same compiler used to install HYSPLIT?

Re: SIGSEGV: Segmentation fault

Posted: March 3rd, 2023, 6:25 am
by Oleg
I used the precompiled version of HYSPLIT.
I will apply for the HYSPLIT source code and try to compile it on my machine.
Thanks a lot for your replies!

Re: SIGSEGV: Segmentation fault

Posted: March 31st, 2023, 8:42 am
by Oleg
The problem was solved after obtaining HYSPLIT source code and its compilation with NetCDF library preinstalled on the machine. All HYSPLIT components seem to work properly, including ARW2ARL convertor. At least, wrfout files were converted to the ARL format.
Thank again for your help, Fantine!

Re: SIGSEGV: Segmentation fault

Posted: July 14th, 2025, 8:51 pm
by chaojixiaoniuniu
(base) [@localhost era52arl]$ ./era52arl_debug -i pressure_level.grib -a surface_level.grib -o output.arl NARG 6

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

Could not print backtrace: unrecognized DWARF version in .debug_info at 6

Could not print backtrace: unrecognized DWARF version in .debug_info at 6
#0 0x7f864a026dfd in ???
#1 0x7f864a026013 in ???
#2 0x7f86499703ff in ???
#3 0x7f8649aa4fa2 in ???
#4 0x7f864a23df5a in ???
#5 0x7f864a0267c9 in ???
#6 0x55a0743f14c2 in era52arl
at /home/era52arl/era52arl.f:374
#7 0x55a07440008e in main
at /home/era52arl/era52arl.f:102
Segmentation fault (core dumped)

I have faced a similar problem, can you help me ?