Operating System - HP-UX
1837655 Members
2766 Online
110117 Solutions
New Discussion

chatr(error): cannot allocate memory

 
Allen Mak
New Member

chatr(error): cannot allocate memory

Hi,

I am receiving the following error

"chatr(error): cannot allocate memory"

when trying to chatr an executable. Can you tell me the cause of the problem and a way to solve it? I'm guessing the attributes have been changed to request more memory than my machine has available.

I'm also attributing this problem to not being able to run the executable. When I try to run the executable the following error arises

"ksh: : cannot execute"

Regards,
Allen
4 REPLIES 4
James A. Donovan
Honored Contributor

Re: chatr(error): cannot allocate memory

Specifically, what aspect are you trying to modify with chatr?
Remember, wherever you go, there you are...
Allen Mak
New Member

Re: chatr(error): cannot allocate memory

At this stage I'm not certain of the attributes I do want to change.

The real issue is in actually executing the program. I work for a software vendor and am trying to run a program that was released a while back to a customer but it is erroring in our environment with the "cannot execute" error. I do not have issues running a recently compiled version of the same program.

To further investigate I decided to chatr the program to verify if any attributes were different but am now getting the allocate memory error from chatr.

My reasoning was this may be the root cause of why I can execute the program and was hoping for a resolution to this.

-Allen
James A. Donovan
Honored Contributor

Re: chatr(error): cannot allocate memory

I think the statement, " I do not have issues running a recently compiled version of the same program. " probably says it all.

What is your customer's environment like? Are they running the same version of the OS?
Remember, wherever you go, there you are...
Allen Mak
New Member

Re: chatr(error): cannot allocate memory

Jim,

Thanks for the prompt replies. The OS version are the same but it seems the root cause of the problem was the executable was corrupt through either fpt-ed as ascii or not complete or some other unknown when transferring to CD before I received it. Once I received another version from the client I was able to run the program.

Thanks again,
Allen