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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

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

Bogdan-Andrei Iancu-2
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 8890a1e627c1613d339abd6cdaa9e699aa83e4cd
  Author: Bogdan-Andrei Iancu <[hidden email]>
  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.

Devel mailing list
[hidden email]