[asterisk-bugs] [JIRA] (ASTERISK-27909) Deadlock in cdr.c: submit_scheduled_batch submit_unscheduled_batch

Denis Lebedev (JIRA) noreply at issues.asterisk.org
Fri Jun 8 07:43:54 CDT 2018


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

Denis Lebedev updated ASTERISK-27909:
-------------------------------------

    Attachment: gdb.txt

Threads states.

> Deadlock in cdr.c: submit_scheduled_batch submit_unscheduled_batch
> ------------------------------------------------------------------
>
>                 Key: ASTERISK-27909
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27909
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: CDR/General
>    Affects Versions: 15.4.0
>         Environment: CentOS Linux 7 (Core)
> Linux *** 3.10.0-862.2.3.el7.x86_64 #1 SMP Wed May 9 18:05:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
> Asterisk versions: 15.4.0
>            Reporter: Denis Lebedev
>         Attachments: gdb.txt
>
>
> We faced with deadlock in cdr.c in functions:
> {noformat}
> static int submit_scheduled_batch(const void *data)
> static void submit_unscheduled_batch(void)
> {noformat}
> Previously there was another deadlock which was fixed in ASTERISK-21162. That task added pretty the same mutex {{cdr_sched_lock}} on which asterisk is stucked in deadlock in consequent versions.
> The problem is quite rare so it's almost impossible to reproduce it under some artificial circumstances.
> Symptoms:
> * asterisk stops to flush cdr items into DB
> * begins to "eat" all memory on the host
> * but proceeds serving calls



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



More information about the asterisk-bugs mailing list