IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Overwrite of Malloc'd storage in CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Steve Sullivan

New User


Joined: 01 Feb 2013
Posts: 2
Location: USA

PostPosted: Wed Feb 06, 2013 2:46 am
Reply with quote

We have a CICS transaction which executes a CICS COBOL program. This program dynamically calls several IBM C load modules.
Each of these load modules mallocs storage that we expect to own for the duration of the transaction.
It appears that the storage is being reused as it has been over-written with STKL and STKU entries.
We have gotten around this problem by replacing mallocs with CICS GETMAINS.
We did not have this problem when our C load modules were built with SAS C and statically linked with our COBOL program.
We're wondering whether there are compile or linking options relevant to this problem that we have overlooked.

The CICS translator parameters for the COBOL program are: COBOL3,NODEBUG,NOSOURCE,SP

The compile parameters for the COBOL program are: NODYN,LIB,OBJ,RENT,RES,APOST,MAP,XREF,LIST,SSRANGE.

The link parameters for the COBOL program are: LIST,XREF,AMODE(31),RMODE(ANY),RENT

The compile parameters for the IBM C programs are: SO,XR,EXPMAC,NOMAR,NOSEQ,LONGNAME,SSCOMM,RENT,
GONUMBER,LIST,OFFSET,OPTIMIZE(2),INLRPT,CICS(SP,DEBUG)

The pre-link parameters for the IBM C programs are: NONCAL, NOMEMORY, ER, DUP, MAP,NOOMVS NOUPCASE DYNAM


Lastly, the link parameters for the IBM C programs are: LIST,LET.

Thanks in advance for your responses.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 06, 2013 4:05 am
Reply with quote

please do not double post...

the people answering there
ibmmainframeforum.com/viewtopic.php?f=12&t=8742
are the same answering here

just tell where do You want to carry on the discussion and somebody will clear the then useless thread
Back to top
View user's profile Send private message
Steve Sullivan

New User


Joined: 01 Feb 2013
Posts: 2
Location: USA

PostPosted: Wed Feb 06, 2013 4:13 am
Reply with quote

I'd like to discuss this topic in the CICS forum.
Apologies for the double-post
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top