Operating System - HP-UX
1830143 Members
26815 Online
109999 Solutions
New Discussion

mktemp crashes in jetadmin

 
SOLVED
Go to solution
Dave Chamberlin
Trusted Contributor

mktemp crashes in jetadmin

In using jetadmin, I get a core dump when I try to get the print monitor. I have traced the problem to a call to the statement:
mktemp -pxjdm.
This causes a memory fault. The core indicates that PATH_MAX has been exceeded. If I manually execute:
mktemp -pdccc.
it crashes, but this:
mktemp -pdcc.
does not. It would seem there is a length issue here, but doing:
getconf PATH_MAX /
returns 1023. Can someone explain what might be the problem? The NAME_MAX is 255. My other two machines with this same OS (11.0) and same version of jetadmin have no problems
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: mktemp crashes in jetadmin

Hi Dave:

There is a patch, PHCO 21230, for mktemp.
If it ain't broke, I can fix that.
Dave Chamberlin
Trusted Contributor

Re: mktemp crashes in jetadmin

That would appear to be the problem - Both my other machines have this patch. Is there a way to move this patch from one of those machines to the one that needs it?

Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: mktemp crashes in jetadmin

Actually, this is one of those rare patches that consists of one file. You should be able to simply copy mktemp from one box to another BUT the preferred method is to download the patch from the ITRC and install it using swinstall. The procedure is very straightforward and this way your installed software database is kept current.
If it ain't broke, I can fix that.