[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 63/64: Revert "tried to print out stacktrace, not
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 63/64: Revert "tried to print out stacktrace, not working. removed." |
Date: |
Sat, 30 Dec 2017 20:58:48 +0100 |
This is an automated email from the git hooks/post-receive script.
lurchi pushed a commit to branch master
in repository gnunet.
commit 8412625bb5191040389610364167c768bb55efb4
Author: lurchi <address@hidden>
AuthorDate: Sat Dec 30 20:39:39 2017 +0100
Revert "tried to print out stacktrace, not working. removed."
This reverts commit 1522bb78401dd739299cc507e7237df32f239a3f.
---
src/util/mq.c | 36 ------------------------------------
src/util/service.c | 48 ++++++++++++------------------------------------
2 files changed, 12 insertions(+), 72 deletions(-)
diff --git a/src/util/mq.c b/src/util/mq.c
index 3c1fba149..8d71359ac 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -28,30 +28,6 @@
#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
{
@@ -888,18 +864,6 @@ 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 c204f1f87..b4eb33caa 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -36,30 +36,6 @@
#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__)
@@ -2553,18 +2529,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] 38/64: Merge branch 'fix_social' of gnunet.org:gnunet into fix_social, (continued)
- [GNUnet-SVN] [gnunet] 38/64: Merge branch 'fix_social' of gnunet.org:gnunet into fix_social, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 48/64: we have to destroy channels to the origin when cleaning up a member, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 41/64: Merge branch 'fix_social' of gnunet.org:gnunet into fix_social, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 51/64: be more clear about test procedure (use self-explanatory function names), gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 57/64: test_social runs into the case GNUNET_YES == grp->is_disconnected, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 49/64: forgot to call GNUNET_SERVICE_client_continue, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 64/64: Merge branch 'fix_social', gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 28/64: Merge branch 'fix_social' of gnunet.org:gnunet into fix_social, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 53/64: unified debug output (allows grep OP ID), gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 62/64: cleanup, gnunet, 2017/12/30
- [GNUnet-SVN] [gnunet] 63/64: Revert "tried to print out stacktrace, not working. removed.",
gnunet <=