Topic
No replies
SystemAdmin
SystemAdmin
196 Posts
ACCEPTED ANSWER

Pinned topic Is __cinit supposed to crash?

‏2010-11-17T20:58:12Z |
I'm using the Metal option to build a program to be called from APL2 without the LE runtime environment. I have the entry and exit linkage stuff working, but I'm having trouble getting the metal C environment to work. When I call __cinit, I'm getting an abend. APl2 is trapping the abend and taking a snap dump, but I'm too rusty with mainframe stuff to make sense of the dump.

Can anyone think of something obvious I might be doing wrong to make __cinit abend?

(I copied the code to call __cinit directly from the Metal C programming Guide and Reference.)

Thanks in advance.

David Liebtag
IBM APL Products and Services
Updated on 2010-11-18T14:03:45Z at 2010-11-18T14:03:45Z by SystemAdmin
  • Visda
    Visda
    22 Posts
    ACCEPTED ANSWER

    Re: Is __cinit supposed to crash?

    ‏2010-11-18T12:04:53Z  in response to SystemAdmin
    Hi David,

    Try with
    mysysenv.__csesubpool = 127;

    If that didn't solve the abend, can you please post the Abend and Reason codes here, it would help if you post your CPARMs/compile options as well.

    Thanks,
    Visda
  • SystemAdmin
    SystemAdmin
    196 Posts
    ACCEPTED ANSWER

    Re: Is __cinit supposed to crash?

    ‏2010-11-18T14:03:45Z  in response to SystemAdmin
    Visda,

    Changing the subpool to 127 fixed the problem. Thank you.

    David Liebtag