View Issue Details

IDProjectCategoryView StatusLast Update
0002007GNUnettransport servicepublic2011-12-26 22:28
ReporterLRN Assigned ToMatthias Wachs  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version0.9.0 
Target Version0.9.1Fixed in Version0.9.1 
Summary0002007: Crash in transport service
Descriptionr18572 + 7

Happens after a node has been running for a few minutes (happened at least twice)
Additional Information
Reading symbols from d:\progs\gnunet\bin\gnunet-service-transport.exe...done.
[Switching to Thread 15716.0x3df0]
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 15716.0x4110]
0x654c34c6 in get_addresses (cls=0x0, tc=0x28fc90) at ats_api_scheduling.c:743
743       sh->interface_task = GNUNET_SCHEDULER_NO_TASK;
(gdb) bt
#0  0x654c34c6 in get_addresses (cls=0x0, tc=0x28fc90) at ats_api_scheduling.c:743
#1  0x6be74577 in run_ready (rs=0x1e6d5d0, ws=0x1e73b08) at scheduler.c:684
#2  0x6be74ce5 in GNUNET_SCHEDULER_run (task=0x6be7f04a <service_task>, task_cls=0x28fe28) at scheduler.c:874
#3  0x6be7fd2e in GNUNET_SERVICE_run (argc=3, argv=0x1e6ac80, serviceName=0x4152af "transport", opt=GNUNET_SERVICE_OPTION_NONE,
    task=0x4021cc <run>, task_cls=0x0) at service.c:1673
#4  0x00402539 in main (argc=3, argv=0x1e6ac80) at gnunet-service-transport.c:573
(gdb) l
738      */
739     static void
740     get_addresses (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
741     {
742       struct GNUNET_ATS_SchedulingHandle * sh = cls;
743       sh->interface_task = GNUNET_SCHEDULER_NO_TASK;
744       delete_networks (sh);
745       GNUNET_OS_network_interfaces_list(interface_proc, sh);
746
747       sh->interface_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, get_addresses, NULL);
(gdb) p sh
$1 = (struct GNUNET_ATS_SchedulingHandle *) 0x0
TagsNo tags attached.
Attached Files
0001-Fix-cls-for-get_addresses.patch (974 bytes)   
From d46ace7b4ca8de071173712bb441138400a04087 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: Tue, 13 Dec 2011 19:16:37 +0400
Subject: [PATCH 1/2] Fix cls for get_addresses()

---
 src/ats/ats_api_scheduling.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 03b8e34..7ac53f1 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -744,7 +744,7 @@ get_addresses (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   delete_networks (sh);
   GNUNET_OS_network_interfaces_list(interface_proc, sh);
 
-  sh->interface_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, get_addresses, NULL);
+  sh->interface_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, get_addresses, sh);
 }
 
 /**
-- 
1.7.4

Activities

Matthias Wachs

2011-12-13 16:13

reporter   ~0005080

fixed in 18574.

LRN

2011-12-13 17:30

reporter   ~0005082

Grep ats_api_scheduling.c for "GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, get_addresses," and fix the other scheduling call as well.

LRN

2011-12-13 17:47

reporter   ~0005083

Uploaded a patch 0001-Fix-cls-for-get_addresses.patch

Matthias Wachs

2011-12-14 11:27

reporter   ~0005094

fixed

Issue History

Date Modified Username Field Change
2011-12-13 16:03 LRN New Issue
2011-12-13 16:03 LRN Status new => assigned
2011-12-13 16:03 LRN Assigned To => Matthias Wachs
2011-12-13 16:13 Matthias Wachs Note Added: 0005080
2011-12-13 16:13 Matthias Wachs Severity minor => crash
2011-12-13 16:13 Matthias Wachs Status assigned => resolved
2011-12-13 16:13 Matthias Wachs Resolution open => fixed
2011-12-13 17:30 LRN Note Added: 0005082
2011-12-13 17:30 LRN Status resolved => feedback
2011-12-13 17:30 LRN Resolution fixed => reopened
2011-12-13 17:47 LRN File Added: 0001-Fix-cls-for-get_addresses.patch
2011-12-13 17:47 LRN Note Added: 0005083
2011-12-13 17:47 LRN Status feedback => assigned
2011-12-14 11:27 Matthias Wachs Note Added: 0005094
2011-12-14 11:27 Matthias Wachs Status assigned => resolved
2011-12-14 11:27 Matthias Wachs Resolution reopened => fixed
2011-12-17 20:00 Christian Grothoff Product Version => 0.9.0
2011-12-17 20:00 Christian Grothoff Fixed in Version => 0.9.1
2011-12-17 20:00 Christian Grothoff Target Version => 0.9.1
2011-12-26 22:28 Christian Grothoff Status resolved => closed