SCM

[#1011093] Managed Debugging Assistant 'ReleaseHandleFailed' has detected a problem

View Trackers | Bugs | Download .csv | Monitor

Date:
2011-09-20 13:08
Priority:
3
State:
Open
Submitted by:
Oliver Stöneberg (firewave)
Assigned to:
Nobody (None)
Npgsql Version:
2.0.11
Category:
Group:
Resolution:
None
Summary:
Managed Debugging Assistant 'ReleaseHandleFailed' has detected a problem

Detailed description
We are seeing the error in the description from time to time and it appears to exhaust the sockets on the system it is running on after a while. I was finally able to get a back trace:

Managed Debugging Assistant 'ReleaseHandleFailed' has detected a problem in 'xxx'.
Additional Information: Ein SafeHandle oder CriticalHandle vom Typ "InnerSafeCloseSocket" konnte das Handle mit dem Wert 0x00000A00 nicht ordnungsgemäß freigeben. Dies zeigt normalerweise an, dass das Handle auf andere Weise falsch freigegeben wurde (z.B. durch Extrahieren des Handles mit DangerousGetHandle und direktes Schließen oder durch Erstellen eines anderen umschließenden SafeHandles.)

NpgsqlReadyState.cs:155 - Close(NpgsqlConnector context)
stream.Close();

> Npgsql.dll!Npgsql.NpgsqlReadyState.Close(Npgsql.NpgsqlConnector context = {Npgsql.NpgsqlConnector}) Line 155 + 0x8 bytes C#
Npgsql.dll!Npgsql.NpgsqlConnector.Close() Line 812 C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.GetPooledConnector(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 370 C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 242 + 0xc bytes C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.RequestPooledConnector(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 194 + 0xc bytes C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.RequestConnector(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 174 + 0xc bytes C#
Npgsql.dll!Npgsql.NpgsqlConnection.Open() Line 543 + 0x17 bytes C#

We are using the 2.0.11.91 binaries and the project is built with VS2010 and using .NET 3.5. It also happened with the 2.0.11.0 binaries and VS2008/VS2010.

Before this error happened there was an IOException and following that there was also a NullreferenceException:

NullReferenceException
NPgsqlCommad.cs:1495 - ClearPoolAndCreateException()
Connection.ClearPool();

> Npgsql.dll!Npgsql.NpgsqlCommand.ClearPoolAndCreateException(System.Exception e = {"In die Übertragungsverbindung können keine Daten geschrieben werden: Ein Vorgang bezog sich auf ein Objekt, das kein Socket ist."}) Line 1495 + 0xe bytes C#
Npgsql.dll!Npgsql.NpgsqlCommand.GetReader(System.Data.CommandBehavior cb = SingleResult | SingleRow | SequentialAccess) Line 640 + 0xb bytes C#
Npgsql.dll!Npgsql.NpgsqlCommand.ExecuteScalar() Line 712 + 0xd bytes C#
Npgsql.dll!Npgsql.NpgsqlConnector.IsValid() Line 367 + 0x3d bytes C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.GetPooledConnector(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 366 + 0xb bytes C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 242 + 0xc bytes C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.RequestPooledConnector(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 194 + 0xc bytes C#
Npgsql.dll!Npgsql.NpgsqlConnectorPool.RequestConnector(Npgsql.NpgsqlConnection Connection = {Npgsql.NpgsqlConnection}) Line 174 + 0xc bytes C#
Npgsql.dll!Npgsql.NpgsqlConnection.Open() Line 543 + 0x17 bytes C#

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge