APAR status
Closed as program error.
Error description
See Problem Summary.
Local fix
na
Problem summary
APAR NUMBER: PJ40799 PRODUCT: z/TPF FUNCTIONAL AREA: 'C' LANGUAGE SUPPORT SHIPPED IN PUT: 10 ABSTRACT: A CTL-230 may occur when logging system messages using syslog. PACKAGE CONTENTS: Source Segments: (C) base/rt/csylgd.c Object Only Binaries: None. Configuration Independent Binaries: (C) base/obj/csylgd.o (C) base/load/CSYL.so Support Files: base/lst/csylgd.lst base/lst/CSYL.map OTHER BINARIES TO BUILD: NO None. COMMENTS: When logging messages, function fprintlog() in program segment csylgd.c declares and initializes an integer sized variable, bss, to indicate that it is not operating in the BSS and that a cebic_restore() must be issued before exiting. When logging messages to file, fprintlog() will check the BSS indicator in the ECB. If it is not operating in the BSS, a cebic_save() and cebic_goto_bss() are issued. Otherwise, the variable, bss, is set to indicate that it is operating in the BSS. However, there are other paths in this function where the BSS indicator in the ECB is not checked. Yet, before exiting, variable bss is still checked to determine if a cebic_restore() needs to be issued. If, for example, fprintlog() is writing to tape, then a cebic_restore() is needlessly issued and a CTL-230 will occur.
Problem conclusion
SOLUTION: In program segment csylgd.c, function fprintlog() has been updated to always check the BSS inidicator in the ECB, set variable bss, and issue cebic_save and cebic_restore accordingly. Before exiting, variable bss will correctly indicate whether or not a cebic_restore() must be issued. In addition, segment csylgd.c was updated to call ascii2ebcdic() and convert a message only if the prior call to recvfrom() returned a valid message. COREQS: NO None. MIGRATION CONSIDERATIONS: NO None. BUILD COMMANDS AND INSTRUCTIONS: YES #maketpf commands for linux maketpf -f CSYL csylgd.o maketpf CSYL link UPDATED INFORMATION UNITS: NO None. See your IBM representative if you need additional information. DOWNLOAD INSTRUCTIONS: http://www.ibm.com/software/htp/tpf/maint/maintztpf.html APAR URL: http://www.ibm.com/software/htp/tpf/ztpfmaint/put10/PJ40799.htm
Temporary fix
Comments
APAR Information
APAR number
PJ40799
Reported component name
Z/TPF
Reported component ID
5748T1501
Reported release
110
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-12-18
Closed date
2013-01-29
Last modified date
2013-01-29
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
Z/TPF
Fixed component ID
5748T1501
Applicable component levels
R110 PSY
UP
Rate this page:
Average rating
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.