I compile together two sections of a model (one in c++ and the other in fortran) using a makefile. I have already use the model before and apparently everything is normal during the compilation. however, for some reason it doesn't seem to be able to run the executables created. It starts without any problem but suddenly it gives the error I used for title.
This seems to be a quite usual problem when searching through google, but so far I haven't found a way to fix mine. I increased the stack size to unlimited using
ulimit -s unlimited
I also upgraded my linux distribution to 64 bit arquitecture, as well as the fortran and c++ intel compilers and nothing worked. The program hasn't changed, neither the data, and still works without any problem in other computer. What has changed is the "output frequency", but I tried with the one I used before and I was still having the same problem. I had to reinstall the compilers and the netcdf libraries, but there weren't any problems during the installation.
This is what I get when runnning it:
[ascotilla@ascotilla-HP program_files]$ ./motif-step1b 5Total land points: 61538 Spinup read from: /media/Data/Outputs/data_after_step1a.txt Spinup years: 1000 Spinup output freq: n/a Rampup written too: /media/Data/Outputs/data_after_step1b.txt Rampup years: 1000 Rampup output freq: 20 Run years: 156 Run output freq: 3 out_years: 5 from year: 56 output files in working directory forrtl: severe (174): SIGSEGV, segmentation fault occurred Image PC Routine Line Source libnetcdf_c++.so. 00002B2412F520A5 Unknown Unknown Unknown libnetcdf_c++.so. 00002B2412F557D5 Unknown Unknown Unknown motif-step1b 000000000044CB9A Unknown Unknown Unknown motif-step1b 000000000044BDDE Unknown Unknown Unknown motif-step1b 0000000000409A72 Unknown Unknown Unknown motif-step1b 000000000040510C Unknown Unknown Unknown libc.so.6 0000003DFAE2169D Unknown Unknown Unknown motif_lpj-step1b 0000000000405009 Unknown Unknown Unknown [ascotilla@ascotilla-HP program_files]$
I checked for the libnetcdf_c++.so library and it's in the /usr/lib and the /usr/lib64 folders, so doesn't seem to be a problem with not finding the path to them. It isn't a permission problem either, as I executed the program as superuser and didn't change.
I'm quite a newbie with this, so I still don't know very well where else to look. Any ideas, suggestions, etc are more than welcome
Thanks in advance