View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001998 | GNUnet | hostlist daemon | public | 2011-12-08 19:45 | 2011-12-26 22:28 |
| Reporter | LRN | Assigned To | Matthias Wachs | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Product Version | Git master | ||||
| Target Version | 0.9.1 | Fixed in Version | 0.9.1 | ||
| Summary | 0001998: Crash in test_gnunet_daemon_hostlist | ||||
| Description | r18521 | ||||
| Additional Information | Attaching to process 13684 [New Thread 13684.0x3a60] [New Thread 13684.0x1014] [New Thread 13684.0x3274] [New Thread 13684.0x40e8] [New Thread 13684.0x3e60] [New Thread 13684.0x23cc] Reading symbols from f:\src\gnunet-git-svn\src\hostlist\.libs\test_gnunet_daemon_hostlist.exe...done. [Switching to Thread 13684.0x23cc] (gdb) bt #0 0x77ad000d in ntdll!LdrFindResource_U () from E:\Windows\SysWOW64\ntdll.dll #1 0x77b5f826 in ntdll!RtlQueryTimeZoneInformation () from E:\Windows\SysWOW64\ntdll.dll #2 0x2ad04c3a in ?? () #3 0x00000000 in ?? () (gdb) c Continuing. Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 13684.0x3a60] 0x7522280d in KERNELBASE!DeleteAce () from E:\Windows\syswow64\KernelBase.dll (gdb) bt #0 0x7522280d in KERNELBASE!DeleteAce () from E:\Windows\syswow64\KernelBase.dll #1 0x6be464c0 in GNUNET_abort () at common_logging.c:271 #2 0x6c2c5ad4 in _fu242__skip_log () at transport_api.c:1228 #3 0x004013a8 in clean_up (cls=0x0, tc=0x28fc70) at test_gnunet_daemon_hostlist.c:65 #4 0x0040147a in _fu2__skip_log () at test_gnunet_daemon_hostlist.c:85 #5 0x6be74553 in run_ready (rs=0x22d3bd8, ws=0x22d4bf0) at scheduler.c:684 #6 0x6be74cc1 in GNUNET_SCHEDULER_run (task=0x6be6e410 <program_main>, task_cls=0x28fdfc) at scheduler.c:874 #7 0x6be6ec25 in GNUNET_PROGRAM_run (argc=5, argv=0x28fec8, binaryName=0x404222 "test-gnunet-daemon-hostlist", binaryHelp=0x40421b "nohelp", options=0x28feac, task=0x401ba5 <run>, task_cls=0x406020) at program.c:250 #8 0x00401d6e in check () at test_gnunet_daemon_hostlist.c:214 #9 0x00401dce in main (argc=1, argv=0x22c9ce0) at test_gnunet_daemon_hostlist.c:237 (gdb) up 2 #2 0x6c2c5ad4 in _fu242__skip_log () at transport_api.c:1228 1228 GNUNET_assert (handle->hwl_head == NULL); (gdb) l 1223 GNUNET_SCHEDULER_cancel (handle->quota_task); 1224 handle->quota_task = GNUNET_SCHEDULER_NO_TASK; 1225 } 1226 GNUNET_free_non_null (handle->my_hello); 1227 handle->my_hello = NULL; 1228 GNUNET_assert (handle->hwl_head == NULL); 1229 GNUNET_assert (handle->hwl_tail == NULL); 1230 GNUNET_CONTAINER_heap_destroy (handle->ready_heap); 1231 handle->ready_heap = NULL; 1232 GNUNET_free (handle); | ||||
| Tags | No tags attached. | ||||
| Attached Files | crashinfo13.txt (2,057 bytes)
Attaching to process 13684
[New Thread 13684.0x3a60]
[New Thread 13684.0x1014]
[New Thread 13684.0x3274]
[New Thread 13684.0x40e8]
[New Thread 13684.0x3e60]
[New Thread 13684.0x23cc]
Reading symbols from f:\src\gnunet-git-svn\src\hostlist\.libs\test_gnunet_daemon_hostlist.exe...done.
[Switching to Thread 13684.0x23cc]
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 13684.0x3a60]
0x7522280d in KERNELBASE!DeleteAce () from E:\Windows\syswow64\KernelBase.dll
(gdb) bt
#0 0x7522280d in KERNELBASE!DeleteAce () from E:\Windows\syswow64\KernelBase.dll
#1 0x6be464c0 in GNUNET_abort () at common_logging.c:271
#2 0x6c2c5ad4 in _fu242__skip_log () at transport_api.c:1228
#3 0x004013a8 in clean_up (cls=0x0, tc=0x28fc70) at test_gnunet_daemon_hostlist.c:65
#4 0x0040147a in _fu2__skip_log () at test_gnunet_daemon_hostlist.c:85
#5 0x6be74553 in run_ready (rs=0x22d3bd8, ws=0x22d4bf0) at scheduler.c:684
#6 0x6be74cc1 in GNUNET_SCHEDULER_run (task=0x6be6e410 <program_main>, task_cls=0x28fdfc) at scheduler.c:874
#7 0x6be6ec25 in GNUNET_PROGRAM_run (argc=5, argv=0x28fec8, binaryName=0x404222 "test-gnunet-daemon-hostlist", binaryHelp=0x40421b "nohelp",
options=0x28feac, task=0x401ba5 <run>, task_cls=0x406020) at program.c:250
#8 0x00401d6e in check () at test_gnunet_daemon_hostlist.c:214
#9 0x00401dce in main (argc=1, argv=0x22c9ce0) at test_gnunet_daemon_hostlist.c:237
(gdb) up 2
#2 0x6c2c5ad4 in _fu242__skip_log () at transport_api.c:1228
1228 GNUNET_assert (handle->hwl_head == NULL);
(gdb) l
1223 GNUNET_SCHEDULER_cancel (handle->quota_task);
1224 handle->quota_task = GNUNET_SCHEDULER_NO_TASK;
1225 }
1226 GNUNET_free_non_null (handle->my_hello);
1227 handle->my_hello = NULL;
1228 GNUNET_assert (handle->hwl_head == NULL);
1229 GNUNET_assert (handle->hwl_tail == NULL);
1230 GNUNET_CONTAINER_heap_destroy (handle->ready_heap);
1231 handle->ready_heap = NULL;
1232 GNUNET_free (handle); 0001-Fix-1998.patch (1,442 bytes)
From 7522ee4d7a122ed21193d5cec69880a268c40069 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1=D1?=
=?UTF-8?q?=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= <lrn1986@gmail.com>
Date: Thu, 8 Dec 2011 23:38:25 +0400
Subject: [PATCH 1/2] Fix #1998
---
src/hostlist/test_gnunet_daemon_hostlist.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/hostlist/test_gnunet_daemon_hostlist.c b/src/hostlist/test_gnunet_daemon_hostlist.c
index cac2cc6..91e0b37 100644
--- a/src/hostlist/test_gnunet_daemon_hostlist.c
+++ b/src/hostlist/test_gnunet_daemon_hostlist.c
@@ -62,11 +62,21 @@ clean_up (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
if (p1.th != NULL)
{
+ if (p1.ghh != NULL)
+ {
+ GNUNET_TRANSPORT_get_hello_cancel (p1.ghh);
+ p1.ghh = NULL;
+ }
GNUNET_TRANSPORT_disconnect (p1.th);
p1.th = NULL;
}
if (p2.th != NULL)
{
+ if (p2.ghh != NULL)
+ {
+ GNUNET_TRANSPORT_get_hello_cancel (p2.ghh);
+ p2.ghh = NULL;
+ }
GNUNET_TRANSPORT_disconnect (p2.th);
p2.th = NULL;
}
@@ -118,6 +128,7 @@ process_hello (void *cls, const struct GNUNET_MessageHeader *message)
struct PeerContext *p = cls;
GNUNET_TRANSPORT_get_hello_cancel (p->ghh);
+ p->ghh = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received HELLO, starting hostlist service.\n");
}
--
1.7.4
| ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-12-08 19:45 | LRN | New Issue | |
| 2011-12-08 19:45 | LRN | Status | new => assigned |
| 2011-12-08 19:45 | LRN | Assigned To | => Matthias Wachs |
| 2011-12-08 19:45 | LRN | File Added: crashinfo13.txt | |
| 2011-12-08 23:28 | LRN | File Added: 0001-Fix-1998.patch | |
| 2011-12-19 14:08 | Matthias Wachs | Note Added: 0005135 | |
| 2011-12-19 14:08 | Matthias Wachs | Status | assigned => resolved |
| 2011-12-19 14:08 | Matthias Wachs | Resolution | open => fixed |
| 2011-12-19 14:08 | Matthias Wachs | Target Version | => 0.9.1 |
| 2011-12-25 17:50 | Christian Grothoff | Fixed in Version | => 0.9.1 |
| 2011-12-26 22:28 | Christian Grothoff | Status | resolved => closed |