|
No it does not Here is a description of the problem:
#define STR "call pgm(mylib/mypgm)" thread_function( void *parm) { system( ( char * ) parm ); pthread_exit(*parm); }
main() { pthread_t id; pthread_create( &id, NULL, thread_function, ( void * ) STR ); pthread_join( id, NULL ); printf( "Launch Complete" ); }
I complile the program using CRTBNDC, and launch the program as follows: sbmjob cmd(call pgm(myllib/mytestpgm)) ALWMLTTHD(*YES) Because that is the only means I can find to invoke this job multi-threaded.
-----Original Message----- From: c400-l-bounces@xxxxxxxxxxxx [mailto:c400-l-bounces@xxxxxxxxxxxx] On Behalf Of Walt Fles Sent: Wednesday, May 26, 2004 10:21 AM To: C programming iSeries / AS400 Subject: Re: [C400-L] Program ends, no messages, logs, etc
Is it possible for a submitted batch job to run out of stack space, and cause this problem? Is there a compiler option to increase the stack space for a job?
Thanks!
Walt Fles wrote:
_______________________________________________I take that back, the program that invokes the thread that does the system() call ends,with a message CPF1241. Would be nice if I could see where or how it was stopping, like an object dump or stack trace or something.
When a program dies abnormally on the iSeries (for ILE/C) you don't
get a core dump as such, what you get is either a nice CPF/MCH error
message in the job log or on the status line.
_______________________________________________ This is the C programming iSeries / AS400 (C400-L) mailing list To post a message email: C400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.
_______________________________________________ This is the C programming iSeries / AS400 (C400-L) mailing list To post a message email: C400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.