[OpenSIPS-Devel] [OpenSIPS/opensips] c98f9b: pkg memory: Dump memory status on SIGSEGV

Liviu Chircu noreply at github.com
Mon Aug 12 07:56:41 EDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c98f9b5965bb263adaff271106a2051a010b4fca
      https://github.com/OpenSIPS/opensips/commit/c98f9b5965bb263adaff271106a2051a010b4fca
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-08-12 (Mon, 12 Aug 2019)

  Changed paths:
    M main.c
    M mem/f_malloc_dyn.h
    M mem/hp_malloc_dyn.h
    M mem/q_malloc_dyn.h

  Log Message:
  -----------
  pkg memory: Dump memory status on SIGSEGV

Also improve robustness of the memory block iteration: minimize the
chance of a crash while walking through the fragments in order to
produce the status.  For example, if f->size holds a large value due to
a programming error, the FRAG_NEXT(f) macro would overflow the f holder.





More information about the Devel mailing list