C/C++

C/C++

C/C++

Your one-stop destination to learn and collaborate about the latest innovations in IBM C/C++ for z/OS compilers to develop high-performing C/C++ applications and system programs on z/OS while maximizing hardware use and improving application performance.

 View Only
Expand all | Collapse all

Trying to understand calloc failure with Errno ...... 167 Errnojr .... C10F0001

  • 1.  Trying to understand calloc failure with Errno ...... 167 Errnojr .... C10F0001

    Posted Thu December 14, 2023 01:02 PM

    Hello,

    We are getting errno/errnojr errors in C code that we are struggling to understand.  

    Here is the traceback.  

                                                                                                                       
      Traceback:                                                                                                         
        DSA   Entry       E  Offset  Statement   Load Mod             Program Unit                   Service  Status     
        1     CEEHDSP     +00004B12              CEEPLPKA             CEEHDSP                        HLE77D0  Call       
        2     CEEHSGLT    +00000060              CEEPLPKA             CEEHSGLT                       HLE77D0  Exception  
        3     CEEV#GH     +00000602              CEEPLPKA             CEEV#GH                        HLE77D0  Call       
        4     calloc      +000000EA              CEEEV003                                            HLE77D0  Call       
        5     fnGetSysTsInData                                                                                           
                          +000005CA  1066        ZDPMTCHQ             ZDPSLSUB                       1.1Dev.  Call       
        6     fnProcessLinkSchema                                                                                        
                          +000008E4  372         ZDPMTCHQ             ZDPSLSUB                       1.1Dev.  Call       
        7     fnProcessWork                                                                                              
                          +00000BE2  865         ZDPMTCHQ             ZDPMTCHQ                       1.1Dev.  Call       
        8     main        +0000090E  559         ZDPMTCHQ             ZDPMTCHQ                       1.1Dev.  Call       
        9     EDCZMINV    +000000C2              CEEEV003                                                     Call       
        10    CEEBBEXT    +000001C6              CEEPLPKA             CEEBBEXT                       HLE77D0  Call       
                                                                                                                                                                                           

    We also see 

    Additional Language Specific Information:                                
                                                                             
      errno information :                                                    
      Thread Id .... 8000000000000000 Errno ...... 167 Errnojr .... C10F0001 
    CEE3846I CEEDUMP Processing completed.                                   

    I am trying to figure out what the errno and errnojr tell us.

    Looking in CEE.SCEEH.H(ERRNO), errno 167 means the following:

     #define EMVSNORTL       167  /* Access to the USS            
                                      version of the C RTL is     
                                      denied                    */

    I am unable to find too much information about the errnojr value.  According to the z/OS Unix System Services Messages and Code values, because the  value is in the range C000-CFFF, it is a Language Environment errno2 value.  However, when I look in the z/OS Language Environment Runtime Messages, chapter Language Environment errno2 values, I do not see any info about that particular code.

    The job output has no further information.

    This code has worked in the recent past.  (Famous last words :) ) It is possible something changed, but we are unable to pin it down.  Also, perhaps there was a change in our environment?  I was hoping that the errorno and errnojr values would provide a clue as to what we need to look at.

    Thank you,

    Nancy



    ------------------------------
    Nancy Kilroy
    ------------------------------


  • 2.  RE: Trying to understand calloc failure with Errno ...... 167 Errnojr .... C10F0001

    Posted Thu December 14, 2023 01:29 PM

    Nancy, do you see message EDC5167I anywhere?  It would seem to be on point for this error.



    ------------------------------
    Scott Fagen
    Mainframe Evangelist
    CDW
    www.cdw.com/content/cdw/en/solutions/ibm-zsystems.html
    ------------------------------



  • 3.  RE: Trying to understand calloc failure with Errno ...... 167 Errnojr .... C10F0001

    Posted Thu December 14, 2023 01:45 PM

    Hey Scott!


    Thank you for looking at this!


    No, unfortunately we don't see that message. 

    I am not sure if it's indicating that we are calling some service that requires the POSIX(ON) option.  Since we died in calloc, I don't know if that's the case.  Or,  maybe there's something changed in our USS environment.  

    Nancy



    ------------------------------
    Nancy Kilroy
    ------------------------------