From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,5fb8ed7bfb9eddb7 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,5fb8ed7bfb9eddb7 X-Google-Attributes: gid1164f8,public From: vandenheuvel@eps.enet.dec.com (Hein RMS van den Heuvel) Subject: Re: RMS Exception problems Date: 1995/12/18 Message-ID: <4b40is$hju@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 122293707 references: <4asdp3$7ar@pheidippides.axion.bt.co.uk> organization: Digital Equipment Corporation newsgroups: comp.os.vms,comp.sys.dec In article <4asdp3$7ar@pheidippides.axion.bt.co.uk>, thomasgd@boat.bt.com (Greg Thomas) writes... >Hi, > >I was wondering if anyone out there could help me with a problem I have. At >midnight, an AST routine gets triggered in a program I have. This routine does >some FDL$PARSEing and FDL$RELEASEing, and appears to work fine. Until, that >is, the routine exits. As soon as it exits, I get an exception raised ... > >%FDL-F-READERR, error reading >-RMS-S-NORMAL, normal successful completion >break on exception preceding SHARE$FDLSHR+12506 > >The only thing the AST interrupts is a sys$waitfr(), so it's not like I was in >the middle of an RMS call when the AST routine was triggered. Well, FDL documentation (VMS Utility Routines Manual, 8.1) is quite explicit: "These routines cannot be called from AST level." The reason for this is, as you suspect, static common data structures that are not thread safe. So, what to do? I suggest you change the AST function to one that just sets an (the) event flag and/or a local flag. After the waitfr, see if the FDL-ast flag was set and if so, go do the fdl work and back to sleep. >message is of little (no) help, so I was wondering if anyone out there had >seem something like this before. The reentrancy unsafeness may, or may not, also cause FDL to mess up the error handling. I don't know and never will know, because as a law abiding citizen (well, some of the timer :^) i never called it from non-ast level and I'm not about to try. The main message suggest an plain IO error. Try $CREATE /FDL=file-that-caused-problem x.tmp. Perhaps it was corrupted and will show more clearly. For example, when I patched[/abs] a regular FDL file to have an rms record length word of 8888x, the result was: $cre/fdl=tmp x.tmp %FDL-F-READERR, error reading USER9$:[VANDENHEUVEL]TMP.FDL;7 -RMS-F-IRC, illegal record encountered; VBN or record number = 1 >I'm running VMS 5.5-2, if that makes any difference. It does... FDL had numerous problems, notably around VM management. Major fixes were done for VMS V6.0 (yours truly) and released through an RMS patch kit for VMS V5.5-2. Before that, FDL$RELEASE was iffy at best. Hope this helps, +--------------------------------------+ Hein van den Heuvel, Digital. | All opinions expressed are mine, and | "Makers of VMS and other | may not reflect those of my employer | fine Operating Systems." +--------------------------------------+