[asterisk-bugs] [JIRA] (ASTERISK-26667) Segfault in res_sorcery_memory_cache

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Dec 22 08:52:09 CST 2016


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

Rusty Newton updated ASTERISK-26667:
------------------------------------

    Description: 
Asterisk crashes 2-3 times a day with this outputted to /var/log/syslog: 
{noformat}
Dec 20 12:45:00 voip kernel: [618425.917499] asterisk[14173]: segfault at 0 ip 00000000005e0755 sp 00007fc6aafb6cc0 error 4 in asterisk[400000+2ca000]
{noformat}
No calls were happening. 4 devices were registered to Asterisk.


This is the last output to the Asterisk debug log:
{noformat}
[2016-12-20 12:45:00] DEBUG[14541] res_sorcery_memory_cache.c: Cached sorcery object type 'endpoint' ID '1234' is stale. Refreshing
[2016-12-20 12:45:00] DEBUG[14173] res_config_odbc.c: Skip: 0; SQL: SELECT * FROM ps_endpoints WHERE id = ?
[2016-12-20 12:45:00] DEBUG[14173] res_config_odbc.c: Parameter 1 ('id') = '1234'
[2016-12-20 12:45:00] DEBUG[14173] res_sorcery_realtime.c: Filtering out realtime field 'disallow' from retrieval
[2016-12-20 12:45:00] DEBUG[14173] res_sorcery_memory_cache.c: Refreshing stale cache object type 'endpoint' ID '1234'
{noformat}
I changed the ID of the endpoint above for security.

  was:
Asterisk crashes 2-3 times a day with this outputted to /var/log/syslog: 

Dec 20 12:45:00 voip kernel: [618425.917499] asterisk[14173]: segfault at 0 ip 00000000005e0755 sp 00007fc6aafb6cc0 error 4 in asterisk[400000+2ca000]

No calls were happening. 4 devices were registered to Asterisk.


This is the last output to the Asterisk debug log:

[2016-12-20 12:45:00] DEBUG[14541] res_sorcery_memory_cache.c: Cached sorcery object type 'endpoint' ID '1234' is stale. Refreshing
[2016-12-20 12:45:00] DEBUG[14173] res_config_odbc.c: Skip: 0; SQL: SELECT * FROM ps_endpoints WHERE id = ?
[2016-12-20 12:45:00] DEBUG[14173] res_config_odbc.c: Parameter 1 ('id') = '1234'
[2016-12-20 12:45:00] DEBUG[14173] res_sorcery_realtime.c: Filtering out realtime field 'disallow' from retrieval
[2016-12-20 12:45:00] DEBUG[14173] res_sorcery_memory_cache.c: Refreshing stale cache object type 'endpoint' ID '1234'

I changed the ID of the endpoint above for security.


> Segfault in res_sorcery_memory_cache
> ------------------------------------
>
>                 Key: ASTERISK-26667
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26667
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_sorcery_memory_cache
>    Affects Versions: 13.12.2
>         Environment: Ubuntu 16.04.1 Kernel 4.4.0-53
>            Reporter: Jesse Ross
>            Severity: Critical
>         Attachments: backtrace.txt, gdb.txt, sorcery.conf
>
>
> Asterisk crashes 2-3 times a day with this outputted to /var/log/syslog: 
> {noformat}
> Dec 20 12:45:00 voip kernel: [618425.917499] asterisk[14173]: segfault at 0 ip 00000000005e0755 sp 00007fc6aafb6cc0 error 4 in asterisk[400000+2ca000]
> {noformat}
> No calls were happening. 4 devices were registered to Asterisk.
> This is the last output to the Asterisk debug log:
> {noformat}
> [2016-12-20 12:45:00] DEBUG[14541] res_sorcery_memory_cache.c: Cached sorcery object type 'endpoint' ID '1234' is stale. Refreshing
> [2016-12-20 12:45:00] DEBUG[14173] res_config_odbc.c: Skip: 0; SQL: SELECT * FROM ps_endpoints WHERE id = ?
> [2016-12-20 12:45:00] DEBUG[14173] res_config_odbc.c: Parameter 1 ('id') = '1234'
> [2016-12-20 12:45:00] DEBUG[14173] res_sorcery_realtime.c: Filtering out realtime field 'disallow' from retrieval
> [2016-12-20 12:45:00] DEBUG[14173] res_sorcery_memory_cache.c: Refreshing stale cache object type 'endpoint' ID '1234'
> {noformat}
> I changed the ID of the endpoint above for security.



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



More information about the asterisk-bugs mailing list