View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002853 | GNUnet | ARM service | public | 2013-04-03 15:14 | 2013-12-24 20:55 |
| Reporter | Sree Harsha Totakura | Assigned To | Sree Harsha Totakura | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | Git master | ||||
| Target Version | 0.10.0 | Fixed in Version | 0.10.0 | ||
| Summary | 0002853: crash in ARM API upon clearing ARM handle at shutdown | ||||
| Description | totakura@nautophone:~/repos/gnunet/src/testbed$ gnunet-arm -k statistics Began monitoring ARM for service status changes Stopping statistics... ^CApr 03 14:19:41-659003 gnunet-arm-13365 ERROR Assertion failed at arm_api.c:494. Aborted (core dumped) totakura@nautophone:~/repos/gnunet/src/testbed$ gdb `which gnunet-arm` core GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/bin/gnunet-arm...done. warning: core file may not match specified executable file. [New LWP 32582] Core was generated by `/home/totakura/repos/gnunet/src/testbed/.libs/lt-test_testbed_api_testbed_run_t'. Program terminated with signal 6, Aborted. #0 0x00007f68ce963475 in ?? () (gdb) q totakura@nautophone:~/repos/gnunet/src/testbed$ rm core totakura@nautophone:~/repos/gnunet/src/testbed$ gdb `which gnunet-arm` /tmp/cores/gnunet-arm-1364991581.13365 GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/local/bin/gnunet-arm...done. [New LWP 13365] warning: Can't read pathname for load map: Input/output error. Core was generated by `gnunet-arm -k statistics'. Program terminated with signal 6, Aborted. #0 0x00007fbfd8521475 in raise () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) by Undefined command: "by". Try "help". (gdb) bt #0 0x00007fbfd8521475 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fbfd85246f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007fbfd8d1653c in GNUNET_abort () at common_logging.c:293 #3 0x00007fbfd8f7b4f6 in control_message_timeout (cls=0x1871730, tc=0x7fff30c428d0) at arm_api.c:493 #4 0x00007fbfd8d4f969 in run_ready (rs=0x1847710, ws=0x18477a0) at scheduler.c:597 #5 0x00007fbfd8d501b8 in GNUNET_SCHEDULER_run (task=0x7fbfd8d46af0 <program_main>, task_cls=0x7fff30c42b70) at scheduler.c:786 #6 0x00007fbfd8d47527 in GNUNET_PROGRAM_run2 (argc=3, argv=0x1844100, binaryName=0x4032e9 "gnunet-arm", binaryHelp=0x4032b0 "Control services and the Automated Restart Manager (ARM)", options=0x403520, task=0x40284f <run>, task_cls=0x0, run_without_scheduler=0) at program.c:273 #7 0x00007fbfd8d47648 in GNUNET_PROGRAM_run (argc=3, argv=0x1844100, binaryName=0x4032e9 "gnunet-arm", binaryHelp=0x4032b0 "Control services and the Automated Restart Manager (ARM)", options=0x403520, task=0x40284f <run>, task_cls=0x0) at program.c:308 #8 0x0000000000402a1e in main (argc=3, argv=0x1844100) at gnunet-arm.c:639 (gdb) select-frame 3 (gdb) p cm->h->control_sent_head $1 = (struct ARMControlMessage *) 0xdf0adba0df0adba (gdb) p cm->h $2 = (struct GNUNET_ARM_Handle *) 0x185cea0 (gdb) p *cm->h $3 = {client = 0x0, cfg = 0xdf0adba0df0adba, cth = 0xdf0adba0df0adba, control_pending_head = 0xdf0adba0df0adba, control_pending_tail = 0xdf0adba0df0adba, control_sent_head = 0xdf0adba0df0adba, control_sent_tail = 0xdf0adba0df0adba, reconnect_task = 1004493731513019834, retry_backoff = { rel_value = 1004493731513019834}, conn_status = 0xdf0adba0df0adba, conn_status_cls = 0xdf0adba0df0adba, request_id_counter = 1004493731513019834, currently_down = 186 '\272', service_test_is_active = 173 '\255'} (gdb) bt #0 0x00007fbfd8521475 in raise () from /lib/x86_64-linux-gnu/libc.so.6 #1 0x00007fbfd85246f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6 #2 0x00007fbfd8d1653c in GNUNET_abort () at common_logging.c:293 #3 0x00007fbfd8f7b4f6 in control_message_timeout (cls=0x1871730, tc=0x7fff30c428d0) at arm_api.c:493 #4 0x00007fbfd8d4f969 in run_ready (rs=0x1847710, ws=0x18477a0) at scheduler.c:597 #5 0x00007fbfd8d501b8 in GNUNET_SCHEDULER_run (task=0x7fbfd8d46af0 <program_main>, task_cls=0x7fff30c42b70) at scheduler.c:786 #6 0x00007fbfd8d47527 in GNUNET_PROGRAM_run2 (argc=3, argv=0x1844100, binaryName=0x4032e9 "gnunet-arm", binaryHelp=0x4032b0 "Control services and the Automated Restart Manager (ARM)", options=0x403520, task=0x40284f <run>, task_cls=0x0, run_without_scheduler=0) at program.c:273 #7 0x00007fbfd8d47648 in GNUNET_PROGRAM_run (argc=3, argv=0x1844100, binaryName=0x4032e9 "gnunet-arm", binaryHelp=0x4032b0 "Control services and the Automated Restart Manager (ARM)", options=0x403520, task=0x40284f <run>, task_cls=0x0) at program.c:308 #8 0x0000000000402a1e in main (argc=3, argv=0x1844100) at gnunet-arm.c:639 (gdb) select-frame 3 (gdb) p cm->timeout_task_id $4 = 10 (gdb) p cm->msg $5 = (struct GNUNET_ARM_Message *) 0x18712e0 (gdb) p htons(cm->msg->header.type) You can't do that without a process to debug. (gdb) p cm->msg->header.type $6 = 2304 (gdb) p (char *)cm->msg[1] $7 = 0x6974736974617473 <Address 0x6974736974617473 out of bounds> (gdb) p (char *)&cm->msg[1] $8 = 0x18712f0 "statistics" (gdb) p cm->type $9 = 0 (gdb) | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-04-03 15:14 | Sree Harsha Totakura | New Issue | |
| 2013-04-03 15:14 | Sree Harsha Totakura | Status | new => assigned |
| 2013-04-03 15:14 | Sree Harsha Totakura | Assigned To | => Sree Harsha Totakura |
| 2013-04-03 15:32 | Sree Harsha Totakura | Note Added: 0007029 | |
| 2013-04-03 15:32 | Sree Harsha Totakura | Status | assigned => resolved |
| 2013-04-03 15:32 | Sree Harsha Totakura | Fixed in Version | => 0.10.0 |
| 2013-04-03 15:32 | Sree Harsha Totakura | Resolution | open => fixed |
| 2013-12-24 20:55 | Christian Grothoff | Status | resolved => closed |