View Issue Details

IDProjectCategoryView StatusLast Update
0002571GNUnetpublic2012-11-05 18:33
ReporterLRN Assigned ToSree Harsha Totakura  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.4Fixed in Version0.9.4 
Summary0002571: Crash in test_stream_sequence_wraparound
DescriptionI get test_stream_sequence_wraparound-10344 WARNING Binding error, then - a crash.
Additional Information
Reading symbols from F:\src\gnunet-git-svn\src\stream\.libs\test_stream_sequence_wraparound.exe...done.
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 10344.0x1344]
0x6aa86b67 in GNUNET_MESH_disconnect (handle=0x732f0026) at mesh_api.c:1604
1604      t = handle->tunnels_head;
(gdb) bt
#0  0x6aa86b67 in GNUNET_MESH_disconnect (handle=0x732f0026) at mesh_api.c:1604
#1  0x68ac9202 in GNUNET_STREAM_listen_close (lsocket=0x1d7dad0) at stream_api.c:3249
#2  0x004013f8 in do_shutdown (cls=0x0, tc=0x28fde0) at test_stream_sequence_wraparound.c:103
#3  0x0040157a in do_abort (cls=0x0, tc=0x28fde0) at test_stream_sequence_wraparound.c:125
#4  0x62af95bc in run_ready (rs=0x1d7a7a0, ws=0x1d7b7b8) at scheduler.c:602
#5  0x62af9d5e in GNUNET_SCHEDULER_run (task=0x6ec03c84 <service_run_main>, task_cls=0x28feb0) at scheduler.c:790
#6  0x6ec03ef8 in GNUNET_TESTING_service_run (testdir=0x405188 <__register_frame_info+4215176> "test_stream_sequence_wraparound", service_name=0x6ec06411 <__register_frame_info+1858102289> "arm",
    cfgfilename=0x40516e <__register_frame_info+4215150> "test_stream_local.conf", tm=0x4026fe <run>, tm_cls=0x0) at testing.c:1155
#7  0x6ec03c82 in GNUNET_TESTING_peer_run (testdir=0x405188 <__register_frame_info+4215176> "test_stream_sequence_wraparound", cfgfilename=0x40516e <__register_frame_info+4215150> "test_stream_local.conf", tm=0x4026fe <run>, tm_cls=0x0)
    at testing.c:1040
#8  0x0040289c in main (argc=1, argv=0x1d69bb8) at test_stream_sequence_wraparound.c:379
(gdb) p/x handle
$1 = 0x732f0026
(gdb) p/x *handle
Cannot access memory at address 0x732f0026
(gdb) up
#1  0x68ac9202 in GNUNET_STREAM_listen_close (lsocket=0x1d7dad0) at stream_api.c:3249
3249        GNUNET_MESH_disconnect (lsocket->mesh);
(gdb) p/x *lsocket
$2 = {mesh = 0x732f0026, cfg = 0x6c697562, lockmanager = 0x61622e64, locking_request = 0x2f372e6b, listen_ok_cb = 0x676e696d, listen_cb = 0x68732f77, listen_cb_cls = 0x2f657261, port = 0x61636f6c,
  lockmanager_acquire_timeout_task = 0x53555f6e452f656c, retransmit_timeout = {rel_value = 0x5353454d5f434c2f}, listening = 0x53454741, testing_active = 0x756e672f, testing_set_write_sequence_number_value = 0x2e74656e, max_payload_size = 0x6f6d}
(gdb) p/x *lsocket->cfg
Cannot access memory at address 0x6c697562
(gdb) p/x *lsocket->lockmanager
Cannot access memory at address 0x61622e64
(gdb) p/x *lsocket->locking_request
Cannot access memory at address 0x2f372e6b
(gdb) p/x *lsocket->listen_ok_cb
Cannot access memory at address 0x676e696d
TagsNo tags attached.

Activities

LRN

2012-09-30 20:06

developer   ~0006392

Can't reproduce anymore. Must have been fixed along the way.

Sree Harsha Totakura

2012-09-30 23:15

developer   ~0006394

This happens because the testcase calls GNUNET_STREAM_listen_close() on a listen socket which has been already been closed when a timeout on lock acquire happens.

Fixed in SVN 24149

Issue History

Date Modified Username Field Change
2012-09-30 17:57 LRN New Issue
2012-09-30 17:57 LRN Status new => assigned
2012-09-30 17:57 LRN Assigned To => Sree Harsha Totakura
2012-09-30 20:06 LRN Note Added: 0006392
2012-09-30 23:15 Sree Harsha Totakura Note Added: 0006394
2012-09-30 23:15 Sree Harsha Totakura Status assigned => resolved
2012-09-30 23:15 Sree Harsha Totakura Fixed in Version => 0.9.4
2012-09-30 23:15 Sree Harsha Totakura Resolution open => fixed
2012-10-06 16:37 Christian Grothoff Product Version => Git master
2012-10-06 16:37 Christian Grothoff Target Version => 0.9.4
2012-11-05 18:33 Christian Grothoff Status resolved => closed
2014-12-15 19:13 Christian Grothoff Category stream library => (No Category)