[asterisk-bugs] [JIRA] (ASTERISK-26516) pjsip: Memory corruption with possible memory leak.
Ian Gilmour (JIRA)
noreply at issues.asterisk.org
Thu Nov 3 03:16:12 CDT 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-03.tgz
24+ hours later and the pjproject cache pool is still growing:
{noformat}
6640576 bytes in 673 allocations in file ../src/pj/pool_policy_malloc.c
13189225 bytes in all allocations and deferred free allocations
13189497 bytes in all allocations and deferred free allocations
6813632 bytes in 839 allocations in file ../src/pj/pool_policy_malloc.c
13656403 bytes in all allocations and deferred free allocations
13656395 bytes in all allocations and deferred free allocations
13755992 bytes in all allocations and deferred free allocations
6926272 bytes in 928 allocations in file ../src/pj/pool_policy_malloc.c
13755980 bytes in all allocations and deferred free allocations
7065248 bytes in 1015 allocations in file ../src/pj/pool_policy_malloc.c
13927279 bytes in all allocations and deferred free allocations
13927293 bytes in all allocations and deferred free allocations
7298496 bytes in 1227 allocations in file ../src/pj/pool_policy_malloc.c
14128893 bytes in all allocations and deferred free allocations
14168989 bytes in all allocations and deferred free allocations
7393728 bytes in 1320 allocations in file ../src/pj/pool_policy_malloc.c
14251689 bytes in all allocations and deferred free allocations
14250852 bytes in all allocations and deferred free allocations
7788992 bytes in 1641 allocations in file ../src/pj/pool_policy_malloc.c
14654274 bytes in all allocations and deferred free allocations
14654285 bytes in all allocations and deferred free allocations
8027072 bytes in 1806 allocations in file ../src/pj/pool_policy_malloc.c
14876070 bytes in all allocations and deferred free allocations
14876084 bytes in all allocations and deferred free allocations
8444352 bytes in 2084 allocations in file ../src/pj/pool_policy_malloc.c
15328742 bytes in all allocations and deferred free allocations
15331609 bytes in all allocations and deferred free allocations
cachpool Total 7300064 of 8496320 (85 %) used!
8728000 bytes in 2271 allocations in file ../src/pj/pool_policy_malloc.c
15614381 bytes in all allocations and deferred free allocations
15614392 bytes in all allocations and deferred free allocations
cachpool Total 7405112 of 8688320 (85 %) used!
cachpool Total 7405496 of 8690368 (85 %) used!
8789440 bytes in 2331 allocations in file ../src/pj/pool_policy_malloc.c
15668738 bytes in all allocations and deferred free allocations
15668722 bytes in all allocations and deferred free allocations
cachpool Total 7416632 of 8749760 (84 %) used!
8852928 bytes in 2393 allocations in file ../src/pj/pool_policy_malloc.c
15732482 bytes in all allocations and deferred free allocations
15732493 bytes in all allocations and deferred free allocations
cachpool Total 7428536 of 8813248 (84 %) used!
9724864 bytes in 3017 allocations in file ../src/pj/pool_policy_malloc.c
16593522 bytes in all allocations and deferred free allocations
16593514 bytes in all allocations and deferred free allocations
cachpool Total 7821800 of 9681600 (80 %) used!
10305984 bytes in 3427 allocations in file ../src/pj/pool_policy_malloc.c
17144668 bytes in all allocations and deferred free allocations
17179679 bytes in all allocations and deferred free allocations
cachpool Total 8092448 of 10264768 (78 %) used!
13430720 bytes in 5626 allocations in file ../src/pj/pool_policy_malloc.c
20263597 bytes in all allocations and deferred free allocations
20284056 bytes in all allocations and deferred free allocations
cachpool Total 9554320 of 13394112 (71 %) used!
{noformat}
top confirms it:
{noformat}
top - 07:13:07 up 20 days, 23:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 53m 13m S 18.4 0.7 0:03.80 asterisk
top - 08:13:02 up 21 days, 12 min, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 58m 13m S 0.4 0.7 0:20.59 asterisk
top - 09:13:02 up 21 days, 1:12, 0 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 59m 13m S 0.4 0.8 0:38.15 asterisk
top - 10:13:05 up 21 days, 2:12, 0 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 61m 13m S 0.4 0.8 0:54.69 asterisk
top - 11:13:00 up 21 days, 3:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 62m 13m S 0.4 0.8 1:12.00 asterisk
top - 11:13:09 up 21 days, 3:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 62m 13m S 0.3 0.8 1:12.03 asterisk
top - 12:13:03 up 21 days, 4:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 63m 13m S 0.2 0.8 1:28.45 asterisk
top - 13:13:06 up 21 days, 5:12, 0 users, load average: 0.00, 0.01, 0.00
21121 iang 20 0 2777m 63m 13m S 0.4 0.8 1:46.21 asterisk
top - 14:13:02 up 21 days, 6:12, 6 users, load average: 0.00, 0.09, 0.13
21121 iang 20 0 2777m 64m 13m S 0.2 0.8 2:03.18 asterisk
top - 15:13:06 up 21 days, 7:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 65m 13m S 0.6 0.8 2:19.99 asterisk
top - 16:13:07 up 21 days, 8:12, 6 users, load average: 0.05, 0.01, 0.00
21121 iang 20 0 2777m 65m 13m S 0.6 0.8 2:38.45 asterisk
top - 17:13:02 up 21 days, 9:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 65m 13m S 0.6 0.8 2:56.43 asterisk
top - 18:13:05 up 21 days, 10:12, 0 users, load average: 0.06, 0.02, 0.00
21121 iang 20 0 2777m 65m 13m S 0.2 0.8 3:13.08 asterisk
top - 19:13:03 up 21 days, 11:12, 6 users, load average: 0.01, 0.04, 0.00
21121 iang 20 0 2777m 67m 13m S 0.4 0.9 3:29.53 asterisk
top - 20:13:06 up 21 days, 12:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 68m 13m S 0.4 0.9 3:46.76 asterisk
top - 21:13:01 up 21 days, 13:12, 6 users, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 70m 13m S 0.6 0.9 4:04.42 asterisk
top - 22:13:04 up 21 days, 14:12, 1 user, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 70m 13m S 0.6 0.9 4:22.45 asterisk
top - 23:13:08 up 21 days, 15:12, 1 user, load average: 0.00, 0.01, 0.00
21121 iang 20 0 2777m 73m 13m S 0.4 0.9 4:39.52 asterisk
top - 00:13:02 up 21 days, 16:12, 1 user, load average: 0.00, 0.03, 0.01
21121 iang 20 0 2777m 75m 13m S 0.6 1.0 4:56.93 asterisk
top - 01:13:05 up 21 days, 17:12, 1 user, load average: 0.02, 0.06, 0.03
21121 iang 20 0 2777m 75m 13m S 0.4 1.0 5:14.31 asterisk
top - 02:13:08 up 21 days, 18:12, 1 user, load average: 0.04, 0.11, 0.05
21121 iang 20 0 2777m 78m 13m S 0.6 1.0 5:30.85 asterisk
top - 03:13:03 up 21 days, 19:12, 1 user, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 81m 13m S 0.7 1.0 5:47.84 asterisk
top - 04:13:06 up 21 days, 20:12, 1 user, load average: 0.01, 0.01, 0.00
21121 iang 20 0 2777m 81m 13m S 0.7 1.0 6:05.10 asterisk
top - 05:13:01 up 21 days, 21:12, 1 user, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 83m 13m S 0.3 1.1 6:22.42 asterisk
top - 06:13:05 up 21 days, 22:12, 1 user, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 83m 13m S 0.4 1.1 6:39.28 asterisk
top - 07:13:08 up 21 days, 23:12, 1 user, load average: 0.00, 0.00, 0.00
21121 iang 20 0 2777m 85m 13m S 0.6 1.1 6:57.48 asterisk
{noformat}
Full CLI log in [^screenlog-2016-11-03.tgz] (and mmlog has no entries other than the initial timestamp).
> 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, screenlog-2016-11-01.tgz, screenlog-2016-11-02.tgz, screenlog-2016-11-03.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