Uploaded image for project: 'Kaa'
  1. Kaa
  2. KAA-694

Segfault on Raspberry Pi 2 when receiving Server sync with notifications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.7.2
    • Fix Version/s: 0.7.3
    • Component/s: Endpoint: C
    • Labels:
      None

      Description

      Seemingly, the execution of the following log statement causes a segfault on a 32-bit Raspberry Pi 2:

      kaa_notification_manager.c:1247
                         KAA_LOG_TRACE(self->logger, KAA_ERR_NONE, "Topic Id '%lu', subscription type '%s', name '%s'"
                                     , topic->id, (topic->subscription_type == MANDATORY_SUBSCRIPTION) ? "mandatory": "optional", topic->name);
      
      2015/09/29 0:26:20 [TRACE] [kaa_notification_manager.c:1248] (0) - Topic Id '40830', subscription type '(null)', name 'mandatory'
      2015/09/29 0:26:20 [INFO] [kaa_notification_manager.c:1135] (0) - Received notifications. Notifications count is 7
      Segmentation fault
      

      When executed on a 64-bit PC, the flow continues with normal logging and no segfault:

      2015/09/29 0:29:02 [TRACE] [kaa_notification_manager.c:1248] (0) - Topic Id '40830', subscription type 'mandatory', name 'sample topic'
      2015/09/29 0:29:02 [INFO] [kaa_notification_manager.c:1135] (0) - Received notifications. Notifications count is 7
      2015/09/29 0:29:02 [TRACE] [kaa_notification_manager.c:1198] (0) - Notification's sqn '1', topic id '40830', type 'multicast', size '6'
      ...
      

        Attachments

          Activity

            People

            Assignee:
            dyosick Denis Kimcherenko
            Reporter:
            akokhanovskyi Andrew Kokhanovskyi [Administrator]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration