Fun StackTrace of the Day

I love a good ambiguous error message as much as the next guy, and injecting some fun into those error messages always makes my day. We came across a strange error in our database connection code the other day, and the following (100% genuine, Microsoft generated) stacktrace was part of the error:

[code]Stack Trace
at System.Data.SqlClient.SqlTransaction.Zombie()
at System.Data.SqlClient.SqlInternalTransaction.ZombieParent()
at System.Data.SqlClient.SqlInternalTransaction.CloseFromConnection()
at System.Data.SqlClient.TdsParser.Deactivate(Boolean connectionIsDoomed)
at System.Data.SqlClient.SqlInternalConnectionTds.InternalDeactivate()
at System.Data.SqlClient.SqlInternalConnection.Deactivate()

Seems my connection became doomed, then went on a search for braaaaains!!


  1. this bug has cost us many hours of labor and hasnt been fixed yet! did you ever get the problem again or fix it?

  2. We never discovered the true source of the bug, but also haven’t had it reoccur. We tidied up some of the code in the DB-intensive section of the system to reduce deadlocks (selecting from the same table that another thread is trying to write to), and also increased the performance of the database server.

    In combination they seemed to resolve the issue.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.