View Issue Details

IDProjectCategoryView StatusLast Update
0002660GNUnetcadet servicepublic2012-12-21 16:49
ReporterChristian Grothoff Assigned ToBart Polot  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.5Fixed in Version0.9.5 
Summary0002660: crash in mesh (running 'make check' in fs/ directory left a present...)
DescriptionCore was generated by `/home/grothoff/lib/gnunet/libexec/gnunet-service-mesh -c /tmp/testbedmLQQAU/1/c'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fec9240a303 in GNUNET_CONTAINER_multihashmap_get (map=0xdf0adba0df0adba, key=0x7fff103f6d80) at container_multihashmap.c:251
251 me = map->map[idx_of (map, key)];
(gdb) ba
#0 0x00007fec9240a303 in GNUNET_CONTAINER_multihashmap_get (map=0xdf0adba0df0adba, key=0x7fff103f6d80) at container_multihashmap.c:251
#1 0x0000000000403a94 in announce_application (cls=0x0, key=0x7fff103f6d80, value=0x6f8ad0) at gnunet-service-mesh.c:1691
#2 0x00007fec9240a5c8 in GNUNET_CONTAINER_multihashmap_iterate (map=0x6e75f0, it=0x403959 <announce_application>, it_cls=0x0) at container_multihashmap.c:326
#3 0x000000000040453c in announce_applications (cls=0x0, tc=0x7fff103f6e40) at gnunet-service-mesh.c:1918
#4 0x00007fec924312bc in run_ready (rs=0x6e6360, ws=0x6e63f0) at scheduler.c:597
#5 0x00007fec92431a9d in GNUNET_SCHEDULER_run (task=0x7fec9243e6c5 <service_task>, task_cls=0x7fff103f7110) at scheduler.c:785
#6 0x00007fec9244022e in GNUNET_SERVICE_run (argc=3, argv=0x7fff103f7448, service_name=0x424332 "mesh", options=GNUNET_SERVICE_OPTION_NONE, task=0x41d83e <run>,
    task_cls=0x0) at service.c:1813
#7 0x000000000041e312 in main (argc=3, argv=0x7fff103f7448) at gnunet-service-mesh.c:8830
(gdb) print *c
$3 = {next = 0x7fec919af7f8, prev = 0x7fec919af7f8, own_tunnels = 0xdf0adba0df0adba, incoming_tunnels = 0xdf0adba0df0adba, ignore_tunnels = 0xdf0adba0df0adba,
  handle = 0xdf0adba0df0adba, apps = 0xdf0adba0df0adba, types = 0xdf0adba0df0adba, shutting_down = 233876922, id = 233876922, regexes = 0xdf0adba0df0adba,
  n_regex = 233876922, regex_announce_task = 1004493731513019834}
TagsNo tags attached.

Relationships

has duplicate 0002637 closedBart Polot Crash in mesh service during perf_stream_api test 

Activities

Bart Polot

2012-12-04 20:45

reporter   ~0006641

Possible solution in r25247. Can't reproduce bug on my system.

Christian Grothoff

2012-12-07 23:38

manager   ~0006650

I still get _massive_ failures:

Committed revision 25323.
grothoff@spec:~/svn/gnunet/src/fs$ ./perf_gnunet_service_fs_p2p_dht
Dec 07 23:34:01-901511 mesh-20369 WARNING mesh service is lacking key configuration settings (max peers). Using default (1000).
Dec 07 23:34:01-903901 mesh-20370 WARNING mesh service is lacking key configuration settings (max peers). Using default (1000).
Dec 07 23:34:03-764963 mesh-20369 ERROR Assertion failed at peer.c:230.
Dec 07 23:34:03-764991 mesh-20369 ERROR Assertion failed at gnunet-service-mesh.c:2547.
Dec 07 23:34:03-765003 mesh-20369 ERROR no direct connection to 0000
Dec 07 23:34:03-765608 fs-20352 WARNING External protocol violation detected at stream_api.c:2903.
Dec 07 23:34:03-784981 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:03-785004 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [1]
Dec 07 23:34:03-820524 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:03-820546 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [2]
Dec 07 23:34:03-856835 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:03-856862 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [3]
Dec 07 23:34:03-894302 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:03-894329 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [4]
Dec 07 23:34:04-018727 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:04-018745 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [6]
Dec 07 23:34:04-112036 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:04-112058 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [7]
Dec 07 23:34:04-274862 fs-20352 WARNING Message `External protocol violation detected at stream_api.c:2903.' repeated 8 times in the last 509 ms
Dec 07 23:34:04-274862 mesh-api-20352 WARNING ACK on unknown tunnel B0000008
Dec 07 23:34:04-276616 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:04-276632 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [8]
Dec 07 23:34:04-560099 mesh-20369 ERROR Assertion failed at peer.c:230.
Dec 07 23:34:04-560123 mesh-20369 ERROR Assertion failed at gnunet-service-mesh.c:2547.
Dec 07 23:34:04-560129 mesh-20369 ERROR no direct connection to 0000
Dec 07 23:34:04-560768 fs-20352 WARNING External protocol violation detected at stream_api.c:2903.
Dec 07 23:34:05-102411 mesh-20369 ERROR Assertion failed at peer.c:230.
Dec 07 23:34:05-102436 mesh-20369 ERROR Assertion failed at gnunet-service-mesh.c:2547.
Dec 07 23:34:05-102443 mesh-20369 ERROR no direct connection to 0000
Dec 07 23:34:06-165826 fs-20352 WARNING Message `External protocol violation detected at stream_api.c:2903.' repeated 2 times in the last 1605 ms
Dec 07 23:34:06-165826 mesh-api-20352 WARNING ACK on unknown tunnel B000000B
Dec 07 23:34:06-167393 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:06-167407 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [11]
Dec 07 23:34:08-243293 mesh-20369 ERROR Assertion failed at peer.c:230.
Dec 07 23:34:08-243320 mesh-20369 ERROR Assertion failed at gnunet-service-mesh.c:2547.
Dec 07 23:34:08-243326 mesh-20369 ERROR no direct connection to 0000
Dec 07 23:34:08-245036 fs-20352 WARNING External protocol violation detected at stream_api.c:2903.
Dec 07 23:34:12-370266 fs-20352 WARNING Message `External protocol violation detected at stream_api.c:2903.' repeated 1 times in the last 4125 ms
Dec 07 23:34:12-370266 mesh-api-20352 WARNING ACK on unknown tunnel B000000D
Dec 07 23:34:12-372247 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:12-372261 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [13]
Dec 07 23:34:20-605176 fs-20352 WARNING External protocol violation detected at stream_api.c:2903.
Dec 07 23:34:20-606681 mesh-20369 WARNING External protocol violation detected at gnunet-service-mesh.c:5980.
Dec 07 23:34:20-606697 mesh-20369 WARNING Received to_origin with PID 4 on unknown tunnel FC74 [14]

