Home »
Public Forums »
archive »
segmentation fault with ncdf_open
segmentation fault with ncdf_open [message #62859] |
Thu, 09 October 2008 00:21 |
M. Suklitsch
Messages: 12 Registered: August 2008
|
Junior Member |
|
|
Hi there!
Today I stumbled over a - in my opinion - very strange behaviour of
IDL (system: IDL Version 7.0, Solaris (sunos sparc m64)).
When concatenating a filename out of several string variables IDL
crashes with a segmentation fault/core dump. In fact, it depends on
the existance of one single variable. Maybe it's easier to show the
code:
sFilename = '/dsk/rcm/grids/'+'constant_fields.4'+sDom+sExp+'.nc'
iNcId = NCDF_OPEN(sFilename)
This one crashes. The next one does not:
sFilename = '/dsk/rcm/grids/'+'constant_fields.4a'+sExp+'.nc'
iNcId = NCDF_OPEN(sFilename)
As you can see (if looking close) it all seems to depend on whether or
not I use variable sDom to get the "a" into the filename. I checked
sFilename for blanks, but there are none. I checked the BYTE values of
sFilename for both versions, but as expected there is no difference.
So, can anybody tell me what's happening here? 'cause I am running out
of options...
bye,
Martin
|
|
|
Current Time: Sat Oct 11 07:28:53 PDT 2025
Total time taken to generate the page: 1.28116 seconds