For unstable connection for reconnection (or rather for n-th try of reconnection) in random situations the Zeos will raise AV. The reason of this problem is located in TZPostgreSQLConnection.InternalClose: the nil value (stored in PError) is sended to ZMemLComp and "nil" value is dereferenced.
Patch attached.
Merged: r5784 /testing-7.3
Thank's for reporting!
I'd rather say ZMemLComp should be enhanced to process such input. Comparing to nil is not an error