[OpenSIPS/opensips] 5fa431: 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] 5fa431: Fixed crash in starting with HP_MALLOC

Bogdan-Andrei Iancu-2
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5fa431eb2b95fa7e275c9323a0c139bd3d929050
      https://github.com/OpenSIPS/opensips/commit/5fa431eb2b95fa7e275c9323a0c139bd3d929050
  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



      **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]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel