[asterisk-bugs] [JIRA] (ASTERISK-26516) pjsip: Memory corruption with possible memory leak.

Ian Gilmour (JIRA) noreply at issues.asterisk.org
Thu Nov 10 10:16:11 CST 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Gilmour updated ASTERISK-26516:
-----------------------------------

    Attachment: screenlog-2016-11-10.tgz

[^screenlog-2016-11-10.tgz] was generated using the current branch 13 trunk + your v2 patch.

Memory usage still looks to be creeping up...

{noformat}
grep -e "bytes in all allocations and deferred free allocations" -e "allocations in file.*pool_policy_malloc.c" -e "cachpool.*used_cnt" ~/screenlog.0
   6643136 bytes in        676 allocations in file ../src/pj/pool_policy_malloc.c
  13473977 bytes in all allocations and deferred free allocations
  13474266 bytes in all allocations and deferred free allocations
      cachpool    Capacity=52480, max_capacity=1048576, used_cnt=40
   6669248 bytes in        695 allocations in file ../src/pj/pool_policy_malloc.c
  13509783 bytes in all allocations and deferred free allocations
  13509767 bytes in all allocations and deferred free allocations
      cachpool    Capacity=63232, max_capacity=1048576, used_cnt=50
   6710208 bytes in        735 allocations in file ../src/pj/pool_policy_malloc.c
  13571270 bytes in all allocations and deferred free allocations
  13572012 bytes in all allocations and deferred free allocations
      cachpool    Capacity=63232, max_capacity=1048576, used_cnt=90
   6725568 bytes in        750 allocations in file ../src/pj/pool_policy_malloc.c
  13572492 bytes in all allocations and deferred free allocations
  13572506 bytes in all allocations and deferred free allocations
      cachpool    Capacity=63232, max_capacity=1048576, used_cnt=105
   6740928 bytes in        765 allocations in file ../src/pj/pool_policy_malloc.c
  13627074 bytes in all allocations and deferred free allocations
  13627085 bytes in all allocations and deferred free allocations
      cachpool    Capacity=63232, max_capacity=1048576, used_cnt=120
   6797248 bytes in        820 allocations in file ../src/pj/pool_policy_malloc.c
  13685842 bytes in all allocations and deferred free allocations
  13684196 bytes in all allocations and deferred free allocations
      cachpool    Capacity=63232, max_capacity=1048576, used_cnt=175
   6822848 bytes in        845 allocations in file ../src/pj/pool_policy_malloc.c
  13676524 bytes in all allocations and deferred free allocations
  13674824 bytes in all allocations and deferred free allocations
      cachpool    Capacity=63232, max_capacity=1048576, used_cnt=200
{noformat}

and...

{noformat}
rep -e ":.0:0" -A 8 ~/screenlog.2 | sed 's/[[:space:]]*$//' | grep -e "top -" -e 18993
top - 15:00:02 up 29 days,  6:59,  6 users,  load average: 0.02, 0.18, 0.22
18993 iang      20   0 2776m  53m  13m S  0.3  0.7   0:04.30 asterisk
top - 15:10:05 up 29 days,  7:09,  6 users,  load average: 0.00, 0.02, 0.10
18993 iang      20   0 2776m  57m  13m S  0.4  0.7   0:07.62 asterisk
top - 15:20:00 up 29 days,  7:19,  6 users,  load average: 0.00, 0.00, 0.04
18993 iang      20   0 2776m  57m  13m S  0.4  0.7   0:10.38 asterisk
top - 15:20:09 up 29 days,  7:19,  6 users,  load average: 0.00, 0.00, 0.03
18993 iang      20   0 2776m  57m  13m S  0.4  0.7   0:10.42 asterisk
top - 15:30:04 up 29 days,  7:29,  6 users,  load average: 0.00, 0.00, 0.00
18993 iang      20   0 2776m  58m  13m S  0.6  0.7   0:13.56 asterisk
top - 15:40:07 up 29 days,  7:39,  6 users,  load average: 0.00, 0.00, 0.00
18993 iang      20   0 2776m  58m  13m S  0.6  0.7   0:16.52 asterisk
top - 15:50:02 up 29 days,  7:49,  6 users,  load average: 0.00, 0.00, 0.00
18993 iang      20   0 2776m  58m  13m S  0.6  0.7   0:19.34 asterisk
top - 16:00:05 up 29 days,  7:59,  6 users,  load average: 0.00, 0.00, 0.00
18993 iang      20   0 2776m  59m  13m S  0.4  0.8   0:22.53 asterisk
{noformat}

> pjsip: Memory corruption with possible memory leak.
> ---------------------------------------------------
>
>                 Key: ASTERISK-26516
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26516
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip, Resources/res_pjsip
>    Affects Versions: 13.11.2
>            Reporter: Richard Mudgett
>            Assignee: Richard Mudgett
>         Attachments: 0007_jira_asterisk_26516_v13_free_mem_fix.patch, 2016-10-28.tgz, cli-and-gdb-2016-10-27.tgz, jira_asterisk_26344_v13_committed_fix.patch, jira_asterisk_26344_v13_debuging.patch, jira_asterisk_26516_v13_debugging.patch, jira_asterisk_26516_v13_debugging_v2.patch, screenlog-2016-11-01.tgz, screenlog-2016-11-02.tgz, screenlog-2016-11-03.tgz, screenlog-2016-11-10.tgz
>
>
> This is a continuation of ASTERISK-26344 and ASTERISK-26387 since the original crashes are fixed with patches added to pjproject.  For the setup description look at ASTERISK-26344.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list