Bart Polot

2012-12-10 14:16

reporter   ~0006664

Failures (in peer.c:230 for instance) are caused by the peer that is the root of the tunnels receiving traffic on tunnels that are either marked for deletion or already deleted.

Mesh handling of this case has been improved in r25354, mesh detects that the tunnel is no longer usable and just drops and logs the message instead of trying to resend it.

The break_op in gnunet-service-mesh.c:5981 (traffic on unknown tunnel) has been left, but can be demoted to a debug/statistic if necessary.

Issue History

Date Modified Username Field Change
2012-11-25 20:26 Christian Grothoff New Issue
2012-11-25 20:26 Christian Grothoff Status new => assigned
2012-11-25 20:26 Christian Grothoff Assigned To => Bart Polot
2012-11-28 01:25 Christian Grothoff Target Version => 0.9.5
2012-12-04 20:45 Bart Polot Note Added: 0006641
2012-12-04 20:45 Bart Polot Status assigned => feedback
2012-12-06 17:33 Bart Polot Relationship added has duplicate 0002637
2012-12-07 23:38 Christian Grothoff Note Added: 0006650
2012-12-07 23:38 Christian Grothoff Status feedback => assigned
2012-12-10 14:16 Bart Polot Note Added: 0006664
2012-12-10 14:16 Bart Polot Status assigned => resolved
2012-12-10 14:16 Bart Polot Fixed in Version => Git master
2012-12-10 14:16 Bart Polot Resolution open => fixed
2012-12-20 23:06 Christian Grothoff Fixed in Version Git master => 0.9.5
2012-12-21 16:49 Christian Grothoff Status resolved => closed
2014-05-09 18:34 Christian Grothoff Category mesh service => cadet service