View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001669 | GNUnet | transport service | public | 2011-03-22 09:52 | 2011-04-28 19:36 |
| Reporter | Matthias Wachs | Assigned To | Matthias Wachs | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Summary | 0001669: Transport testcases crash with SIGBUS (10) on freebsd | ||||
| Description | All transport testcases fail on freebsd buildbot: transport service terminated with SIGBUS SIGBUS seems to be related with the first GNUNET_CLIENT_connect call First call is GNUNET_STATISTICS_create (line gnunet-service-transport.c:5757) If GNUNET_STATISTICS_create is removed, next GNUNET_CLIENT_connect causes problem: GNUNET_PEERINFO_connect (line gnunet-service-transport.c:5785) coredump shows backtrace: #0 0x000000080095eaa3 in findSection (cfg=0x80084c5eb, section=0x40d8b8 "transport") at configuration.c:472 472 while ((pos != NULL) && (0 != strcasecmp (section, pos->name))) (gdb) bt #0 0x000000080095eaa3 in findSection (cfg=0x80084c5eb, section=0x40d8b8 "transport") at configuration.c:472 #1 0x000000080095eae1 in findEntry (cfg=0x80084c5eb, section=0x40d8b8 "transport", key=0x800984390 "UNIXPATH") at configuration.c:493 #2 0x000000080095eec9 in GNUNET_CONFIGURATION_get_value_string (cfg=0x80084c5eb, section=0x40d8b8 "transport", option=0x800984390 "UNIXPATH", value=0x7fffffffe2e0) at configuration.c:686 #3 0x000000080095b181 in do_connect (service_name=0x40d8b8 "transport", cfg=0x80084c5eb, attempt=0) at client.c:279 #4 0x000000080095b3c2 in GNUNET_CLIENT_connect (service_name=0x40d8b8 "transport", cfg=0x80084c5eb) at client.c:374 #5 0x000000080084a75d in try_connect (ret=0x8016140f0) at statistics_api.c:321 #6 0x000000080084b655 in GNUNET_STATISTICS_create (sched=0x40d8b8, subsystem=0x80160d040 " <a\001\b", cfg=0x80160d040) at statistics_api.c:750 #7 0x000000000040c041 in run (cls=0x0, server=0x8016180b0, c=0x80160d040) at gnunet-service-transport.c:5757 #8 0x00000008009818ac in service_task (cls=0x7fffffffe740, tc=0x7fffffffe480) at service.c:1397 #9 0x000000080097acb4 in run_ready (rs=0x801616080, ws=0x801616110) at scheduler.c:643 #10 0x000000080097b087 in GNUNET_SCHEDULER_run (task=0x8009814f0 <service_task>, task_cls=0x7fffffffe740) at scheduler.c:789 #11 0x00000008009823d0 in GNUNET_SERVICE_run (argc=3, argv=0x7fffffffe8c8, serviceName=0x40d8b8 "transport", opt=GNUNET_SERVICE_OPTION_NONE, task=0x40c010 <run>, task_cls=0x0) at service.c:1616 #12 0x000000000040c3c5 in main (argc=3, argv=0x7fffffffe8c8) at gnunet-service-transport.c:5867 | ||||
| Additional Information | core dump attached | ||||
| Tags | No tags attached. | ||||
|
|
(gdb) print *ret->cfg $10 = {sections = 0x801613c20, dirty = 0} (gdb) down #4 0x000000080095b3c2 in GNUNET_CLIENT_connect (service_name=0x40d8b8 "transport", cfg=0x80084c5eb) at client.c:374 (gdb) print *cfg $11 = {sections = 0x6974736974617473, dirty = 29539} (gdb) up #5 0x000000080084a75d in try_connect (ret=0x8016140f0) at statistics_api.c:321 (gdb) print ret->Cfg There is no member named Cfg. (gdb) print ret->cfg $12 = (const struct GNUNET_CONFIGURATION_Handle *) 0x80160d040 (gdb) down #4 0x000000080095b3c2 in GNUNET_CLIENT_connect (service_name=0x40d8b8 "transport", cfg=0x80084c5eb) at client.c:374 (gdb) print cfg $13 = (const struct GNUNET_CONFIGURATION_Handle *) 0x80084c5eb |
|
|
cfg->sections gets overwritten |
|
|
Problem solved... linked against wrong old statistics lib. Different function signature caused memory corruption |
|
|
Problem solved... linked against wrong old statistics lib. Different function signature caused memory corruption |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-03-22 09:52 | Matthias Wachs | New Issue | |
| 2011-03-22 09:52 | Matthias Wachs | Status | new => assigned |
| 2011-03-22 09:52 | Matthias Wachs | Assigned To | => Matthias Wachs |
| 2011-03-22 10:08 | Christian Grothoff | Note Added: 0004292 | |
| 2011-04-28 15:22 | Matthias Wachs | Note Added: 0004316 | |
| 2011-04-28 18:13 | Matthias Wachs | Note Added: 0004317 | |
| 2011-04-28 18:14 | Matthias Wachs | Note Added: 0004318 | |
| 2011-04-28 18:14 | Matthias Wachs | Status | assigned => resolved |
| 2011-04-28 18:14 | Matthias Wachs | Resolution | open => fixed |
| 2011-04-28 19:36 | Christian Grothoff | Status | resolved => closed |