Operating System - OpenVMS
1753734 Members
4720 Online
108799 Solutions
New Discussion юеВ

Traceback of a detached process

 
Elli M Barasch
Advisor

Traceback of a detached process

How can I get a traceback of a crashing detached subprocess? It is launched via SYS$CREPRC from a detached process that launched via LOGINOUT (i.e. it has a CLI).
15 REPLIES 15
RBrown_1
Trusted Contributor

Re: Traceback of a detached process

Assuming you built the crashing image with traceback, I would have thought that the traceback would have appeared in the subprocess's SYS$ERROR. If you did not specify the ERROR parameter in your call to $CREPRC, then perhaps it goes to SYS$OUTPUT of the parent process.

But just a wild guess.
Elli M Barasch
Advisor

Re: Traceback of a detached process

The parent's sys$output and sys$error files don't contain any traces.

While the subprocess is running, it holds a file open called [defaultdir].;N But at rundown, the file seems to disappear.

VMS 7.3-2 Alpha, btw.

Elli M Barasch
Advisor

Re: Traceback of a detached process

And yes, it is not built with /NOTRACEBACK. (Default /TRACEBACK is implied.)

John Gillings
Honored Contributor

Re: Traceback of a detached process

Elli,

Sounds suspiciously like the process hasn't been given sufficient quotas to send the output to a file. What does your PQL look like? Note this is a very tricky parameter to get right, and often critically important.

Maybe it would be best to post your whole $CREPRC call for the parent, and the code which starts the subprocess.

At the very least you should have the final status in the accounting log.
A crucible of informative mistakes
Ian Miller.
Honored Contributor

Re: Traceback of a detached process

You may also wish to enable process dump for that process
____________________
Purely Personal Opinion
Elli M Barasch
Advisor

Re: Traceback of a detached process

One interesting error shows up in the SYS$OUTPUT file:

Error activating command interpreter SYS$SYTEM:DCL
Process quota exceeded

Now to figure out which PQL?
Elli M Barasch
Advisor

Re: Traceback of a detached process

I've turned on SET PROC/DUMP for all subprocesses and await their expected demises. All our processes declare exit handlers. However, the exit handlers do not resignal. Does that mean the dumps will not report a traceback?
Andy Bustamante
Honored Contributor

Re: Traceback of a detached process

Another option is to use Availability Manager to monitor quotas and focus in on which quota is the issue.

Availability Manager also allows for on the fly changes to quotas.

If you don't have time to do it right, when will you have time to do it over? Reach me at first_name + "." + last_name at sysmanager net
Ian Miller.
Honored Contributor

Re: Traceback of a detached process

Availability Manager is a good tool for looking at process quota issues.

Do you specify quotas in the $CREPRC or use the default values from the PQL_ parameters?
____________________
Purely Personal Opinion