Operating System - HP-UX
1822142 Members
3963 Online
109640 Solutions
New Discussion юеВ

Exec format error when app tries to write file

 
robert dowd
New Member

Exec format error when app tries to write file

I have a C server application that writes files to /etc/$dirname

up until today, this application had no problem.

However today, I am receiving the ENOEXEC Exec format error.

Something has changed.

But what could it be? the application is running as root. (correctly). file permissions are right. and i can touch a file on the target partition.

but the app can't create one.

i'm running 11.11 with the latest patches.
stop talking and do it
4 REPLIES 4
Donny Jekels
Respected Contributor

Re: Exec format error when app tries to write file

you have been running 11.11 all the time? that is my understanding.

C = ?

Is the application compiled or a bunch of scripts put together.

do

file * in the app?/bin/*

let me know
"Vision, is the art of seeing the invisible"
Bill Douglass
Esteemed Contributor

Re: Exec format error when app tries to write file

ENOEXEC refers to an exec failure, or a filure to load a shared library.

Can your install tusc

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/

and try tracing the command. This will tell you where in the program the system call is failing.
T G Manikandan
Honored Contributor

Re: Exec format error when app tries to write file

Exec format error could be like one of the files might be corrupt.

you can use tusc to narrow down the problem and restore the specific files with the right size.


Thanks
robert dowd
New Member

Re: Exec format error when app tries to write file

thanks guys for your help.
i figured out what the problem was - the app had a minimum free disk space requirement on the / partition, and we were below that. ==99%. i cleared out a tar.gz file that shouldn't have been there and that brought us down to 40% level.

i didn't think of using tusc, though. i will remember that for future...thanks.

B
stop talking and do it