[asterisk-bugs] [JIRA] (ASTERISK-26505) Using res_odbc module for querying a longBLOB column determine a big memory leak

Leandro Dardini (JIRA) noreply at issues.asterisk.org
Wed Oct 26 11:26:01 CDT 2016


Leandro Dardini created ASTERISK-26505:
------------------------------------------

             Summary: Using res_odbc module for querying a longBLOB column determine a big memory leak
                 Key: ASTERISK-26505
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26505
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_odbc
    Affects Versions: 13.11.2, 13.4.0, 13.2.0
         Environment: CentOS 6.x 64 bit, Mysql 5.1
            Reporter: Leandro Dardini
            Severity: Minor


Please note I have listed the versions where I tried this. Not listed version were not tested.

If I have a table with a longBLOB field (but probably it happens for any type of BLOB column) and I define in func_odbc.conf an entry like

[READ_EXTENSIONS]
dsn=asterisk1,asterisk2
synopsis=Retrieve the extension data
readsql=SELECT * FROM ex_extensions where id='${ARG1}'

Using a function like

Set(HASH(phone)=${ODBC_READ_EXTENSIONS(56)});

The same command, using any other type of column, gives no problems at all.

Determines an increase of virtual memory usage in Asterisk... I have seen it getting up to 30 GB on a medium sized server.

When this abnormal memory usage happens, asterisk continue to work, but it cannot spawn external processes, like from res_agi.c:

[2016-10-26 10:04:18] WARNING[26880][C-000002bb] res_agi.c: Failed to fork(): Cannot allocate memory





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



More information about the asterisk-bugs mailing list