[OpenSIPS-Devel] [OpenSIPS/opensips] 8890a1: Fixed crash in starting with HP_MALLOC

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Oct 26 07:31:01 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8890a1e627c1613d339abd6cdaa9e699aa83e4cd
      https://github.com/OpenSIPS/opensips/commit/8890a1e627c1613d339abd6cdaa9e699aa83e4cd
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-10-26 (Fri, 26 Oct 2018)

  Changed paths:
    M main.c

  Log Message:
  -----------
  Fixed crash in starting with HP_MALLOC

The HP allocator seems to init its stats after the statistics collector starts, so any malloc operatation translates into a crash (before init'ing the stats colector).
Move the first shm malloc after the the collector init.

Reported by Nick Altmann

(cherry picked from commit 5fa431eb2b95fa7e275c9323a0c139bd3d929050)



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Devel mailing list