]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a stack trace for help debugging one part of 17659
authorNick Mathewson <nickm@torproject.org>
Fri, 27 Nov 2015 17:11:51 +0000 (12:11 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 27 Nov 2015 17:11:51 +0000 (12:11 -0500)
src/or/connection_edge.c

index 8b2f635b230f1759cda0f23a30c0a289e284ff74..078b9e2f48175771ff400bdfe1d8958f110425ae 100644 (file)
@@ -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;
   }