View Issue Details

IDProjectCategoryView StatusLast Update
0001841GNUnettransport servicepublic2011-10-31 12:00
ReporterChristian Grothoff Assigned ToMatthias Wachs  
PriorityurgentSeveritycrashReproducibilityrandom
Status closedResolutionfixed 
Product VersionGit master 
Summary0001841: transport service crashes
DescriptionSaw this on my system (with corrupt stack) and now on buildbots:

Oct 23 13:14:23-160121 arm-25401 WARNING Service `transport' terminated with status signal/11, will try to restart it!

(during mesh test on arm)
TagsNo tags attached.

Relationships

related to 0001843 closedMatthias Wachs Use of uninitialised value of size 8 (valgrind report) 

Activities

Matthias Wachs

2011-10-24 09:47

reporter   ~0004740

See 0001843.

Matthias Wachs

2011-10-24 11:56

reporter   ~0004746

(gdb) bt
#0 0x0000000000408912 in try_transmission_to_peer (n=0x8623c0) at gnunet-service-transport_neighbours.c:388
#1 0x0000000000408e42 in transmission_task (cls=0x8623c0, tc=0x7fff3f3b95b0) at gnunet-service-transport_neighbours.c:441
#2 0x00007f66b4e3e392 in run_ready (rs=0x8441b0, ws=0x844240) at scheduler.c:685
#3 0x00007f66b4e3eb43 in GNUNET_SCHEDULER_run (task=0x7f66b4e4877e <service_task>, task_cls=0x7fff3f3b9890) at scheduler.c:867
#4 0x00007f66b4e4a0df in GNUNET_SERVICE_run (argc=3, argv=0x7fff3f3b9ad8, serviceName=0x40ec4f "transport", opt=GNUNET_SERVICE_OPTION_NONE,
    task=0x403504 <run>, task_cls=0x0) at service.c:1608
#5 0x0000000000403846 in main (argc=3, argv=0x7fff3f3b9ad8) at gnunet-service-transport.c:599
(gdb)

Matthias Wachs

2011-10-24 11:57

reporter   ~0004747

/gnunet/gnunet-head/src/mesh$ ./test_mesh_small_unicast

Matthias Wachs

2011-10-24 11:58

reporter   ~0004748

Core was generated by `gnunet-service-transport -c /tmp/test_mesh_small//9//gnunet-testing-config85bET'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000408912 in try_transmission_to_peer (n=0x8623c0) at gnunet-service-transport_neighbours.c:388
388 GNUNET_CONTAINER_DLL_remove (n->messages_head, n->messages_tail, mq);
(gdb) bt

Matthias Wachs

2011-10-24 12:57

reporter   ~0004749

valgrind:


==32699== Invalid read of size 8
==32699== at 0x40898C: try_transmission_to_peer (gnunet-service-transport_neighbours.c:383)
==32699== by 0x408E41: transmission_task (gnunet-service-transport_neighbours.c:441)
==32699== by 0x58A1391: run_ready (scheduler.c:685)
==32699== by 0x58A1B42: GNUNET_SCHEDULER_run (scheduler.c:867)
==32699== by 0x58AD0DE: GNUNET_SERVICE_run (service.c:1608)
==32699== by 0x403845: main (gnunet-service-transport.c:599)
==32699== Address 0x69d2ba0 is 0 bytes inside a block of size 192 free'd
==32699== at 0x4C282ED: free (vg_replace_malloc.c:366)
==32699== by 0x5875437: GNUNET_xfree_ (common_allocation.c:202)
==32699== by 0x409478: disconnect_neighbour (gnunet-service-transport_neighbours.c:525)
==32699== by 0x40990E: send_connect_continuation (gnunet-service-transport_neighbours.c:652)
==32699== by 0x408716: transmit_send_continuation (gnunet-service-transport_neighbours.c:360)
==32699== by 0x408DDF: try_transmission_to_peer (gnunet-service-transport_neighbours.c:423)
==32699== by 0x408E41: transmission_task (gnunet-service-transport_neighbours.c:441)
==32699== by 0x58A1391: run_ready (scheduler.c:685)
==32699== by 0x58A1B42: GNUNET_SCHEDULER_run (scheduler.c:867)
==32699== by 0x58AD0DE: GNUNET_SERVICE_run (service.c:1608)
==32699== by 0x403845: main (gnunet-service-transport.c:599)
==32699==

Matthias Wachs

2011-10-24 17:26

reporter   ~0004756

fixe in 17726

- transmission_task scheduled 2x without checking on task_identifier
- added assertion to see if bug is still existing
- schedule task only if transmission was succesful

Issue History

Date Modified Username Field Change
2011-10-23 20:20 Christian Grothoff New Issue
2011-10-23 20:20 Christian Grothoff Status new => assigned
2011-10-23 20:20 Christian Grothoff Assigned To => Matthias Wachs
2011-10-23 20:21 Christian Grothoff Description Updated
2011-10-24 00:53 Christian Grothoff Relationship added related to 0001843
2011-10-24 09:47 Matthias Wachs Note Added: 0004740
2011-10-24 11:56 Matthias Wachs Note Added: 0004746
2011-10-24 11:57 Matthias Wachs Note Added: 0004747
2011-10-24 11:58 Matthias Wachs Note Added: 0004748
2011-10-24 12:44 Matthias Wachs Status assigned => acknowledged
2011-10-24 12:57 Matthias Wachs Note Added: 0004749
2011-10-24 17:26 Matthias Wachs Note Added: 0004756
2011-10-24 17:26 Matthias Wachs Status acknowledged => resolved
2011-10-24 17:26 Matthias Wachs Resolution open => fixed
2011-10-31 12:00 Christian Grothoff Status resolved => closed