View Issue Details

IDProjectCategoryView StatusLast Update
0001561GNUnetutil librarypublic2010-07-03 20:55
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Summary0001561: gnunet-service-XXX sometimes fails to terminate
DescriptionARM sends the signal, but stats does not die and then ARM hangs waiting for stats to die. Happens rarely (reproduced using test_core_api_start_only on GNU/Linux I7).
Additional InformationNow also seen with gnunet-service-transport. Sending a second TERM signal via console does terminate the process.
TagsNo tags attached.

Relationships

related to 0001567 closed gnunet-arm not shutting down 
related to 0001576 closedChristian Grothoff transport reliability test fails with corrupted message id 

Activities

Christian Grothoff

2010-05-26 13:56

manager   ~0004021

Also seen it happen with peerinfo service now.

mrwiggles

2010-06-30 14:17

developer   ~0004048

Last edited: 2010-06-30 14:18

Happens with gnunet-service-transport (waiting on stats) on tcp reliability testcase (only seen on debian-amd64-grothoff). Happens nearly every time (that the test doesn't fail otherwise). I altered the config files for the reliability tests so statistics doesn't load. Not sure whether that nails the problem to statistics or not.

Christian Grothoff

2010-07-01 09:49

manager   ~0004049

Confirmed: without stats, the testcase passes. Also, I now have a new failing statistics testcase (!).

Christian Grothoff

2010-07-01 11:03

manager   ~0004050

stats test failed due to timeout being set too low. So again not sure what this means.

Christian Grothoff

2010-07-01 17:03

manager   ~0004052

Fixed in 12078. We got the shutdown signal before the init task was run, which meant that the shutdown task scheduled by the init task was already post-sigterm.

The fix simply runs the ready tasks (especially init) BEFORE checking for the shutdown signal, so the very first task is guaranteed to NOT be called with reason shutdown. A bit of a hack, but works and we don't have to change lots of APIs and code.

Issue History

Date Modified Username Field Change
2010-05-26 13:55 Christian Grothoff New Issue
2010-05-26 13:56 Christian Grothoff Note Added: 0004021
2010-05-26 14:09 Christian Grothoff Category statistics service => util library
2010-05-26 14:09 Christian Grothoff Additional Information Updated
2010-05-26 14:10 Christian Grothoff Summary gnunet-service-statistics sometimes fails to terminate => gnunet-service-XXX sometimes fails to terminate
2010-06-28 12:43 Christian Grothoff Relationship added related to 0001567
2010-06-30 14:17 mrwiggles Note Added: 0004048
2010-06-30 14:18 mrwiggles Note Edited: 0004048
2010-07-01 09:49 Christian Grothoff Note Added: 0004049
2010-07-01 09:49 Christian Grothoff Status new => assigned
2010-07-01 09:49 Christian Grothoff Assigned To => Christian Grothoff
2010-07-01 09:49 Christian Grothoff Category util library => statistics service
2010-07-01 09:49 Christian Grothoff Relationship added related to 0001576
2010-07-01 11:03 Christian Grothoff Note Added: 0004050
2010-07-01 13:38 Christian Grothoff Category statistics service => util library
2010-07-01 13:38 Christian Grothoff Assigned To Christian Grothoff =>
2010-07-01 13:38 Christian Grothoff Status assigned => confirmed
2010-07-01 17:03 Christian Grothoff Note Added: 0004052
2010-07-01 17:03 Christian Grothoff Status confirmed => resolved
2010-07-01 17:03 Christian Grothoff Resolution open => fixed
2010-07-01 17:03 Christian Grothoff Assigned To => Christian Grothoff
2010-07-03 20:55 Christian Grothoff Status resolved => closed