[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000221: Core dumps on sfmod



Chris,

Two possible problems with your approach would be:
1) The input file is currently being written into by the decoder
   when your script is run. This would be common if you saw
   errors like "FL -168".

2) The daily file is more likely to get corrupted if you are storing
   the raw reports in the decoded file, and a bad report caused the
   stored string to exceed the amount of space allowed.

   The case above would be the same as if you tried to use sflist on the
   file with dattim=all and area=dset. So, if your sfmod script dies, do you
   find that the original input file is corrupted?

The upperair file is less likely to encounter the above two probles since
there is much less data (fewer stations), so that the likelihood of the
file being open and written to in 1) is much less; and the raw reports
are not stored in upper air files as in 2) above. You can run dchrly with the
-n flag not to store the raw reports if you find that they are problematic.
This is not a big problem that I have found, but ocassionally, I do fine
a bulleting that somehow has no line feeds for a couple of dozen metars,
so dchrly tries to store it all as one report.

As I mentioned, you can determine if your surface file was corrupt by 
trying to list the entire contents of the file using sflist. If that
fails, then that is likely why sfmod died as well. If it suceeds, then
it is more likely that the file was being updated or written to.

Steve Chiswell
Unidata User Support





>From: "C. Vandersip" <address@hidden>
>Organization: .
>Keywords: 200002211338.GAA21659

>  This message is in MIME format.  The first part should be readable text,
>  while the remaining parts are likely unreadable without MIME-aware tools.
>  Send mail to address@hidden for more info.
>
>---559023410-959030623-951140265=:24523
>Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>Hi Steve,
>
>I'm running a script that uses sfmod and snmod to take in data from the
>gempak sfc and upa files created by dchrly and creates gempak files called
>"cur.gem" to house data for the last 5 days.  It does this each night to
>rotate the file and keep it current.
>
>My problem is that when this script runs, sfmod very often encounters
>problems with the daily sfc files and either dumps core (segmentation
>fault) or, more recently, the process hangs w/out seg faulting.  There
>have been no problems with the snmod portion, only sfmod.  Could sfmod be
>encountering corruption in the daily sfc files that cause it to die or
>hang, or is there a problem in my script syntax?  A copy of the
>script is attached.  Any help you can provide is appreciated.  
>
>Regards,
>
>Chris
>
>        ###############################################################
>        #                      Chris Vandersip                        #
>        #        Computer Research Specialist/Dept. Sysadmin          #
>        #  Rm. 024, Dept. of Meteorology, Florida State University    #
>        #          address@hidden   (850)644-2522                     #
>        ###############################################################
>
>---559023410-959030623-951140265=:24523
>Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rotate_cur.gem"
>Content-Transfer-Encoding: BASE64
>Content-ID: <address@hidden>
>Content-Description: 
>Content-Disposition: attachment; filename="rotate_cur.gem"
>
>IyEvYmluL2NzaCAtZg0KIw0KIwlyb3RhdGVfY3VyLmdlbSAtIE1haW50YWlu
>cyBnZW1wYWsgc3VyZmFjZSBhbmQgdXBwZXJhaXIgZmlsZXMNCiMJCSAgICAg
>ICAgICgkR0VNU0ZDL2N1ci5nZW0gYW5kICRHRU1VUEEvY3VyLmdlbSkgY29u
>dGFpbmluZw0KIwkJICAgCSBkYXRhIGZvciB0aGUgcGFzdCA1IGRheXMuIFRo
>aXMgc2NyaXB0IHJvdGF0ZXMgb2xkIGRhdGEgb3V0Lg0KIw0KIwlNb2RpZmlj
>YXRpb25zOg0KIw0KIwkgCUphbiAxNCwgMTk5MglPcmlnaW5hbCBzY3JpcHQJ
>CQlKZWZmIFdhcmQvRlNVDQojCQlPY3QuICAgIDE5OTQgICAgTW9kaWZpZWQg
>Zm9yIGdlbXBhayA1LjIgICAgICAgICBULiBLaXR0ZXJtYW4NCiMgICAgICAg
>ICAgICAgICBGZWIuICAgIDE5OTUgICAgTW9kaWZpZWQgZm9yIHByb3BlciBj
>eWNsaW5nIG9mDQojICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNp
>cmN1bGFyIGZpbGUgYnkgYSBjYXN0IG9mIHRob3VzYW5kcy4uLg0KIw0KIyAg
>ICAgICAgICAgICAgIE5vdi4gICAgMTk5NSAgICBGaXhlZCBzbyB0aGUgZGFy
>biB0aGluZyB3b3VsZCB3b3JrIQ0KIwkgICAgICAgICAgICAgICAgICAgICAg
>ICAtQW5kcmV3IERldmFuYXMgJiBKb24gUml6em8NCiMJICAgICAgICBKYW4u
>ICAgIDIwMDAgICA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