[tor-commits] [tor/master] Add a stack trace for help debugging one part of 17659

nickm at torproject.org nickm at torproject.org
Fri Nov 27 17:11:55 UTC 2015


commit a33e9f208ae088fa3d63147fad9fc23654ca7ae1
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Nov 27 12:11:51 2015 -0500

    Add a stack trace for help debugging one part of 17659
---
 src/or/connection_edge.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 8b2f635..078b9e2 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -11,6 +11,9 @@
 #define CONNECTION_EDGE_PRIVATE
 
 #include "or.h"
+
+#include "backtrace.h"
+
 #include "addressmap.h"
 #include "buffers.h"
 #include "channel.h"
@@ -855,6 +858,7 @@ connection_ap_mark_as_pending_circuit_(entry_connection_t *entry_conn,
     log_warn(LD_BUG, "What?? pending_entry_connections already contains %p! "
              "(called from %s:%d)",
              entry_conn, fname, lineno);
+    log_backtrace(LOG_WARN, LD_BUG, "To debug, this may help.");
     return;
   }
 



More information about the tor-commits mailing list