comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » segmentation fault with ncdf_open
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
segmentation fault with ncdf_open [message #62859] Thu, 09 October 2008 00:21
M. Suklitsch is currently offline  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
[Message index]
 
Read Message
Previous Topic: Matrix calculus
Next Topic: Re: Display radar data?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:39:12 PDT 2025

Total time taken to generate the page: 0.56315 seconds