[asterisk-bugs] [JIRA] (ASTERISK-27224) Crash when freeing log message

Richard Kenner (JIRA) noreply at issues.asterisk.org
Tue Aug 29 20:19:08 CDT 2017


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

Richard Kenner commented on ASTERISK-27224:
-------------------------------------------

Absolutely nothing was going on at the time.  This was a new installation that hadn't processed any calls yet.  The relevant configuration issue is that I had an entry in sip.conf:

[XXXX](phones)
fullname=sipjs Test
md5secret=xx
transport=ws,wss
avpf=yes
encryption=yes
transport=udp,ws
force_avp=yes
dtlsenable = yes
dtlscafile = /etc/pki/tls/certs/server-ca.crt
dtlscertfile = /etc/pki/tls/certs/server.crt
dtlsprivatekey = /etc/pki/tls/private/server.key
dtlsverify=no
dtlssetup=actpass
;cesupport=yes
allow=h264

and  /etc/pki/tls/certs/server-ca.crt doesn't exist.

> Crash when freeing log message
> ------------------------------
>
>                 Key: ASTERISK-27224
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27224
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Logging
>    Affects Versions: 14.6.0
>         Environment: CentOS 7
>            Reporter: Richard Kenner
>            Assignee: Richard Kenner
>            Severity: Critical
>
> I have a crash at stringfields.c:94.
> See below:
> {noformat}
> #3  logger_thread (data=data at entry=0x0) at logger.c:1721
> 1721                            logmsg_free(msg);
> (gdb) print *msg
> $15 = {type = LOGMSG_NORMAL, level = 4, sublevel = -1, line = 2724, 
>   lwp = 30375, callid = 0, __field_mgr_pool = 0x7f9d540cc448, 
>   date = 0x7f9d540cc4c0 "Aug 27 19:50:44", 
>   file = 0x7f9d540cc4da "rtp_engine.c", 
>   function = 0x7f9d540cc4ea "ast_rtp_dtls_cfg_parse", 
>   message = 0x7f9d540cc46a "dtlscafile file /etc/pki/tls/certs/server-ca.crt does not exist or is not readable\n", level_name = 0x7f9d540cc4d2 "ERROR", 
>   __field_mgr = {last_alloc = 0x7f9d540cc4ea "ast_rtp_dtls_cfg_parse", 
>     embedded_pool = 0x7f9d540cc448, string_fields = {elems = 0x7f9d5408f510, 
>       max = 5, current = 5}}, list = {next = 0x0}}
> (gdb) p msg->__field_mgr.string_fields.elems[0]
> $16 = (const char **) 0x696b702f6374652f
> (gdb) p $16
> $17 = (const char **) 0x696b702f6374652f
> (gdb) p *$16
> Cannot access memory at address 0x696b702f6374652f
> {noformat}



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



More information about the asterisk-bugs mailing list