[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 44/64: tried to print out stacktrace, not working.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 44/64: tried to print out stacktrace, not working. removed. |
Date: |
Sat, 30 Dec 2017 20:58:29 +0100 |
This is an automated email from the git hooks/post-receive script.
lurchi pushed a commit to branch master
in repository gnunet.
commit 1522bb78401dd739299cc507e7237df32f239a3f
Author: t3sserakt <address@hidden>
AuthorDate: Sat Nov 25 18:03:03 2017 +0100
tried to print out stacktrace, not working. removed.
---
src/util/mq.c | 36 ++++++++++++++++++++++++++++++++++++
src/util/service.c | 48 ++++++++++++++++++++++++++++++++++++------------
2 files changed, 72 insertions(+), 12 deletions(-)
diff --git a/src/util/mq.c b/src/util/mq.c
index 58aba7797..4984df76c 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -28,6 +28,30 @@
#define LOG(kind,...) GNUNET_log_from (kind, "util-mq",__VA_ARGS__)
+//#if HAVE_EXECINFO_H
+//#include "execinfo.h"
+
+///**
+// * Use lsof to generate file descriptor reports on select error?
+// * (turn off for stable releases).
+// */
+//#define USE_LSOF GNUNET_NO
+
+///**
+// * Obtain trace information for all scheduler calls that schedule tasks.
+// */
+//#define EXECINFO GNUNET_NO
+
+///**
+// * Check each file descriptor before adding
+// */
+//#define DEBUG_FDS GNUNET_NO
+
+///**
+// * Depth of the traces collected via EXECINFO.
+// */
+//#define MAX_TRACE_DEPTH 50
+//#endif
struct GNUNET_MQ_Envelope
{
@@ -866,6 +890,18 @@ GNUNET_MQ_destroy (struct GNUNET_MQ_Handle *mq)
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"MQ destroy drops current message of type %u\n",
ntohs (mq->current_envelope->mh->type));
+//#if EXECINFO
+// void *backtrace_array[MAX_TRACE_DEPTH];
+// int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH);
+// char **backtrace_strings =
+// backtrace_symbols (backtrace_array,
+// t->num_backtrace_strings);
+// for (unsigned int i = 0; i < num_backtrace_strings; i++)
+// LOG (GNUNET_ERROR_TYPE_DEBUG,
+// "client drop trace %u: %s\n",
+// i,
+// backtrace_strings[i]);
+//#endif
GNUNET_MQ_discard (mq->current_envelope);
mq->current_envelope = NULL;
GNUNET_assert (0 < mq->queue_length);
diff --git a/src/util/service.c b/src/util/service.c
index b4eb33caa..c204f1f87 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -36,6 +36,30 @@
#include "gauger.h"
#endif
+//#if HAVE_EXECINFO_H
+//#include "execinfo.h"
+
+///**
+// * Use lsof to generate file descriptor reports on select error?
+// * (turn off for stable releases).
+// */
+//#define USE_LSOF GNUNET_NO
+
+///**
+// * Obtain trace information for all scheduler calls that schedule tasks.
+// */
+//#define EXECINFO GNUNET_NO
+
+///**
+// * Check each file descriptor before adding
+// */
+//#define DEBUG_FDS GNUNET_NO
+
+///**
+// * Depth of the traces collected via EXECINFO.
+// */
+//#define MAX_TRACE_DEPTH 50
+//#endif
#define LOG(kind,...) GNUNET_log_from (kind, "util-service", __VA_ARGS__)
@@ -2529,18 +2553,18 @@ GNUNET_SERVICE_client_drop (struct
GNUNET_SERVICE_Client *c)
c,
c->mq);
-#if EXECINFO
- void *backtrace_array[MAX_TRACE_DEPTH];
- int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH);
- char **backtrace_strings =
- backtrace_symbols (backtrace_array,
- t->num_backtrace_strings);
- for (unsigned int i = 0; i < num_backtrace_strings; i++)
- LOG (GNUNET_ERROR_TYPE_DEBUG,
- "client drop trace %u: %s\n",
- i,
- backtrace_strings[i]);
-#endif
+//#if EXECINFO
+// void *backtrace_array[MAX_TRACE_DEPTH];
+// int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH);
+// char **backtrace_strings =
+// backtrace_symbols (backtrace_array,
+// t->num_backtrace_strings);
+// for (unsigned int i = 0; i < num_backtrace_strings; i++)
+// LOG (GNUNET_ERROR_TYPE_DEBUG,
+// "client drop trace %u: %s\n",
+// i,
+// backtrace_strings[i]);
+//#endif
if (NULL != c->drop_task)
{
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 37/64: mark channel as disconnectin when a part request is sent; cleanup, (continued)
- [GNUnet-SVN] [gnunet] 37/64: mark channel as disconnectin when a part request is sent; cleanup, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 33/64: Merge branch 'fix_social' of gnunet.org:gnunet into fix_social, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 24/64: changed log levels, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 42/64: added logging, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 54/64: test_social: less services and less noise in the output, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 34/64: introduce part request / part ack messages (for leaving multicast groups) and related fixes, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 43/64: fixed compile error, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 29/64: use comfort functions of MQ API, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 30/64: Introduce PART/PART_ACK messages (tests will fail until multicast module is adapted, too), gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 22/64: protocol change: add ack message for guests/hosts leaving a place, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 44/64: tried to print out stacktrace, not working. removed.,
gnunet <=
- [GNUnet-SVN] [gnunet] 50/64: remove debug assertion; add debug output, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 59/64: master/slave pointers must not be NULL immediatly after sending leave request, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 58/64: fixing the place leave logic after protocol change, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 55/64: test_psyc: less services and less noise in the output, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 60/64: actually test reconnecting; result in enter callback must always be GNUNET_OK, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 56/64: result is a boolean; stylistic changes, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 52/64: stylistic fix, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 61/64: consider entry decision while re-entering a place, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 27/64: Use MQ API instead of manually allocating messages; simplify logic in handle_client_psyc_message; cleanup, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 45/64: actually use the is_disconnecting flag; debug output; remove dead code, gnunet, 2017/12/30