[Mono-dev] execv fails with error status 126

C S Vadiraj csvadiraj at novell.com
Wed Oct 17 00:56:11 EDT 2007


Hi,

I have a mono application running. We are noticing a strange behavior while we spawn a shell script using execv() call from mono application.
commands in the script seem to fail either with error status 126 or with error message "bad interpreter: Argument list too long".

We suspected a memory outage at that particular point of time, but we did not notice such outage when failed. And all other application working
without fail. Also to be noted, when the script is executed on command prompt, it succeeds. 

More info 

1. execv() is a Dllimport from libc.
2. This behavior is not consistently seen. 
3. Application is a daemon process.
4. mono version used 1.1.13

Any info on this behavior will be helpful for us to track it.

Apologies if this is not relevant to this list. Thanks in advance.

Regards,
Vadiraj







More information about the Mono-devel-list mailing list