[asterisk-bugs] [JIRA] (ASTERISK-27126) "pjsip show aors" returns Memory Allocation Failure errors when using MariaDB ODBC connector

HZMI8gkCvPpom0tM (JIRA) noreply at issues.asterisk.org
Fri Jul 21 05:56:58 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=237762#comment-237762 ] 

HZMI8gkCvPpom0tM edited comment on ASTERISK-27126 at 7/21/17 5:55 AM:
----------------------------------------------------------------------

1) Lastest from pjsip project i guess 2.6 
2) lastest from mariadb project mysql-connector-odbc-5.3.8-linux-ubuntu16.10-x86-64bit.tar.gz
3) 2.3.4-1 lastest from ubuntu 17.04

[Jul 21 12:51:52] DEBUG[5556]: res_odbc.c:869 _ast_odbc_request_obj2: Reusing ODBC handle 0x5587be36f548 from class 'asterisk'
[Jul 21 12:51:52] DEBUG[5556]: res_config_odbc.c:116 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_auths WHERE id LIKE ? ORDER BY id
[Jul 21 12:51:52] DEBUG[5556]: res_config_odbc.c:132 custom_prepare: Parameter 1 ('id LIKE') = '%'
[Jul 21 12:51:52] ERROR[5556]: /usr/src/my/asterisk-14.4.0/include/asterisk/utils.h:625 _ast_realloc: Memory Allocation Failure in function ast_str_make_space at line 822 of /usr/src/my/asterisk-14.4.0/include/asterisk/strings.h
[Jul 21 12:51:52] ERROR[5556]: /usr/src/my/asterisk-14.4.0/include/asterisk/utils.h:625 _ast_realloc: Memory Allocation Failure in function ast_str_make_space at line 822 of /usr/src/my/asterisk-14.4.0/include/asterisk/strings.h
[Jul 21 12:51:52] ERROR[5556]: /usr/src/my/asterisk-14.4.0/include/asterisk/utils.h:625 _ast_realloc: Memory Allocation Failure in function ast_str_make_space at line 822 of /usr/src/my/asterisk-14.4.0/include/asterisk/strings.h
[Jul 21 12:51:52] ERROR[5556]: /usr/src/my/asterisk-14.4.0/include/asterisk/utils.h:625 _ast_realloc: Memory Allocation Failure in function ast_str_make_space at line 822 of /usr/src/my/asterisk-14.4.0/include/asterisk/strings.h
...... SKIPPED SAME......
[Jul 21 12:51:52] DEBUG[5556]: res_odbc.c:718 ast_odbc_release_obj: Releasing ODBC handle 0x5587be36f548 into pool
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
[Jul 21 12:51:52] DEBUG[5556]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0)
... SKIPPED SAME ...



was (Author: y2fbo4ievym5ve9u):
1) Lastest from pjsip project i guess 2.6 
2) lastest from mariadb project mysql-connector-odbc-5.3.8-linux-ubuntu16.10-x86-64bit.tar.gz
3) 2.3.4-1 lastest from ubuntu 17.04

> "pjsip show aors" returns Memory Allocation Failure errors when using MariaDB ODBC connector
> --------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-27126
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27126
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 14.5.0
>            Reporter: HZMI8gkCvPpom0tM
>            Assignee: Unassigned
>            Severity: Trivial
>
> fresh installed asterisk odbc realitime and pjsip. Amount of memory more than enough.
> extconfig.conf
> {noformat}
> [settings]
> ps_endpoints => odbc,asterisk
> ps_auths => odbc,asterisk
> ps_aors => odbc,asterisk
> ps_domain_aliases => odbc,asterisk
> ps_endpoint_id_ips => odbc,asterisk
> ps_contacts => odbc,asterisk
> ps_registrations => odbc,asterisk
> ps_globals => odbc,asterisk
> ps_systems => odbc,asterisk
> {noformat}
> sourcery.conf
> {noformat}
> [res_pjsip] ; Realtime PJSIP configuration wizard
> endpoint=realtime,ps_endpoints
> auth=realtime,ps_auths
> aor=realtime,ps_aors
> domain_alias=realtime,ps_domain_aliases
> contact=realtime,ps_contacts
> global=realtime,ps_globals
> [res_pjsip_endpoint_identifier_ip]
> identify=realtime,ps_endpoint_id_ips
> {noformat}
> pjsip.conf
> {noformat}
> [transport-udp]
> type=transport
> protocol=udp
> bind=0.0.0.0
> [transport-tcp]
> type=transport
> protocol=tcp
> bind=0.0.0.0
> {noformat}
> {noformat}
> gsmpmnl*CLI> pjsip show aors
>       Aor:  <Aor..............................................>  <MaxContact>
>     Contact:  <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
> ==========================================================================================
>       Aor:  9991111                                             10
> Objects found: 1
> [Jul 11 15:33:04] ERROR[453]: /usr/src/my/asterisk-14.5.0/include/asterisk/utils.h:625 _ast_realloc: Memory Allocation Failure in function ast_str_make_space at line 823 of /usr/src/my/asterisk-14.5.0/include/asterisk/strings.h
> [Jul 11 15:33:04] ERROR[453]: /usr/src/my/asterisk-14.5.0/include/asterisk/utils.h:625 _ast_realloc: Memory Allocation Failure in function ast_str_make_space at line 823 of /usr/src/my/asterisk-14.5.0/include/asterisk/strings.h
> *error repeats numerous times*
> {noformat}



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



More information about the asterisk-bugs mailing list