[fpc-devel] Problems with rapid fpSend calls on x64 Ubuntu 10.10 (updated)

Michael Van Canneyt michael at freepascal.org
Thu Dec 2 20:14:43 CET 2010



On Thu, 2 Dec 2010, Andrew Brunner wrote:

> OS: Ubuntu 10.10 x64 all updates as of this am.  But problem has persisted for days now.
> Laz/FPC: Today's trunk
> 
> worker thread running issues a call to fpSend with iSend Bytes in buffer
>         Try
>           RSRP^.LastCall:=Sockets.fpSend(RSRP^.Info.Socket, at FSendBuffer[0],iSend,0);
>         except
>           on E:Exception do OnRSRException('TRSRManager.cb_RSR_Send','Exception',E.Message);
>         end;
> 
> FPC/srtl/linux/x86_64/syscall.inc
> 
> line 319 fails but execption is raised in 320.
> 
> line 319:   syscall                 { Do the system call. }
> line 320:  cmpq $-4095, %rax       { Check %rax for error.  }
> 
> I had exception handling inside the block but it was not caught.
> 
> Anyone else having problems with sockets on Unix.  This problem does not exist on Windows.  After the first
> occurance of this issue, all network engine activity fails across other threads too with exceptions at this very
> spot.
> 
> Any help would be greatly appreciated.

It would help if you could say what the exception exactly is ?

Michael.


More information about the fpc-devel mailing list