View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002570 | GNUnet | public | 2012-09-30 05:23 | 2012-11-05 18:33 | |
| Reporter | LRN | Assigned To | Sree Harsha Totakura | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | Git master | ||||
| Target Version | 0.9.4 | Fixed in Version | 0.9.4 | ||
| Summary | 0002570: Crash in test_stream_2peers | ||||
| Description | subj | ||||
| Additional Information |
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 6860.0x1f14]
0x6754853b in GNUNET_TESTBED_operation_done (operation=0x0) at testbed_api.c:1750
1750 switch (operation->type)
(gdb) p operation
$1 = (struct GNUNET_TESTBED_Operation *) 0x0
(gdb) up
#1 0x00402456 in stream_da (cls=0x407040, op_result=0x1e7dff0) at test_stream_2peers.c:464
464 GNUNET_TESTBED_operation_done (peer2.op);
(gdb) p/x peer2
$2 = {peer = 0x1e89f10, socket = 0x0, io_write_handle = 0x0, io_read_handle = 0x0, shutdown_handle = 0x0, op = 0x0, our_id = {hashPubKey = {bits = {0x5435e4a4, 0xe642a200, 0x5079f3e5, 0x89c74ed5, 0x3da1d082, 0x940b4eae, 0xf639aad3, 0x260f6eb2,
0xc6eb5e3e, 0xb55f9cb3, 0xe768df19, 0x412d4f83, 0x2160df5e, 0xd34641ab, 0xa777192d, 0xa0071146}}}, bytes_wrote = 0x0, bytes_read = 0x0}
(gdb) l
459
460 if (&peer1 == cls)
461 {
462 lsocket = op_result;
463 GNUNET_STREAM_listen_close (lsocket);
464 GNUNET_TESTBED_operation_done (peer2.op);
465 return;
466 }
467 if (&peer2 == cls)
468 {
(gdb) p/x peer1
$3 = {peer = 0x1e89ee0, socket = 0x0, io_write_handle = 0x0, io_read_handle = 0x0, shutdown_handle = 0x0, op = 0x1e81dd0, our_id = {hashPubKey = {bits = {0x8b4d0e7b, 0xfecee198, 0x87daac0b, 0x77b12ffb, 0x1052e16e, 0x79bf215d, 0xb4e94b7c,
0x24a52caf, 0xda66fe77, 0xca8ab49c, 0x6c13da24, 0xae0aff64, 0x2b2f59a6, 0xc720bf84, 0x23392a99, 0xe87d15c5}}}, bytes_wrote = 0x0, bytes_read = 0x0}
(gdb) bt
#0 0x6754853b in GNUNET_TESTBED_operation_done (operation=0x0) at testbed_api.c:1750
#1 0x00402456 in stream_da (cls=0x407040, op_result=0x1e7dff0) at test_stream_2peers.c:464
#2 0x6754d611 in oprelease_service_connect (cls=0x1e8e240) at testbed_api_services.c:230
#3 0x67549de9 in GNUNET_TESTBED_operation_release_ (operation=0x1e81dd0) at testbed_api_operations.c:324
#4 0x67548553 in GNUNET_TESTBED_operation_done (operation=0x1e81dd0) at testbed_api.c:1759
#5 0x0040163c in do_close (cls=0x0, tc=0x28fc30) at test_stream_2peers.c:244
#6 0x004017c4 in do_abort (cls=0x0, tc=0x28fc30) at test_stream_2peers.c:286
#7 0x62af95bc in run_ready (rs=0x369fe8, ws=0x36b000) at scheduler.c:602
#8 0x62af9d5e in GNUNET_SCHEDULER_run (task=0x62af2ffc <program_main>, task_cls=0x28fdbc) at scheduler.c:790
#9 0x62af383e in GNUNET_PROGRAM_run2 (argc=3, argv=0x28feb4, binaryName=0x4051a3 <__register_frame_info+4215203> "test_stream_2peers", binaryHelp=0x675540a1 "nohelp", options=0x28fe98, task=0x6754ffd9 <run>, task_cls=0x1e6eb28,
run_without_scheduler=0) at program.c:260
#10 0x62af3942 in GNUNET_PROGRAM_run (argc=3, argv=0x28feb4, binaryName=0x4051a3 <__register_frame_info+4215203> "test_stream_2peers", binaryHelp=0x675540a1 "nohelp", options=0x28fe98, task=0x6754ffd9 <run>, task_cls=0x1e6eb28) at program.c:295
#11 0x675502b2 in GNUNET_TESTBED_test_run (testname=0x4051a3 <__register_frame_info+4215203> "test_stream_2peers", cfg_filename=0x40518c <__register_frame_info+4215180> "test_stream_local.conf", num_peers=2, event_mask=20,
cc=0x402b65 <controller_event_cb>, cc_cls=0x0, test_master=0x402e86 <test_master>, test_master_cls=0x0) at testbed_api_test.c:203
#12 0x004031b6 in main (argc=1, argv=0x1e69d60) at test_stream_2peers.c:644
| ||||
| Tags | No tags attached. | ||||
|
|
Fixed in r24141 |
|
|
But other tests still fail:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8160.0x1420]
0x6754853b in GNUNET_TESTBED_operation_done (operation=0x0) at testbed_api.c:1750
1750 switch (operation->type)
(gdb) bt
#0 0x6754853b in GNUNET_TESTBED_operation_done (operation=0x0) at testbed_api.c:1750
#1 0x0040361e in stream_da (cls=0x4090a0, op_result=0x1d4e008) at test_stream_2peers_halfclose.c:700
#2 0x6754d611 in oprelease_service_connect (cls=0x1d3f708) at testbed_api_services.c:230
#3 0x67549de9 in GNUNET_TESTBED_operation_release_ (operation=0x1d50210) at testbed_api_operations.c:324
#4 0x67548553 in GNUNET_TESTBED_operation_done (operation=0x1d50210) at testbed_api.c:1759
#5 0x00401a9d in do_close (cls=0x0, tc=0x28fc30) at test_stream_2peers_halfclose.c:337
#6 0x00401f7e in do_abort (cls=0x0, tc=0x28fc30) at test_stream_2peers_halfclose.c:410
#7 0x62af95bc in run_ready (rs=0x359fe8, ws=0x35b000) at scheduler.c:602
#8 0x62af9d5e in GNUNET_SCHEDULER_run (task=0x62af2ffc <program_main>, task_cls=0x28fdbc) at scheduler.c:790
#9 0x62af383e in GNUNET_PROGRAM_run2 (argc=3, argv=0x28feb4, binaryName=0x40721f <__register_frame_info+4223519> "test_stream_2peers_halfclose", binaryHelp=0x675540a1 "nohelp", options=0x28fe98, task=0x6754ffd9 <run>, task_cls=0x1d3eb30,
run_without_scheduler=0) at program.c:260
#10 0x62af3942 in GNUNET_PROGRAM_run (argc=3, argv=0x28feb4, binaryName=0x40721f <__register_frame_info+4223519> "test_stream_2peers_halfclose", binaryHelp=0x675540a1 "nohelp", options=0x28fe98, task=0x6754ffd9 <run>, task_cls=0x1d3eb30)
at program.c:295
#11 0x675502b2 in GNUNET_TESTBED_test_run (testname=0x40721f <__register_frame_info+4223519> "test_stream_2peers_halfclose", cfg_filename=0x407208 <__register_frame_info+4223496> "test_stream_local.conf", num_peers=2, event_mask=20,
cc=0x403fec <controller_event_cb>, cc_cls=0x0, test_master=0x40430d <test_master>, test_master_cls=0x0) at testbed_api_test.c:203
#12 0x0040463d in main (argc=1, argv=0x1d39dc8) at test_stream_2peers_halfclose.c:882
(gdb) up
#1 0x0040361e in stream_da (cls=0x4090a0, op_result=0x1d4e008) at test_stream_2peers_halfclose.c:700
700 GNUNET_TESTBED_operation_done (peer1.op);
(gdb) p/x peer1
$1 = {peer = 0x1d59ef8, socket = 0x0, io_write_handle = 0x0, io_read_handle = 0x0, shutdown_handle = 0x0, op = 0x0, our_id = {hashPubKey = {bits = {0x8b4d0e7b, 0xfecee198, 0x87daac0b, 0x77b12ffb, 0x1052e16e, 0x79bf215d, 0xb4e94b7c, 0x24a52caf,
0xda66fe77, 0xca8ab49c, 0x6c13da24, 0xae0aff64, 0x2b2f59a6, 0xc720bf84, 0x23392a99, 0xe87d15c5}}}, bytes_wrote = 0x0, bytes_read = 0x0, test_ok = 0x0, shutdown_operation = 0x0}
|
|
|
Reading symbols from F:\src\gnunet-git-svn\src\stream\.libs\test_stream_local.exe...done.
Continuing.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3244.0x2368]
0x68ac88aa in GNUNET_STREAM_close (socket=0x0) at stream_api.c:3084
3084 if (NULL != socket->read_handle)
(gdb) bt
#0 0x68ac88aa in GNUNET_STREAM_close (socket=0x0) at stream_api.c:3084
#1 0x004015fc in do_shutdown (cls=0x0, tc=0x28fde0) at test_stream_local.c:171
#2 0x00401782 in do_abort (cls=0x0, tc=0x28fde0) at test_stream_local.c:193
#3 0x62af95bc in run_ready (rs=0x5ba7c0, ws=0x5bb7d8) at scheduler.c:602
#4 0x62af9d5e in GNUNET_SCHEDULER_run (task=0x6ec03c84 <service_run_main>, task_cls=0x28feb0) at scheduler.c:790
#5 0x6ec03ef8 in GNUNET_TESTING_service_run (testdir=0x40411a <__register_frame_info+4210970> "test_stream_local", service_name=0x6ec06411 <__register_frame_info+1858102289> "arm",
cfgfilename=0x404103 <__register_frame_info+4210947> "test_stream_local.conf", tm=0x40241a <run>, tm_cls=0x0) at testing.c:1155
#6 0x6ec03c82 in GNUNET_TESTING_peer_run (testdir=0x40411a <__register_frame_info+4210970> "test_stream_local", cfgfilename=0x404103 <__register_frame_info+4210947> "test_stream_local.conf", tm=0x40241a <run>, tm_cls=0x0) at testing.c:1040
#7 0x004025a8 in main (argc=1, argv=0x5a9ba8) at test_stream_local.c:384
(gdb) up
#1 0x004015fc in do_shutdown (cls=0x0, tc=0x28fde0) at test_stream_local.c:171
171 GNUNET_STREAM_close (peer1.socket);
(gdb) p/x peer1
$1 = {socket = 0x0, io_write_handle = 0x0, io_read_handle = 0x0, bytes_wrote = 0x0, bytes_read = 0x0}
(gdb) p/x peer2
$2 = {socket = 0x0, io_write_handle = 0x0, io_read_handle = 0x0, bytes_wrote = 0x0, bytes_read = 0x0}
|
|
|
This is completely bonkers:
Reading symbols from F:\src\gnunet-git-svn\src\stream\.libs\test_stream_sequence_wraparound.exe...done.
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 9324.0x18ec]
0x74fd280d in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll
(gdb) bt
#0 0x74fd280d in KERNELBASE!DeleteAce () from C:\Windows\syswow64\KernelBase.dll
#1 0x62ac6abc in GNUNET_abort () at common_logging.c:291
#2 0x0040237e in stream_listen_cb (cls=0x0, socket=0x0, initiator=0x0) at test_stream_sequence_wraparound.c:304
#3 0x68ac79a7 in lockmanager_acquire_timeout (cls=0x1dbace8, tc=0x28fde0) at stream_api.c:2828
#4 0x62af95bc in run_ready (rs=0x1dbb5f8, ws=0x1dbc610) 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=0x405178 <__register_frame_info+4215160> "test_stream_sequence_wraparound", service_name=0x6ec06411 <__register_frame_info+1858102289> "arm",
cfgfilename=0x40515f <__register_frame_info+4215135> "test_stream_local.conf", tm=0x402617 <run>, tm_cls=0x0) at testing.c:1155
#7 0x6ec03c82 in GNUNET_TESTING_peer_run (testdir=0x405178 <__register_frame_info+4215160> "test_stream_sequence_wraparound", cfgfilename=0x40515f <__register_frame_info+4215135> "test_stream_local.conf", tm=0x402617 <run>, tm_cls=0x0)
at testing.c:1040
#8 0x004027b5 in main (argc=1, argv=0x1da9bb8) at test_stream_sequence_wraparound.c:370
(gdb) up
#1 0x62ac6abc in GNUNET_abort () at common_logging.c:291
291 DebugBreak ();
(gdb)
#2 0x0040237e in stream_listen_cb (cls=0x0, socket=0x0, initiator=0x0) at test_stream_sequence_wraparound.c:304
304 GNUNET_assert (NULL != socket);
(gdb)
#3 0x68ac79a7 in lockmanager_acquire_timeout (cls=0x1dbace8, tc=0x28fde0) at stream_api.c:2828
2828 listen_cb (listen_cb_cls, NULL, NULL);
|
|
|
I believe SVN 24145 fixes the crashes. |
|
|
Indeed. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-09-30 05:23 | LRN | New Issue | |
| 2012-09-30 05:23 | LRN | Status | new => assigned |
| 2012-09-30 05:23 | LRN | Assigned To | => Sree Harsha Totakura |
| 2012-09-30 14:39 | LRN | Note Added: 0006386 | |
| 2012-09-30 14:41 | LRN | Note Added: 0006387 | |
| 2012-09-30 14:42 | LRN | Note Added: 0006388 | |
| 2012-09-30 14:47 | LRN | Note Added: 0006389 | |
| 2012-09-30 17:17 | Sree Harsha Totakura | Note Added: 0006390 | |
| 2012-09-30 17:17 | Sree Harsha Totakura | Status | assigned => feedback |
| 2012-09-30 17:56 | LRN | Note Added: 0006391 | |
| 2012-09-30 17:56 | LRN | Status | feedback => assigned |
| 2012-09-30 17:56 | LRN | Status | assigned => resolved |
| 2012-09-30 17:56 | LRN | Resolution | open => fixed |
| 2012-10-06 16:37 | Christian Grothoff | Fixed in Version | => 0.9.4 |
| 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) |