diff options
author | t3sserakt <t3ss@posteo.de> | 2017-11-25 18:03:03 +0100 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2017-11-25 18:03:03 +0100 |
commit | 1522bb78401dd739299cc507e7237df32f239a3f (patch) | |
tree | 21705ea0a87475d6b3f88996c169714b5eaeacad /src/util/mq.c | |
parent | 4341c875c334f74b767fdbfa01ad1b0160df3f72 (diff) | |
download | gnunet-1522bb78401dd739299cc507e7237df32f239a3f.tar.gz gnunet-1522bb78401dd739299cc507e7237df32f239a3f.zip |
tried to print out stacktrace, not working. removed.
Diffstat (limited to 'src/util/mq.c')
-rw-r--r-- | src/util/mq.c | 36 |
1 files changed, 36 insertions, 0 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 @@ | |||
28 | 28 | ||
29 | #define LOG(kind,...) GNUNET_log_from (kind, "util-mq",__VA_ARGS__) | 29 | #define LOG(kind,...) GNUNET_log_from (kind, "util-mq",__VA_ARGS__) |
30 | 30 | ||
31 | //#if HAVE_EXECINFO_H | ||
32 | //#include "execinfo.h" | ||
33 | |||
34 | ///** | ||
35 | // * Use lsof to generate file descriptor reports on select error? | ||
36 | // * (turn off for stable releases). | ||
37 | // */ | ||
38 | //#define USE_LSOF GNUNET_NO | ||
39 | |||
40 | ///** | ||
41 | // * Obtain trace information for all scheduler calls that schedule tasks. | ||
42 | // */ | ||
43 | //#define EXECINFO GNUNET_NO | ||
44 | |||
45 | ///** | ||
46 | // * Check each file descriptor before adding | ||
47 | // */ | ||
48 | //#define DEBUG_FDS GNUNET_NO | ||
49 | |||
50 | ///** | ||
51 | // * Depth of the traces collected via EXECINFO. | ||
52 | // */ | ||
53 | //#define MAX_TRACE_DEPTH 50 | ||
54 | //#endif | ||
31 | 55 | ||
32 | struct GNUNET_MQ_Envelope | 56 | struct GNUNET_MQ_Envelope |
33 | { | 57 | { |
@@ -866,6 +890,18 @@ GNUNET_MQ_destroy (struct GNUNET_MQ_Handle *mq) | |||
866 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 890 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
867 | "MQ destroy drops current message of type %u\n", | 891 | "MQ destroy drops current message of type %u\n", |
868 | ntohs (mq->current_envelope->mh->type)); | 892 | ntohs (mq->current_envelope->mh->type)); |
893 | //#if EXECINFO | ||
894 | // void *backtrace_array[MAX_TRACE_DEPTH]; | ||
895 | // int num_backtrace_strings = backtrace (backtrace_array, MAX_TRACE_DEPTH); | ||
896 | // char **backtrace_strings = | ||
897 | // backtrace_symbols (backtrace_array, | ||
898 | // t->num_backtrace_strings); | ||
899 | // for (unsigned int i = 0; i < num_backtrace_strings; i++) | ||
900 | // LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
901 | // "client drop trace %u: %s\n", | ||
902 | // i, | ||
903 | // backtrace_strings[i]); | ||
904 | //#endif | ||
869 | GNUNET_MQ_discard (mq->current_envelope); | 905 | GNUNET_MQ_discard (mq->current_envelope); |
870 | mq->current_envelope = NULL; | 906 | mq->current_envelope = NULL; |
871 | GNUNET_assert (0 < mq->queue_length); | 907 | GNUNET_assert (0 < mq->queue_length); |