Dear all,
I'm experiencing a strange problem
with NetCDF F90 calls nf90_open/nf90_close
on IBM Power6,
the code I use randomly crashes
for heap overflows (rightmost, leftmost calls)
when NetCDF files
are open or close; this happens
from time to time, randomly, no matter which version
of NetCDF library (3.6, 4.2) I link the code to;
the code is OpenMP parallel but the I/O
routines that call NetCDF are purely serial,
have u haver seen something similar?
Below I attach you the debugger session
for the calling sequence,
Thanks a lot in advance for any suggestion!
Andrea
[ below refers to NetCDF 3.6.3 ]
$ dbx MASTER core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...
Segmentation fault in rightmost at 0x900000000346f90 ($t1)
0x900000000346f90 (rightmost+0x8) e8050018 ld r0,0x18(r5)
(dbx) where
rightmost(??, ??) at 0x900000000346f90
free_y(??, ??) at 0x900000000347b9c
free_common(??) at 0x9000000003459fc
ncio_px_free_32_12(??, ??), line 843 in "posixio.c"
ncio_free_30_2(??), line 1311 in "posixio.c"
ncio_close_31_25(??, ??, ??), line 1624 in "posixio.c"
nc_close(ncid = 33), line 1119 in "nc.c"
nf_close_(fncid = 0x0000000004402440), line 85 in "fort-control.c"
netcdf.__netcdf_NMOD_nf90_close(??), line 143 in "netcdf_file.f90"
io_obs_(??, ??, ??, ??, ??, ??, ??, ??), line 821 in "io_obs.F90"
readobs103_(), line 142 in "readobs103.F90"
varjob_(), line 113 in "varjob.F90"
master(), line 32 in "master.F90"
====================
Dr. Andrea Storto
Dept. of Numerical Applications and Scenarios (ANS)
Euro-Mediterranean Centre for Climate Change (CMCC) - www.cmcc.it
viale Aldo Moro, 44, 7th Floor - 40127 BOLOGNA - Italy
Phone: +39 (0)51 3782605 (int. 205) Mobile: +39 339 8176646
Fax: +39 (0)51 3782655 Email: andrea.storto@xxxxxxx
====================