[fpc-pascal] Linux program sometimes crashes with "EProcess : Failed to create pipes"

T. Guilleminot tom at guilleminot.org
Thu Sep 10 11:01:52 CEST 2009


Hi,

Have a Linux program that recently started to crash several times with
such message :
An unhandled exception occurred at $080A4CB9 :
EProcess : Failed to create pipes
  $080A4CB9
  $080A4D3D
  $080526E0
  $08057C11
  $08058809
  $B7B082B6
  $B7B07B88
  $B7B0B0EB
  $B7B0B5BA
  $B7CF57D9
  $0805AABD

This seems only occurs after a long running period of time. Considering
error message and as it runs very often some OS processes I suspect
TProcess. I use such procedure :

  Procedure Run_Command(Wait : boolean; TheCommand : ansistring); cdecl;
export;
  var
    AProcess: TProcess;
  Begin
    AProcess := TProcess.Create(nil);
    AProcess.CommandLine := TheCommand;
    if Wait = true then AProcess.Options := AProcess.Options +
[poWaitOnExit];
    AProcess.Execute;
    AProcess.Free;
  end;

I think I may hit some OS limits or I overload system.
Does anyone know how to diagnose this further (why it fails...) and/or to
fix this ?

Thanks
Tom








More information about the fpc-pascal mailing list