[asterisk-bugs] [JIRA] (ASTERISK-24405) pjsip: assert after restart with tls

Joshua Colp (JIRA) noreply at issues.asterisk.org
Sun Jan 4 09:27:34 CST 2015


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

Joshua Colp commented on ASTERISK-24405:
----------------------------------------

Not really no. That information can't be queried, although a state callback is invoked on changes. It also only lessens the chance of it happening since the connection may terminate between the check and going further down into the stack (albeit unlikely).

> pjsip: assert after restart with tls
> ------------------------------------
>
>                 Key: ASTERISK-24405
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24405
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: SVN, 12.6.0, 13.0.0-beta2
>         Environment: trunk-r424874
>            Reporter: Scott Griepentrog
>            Assignee: Joshua Colp
>
> 1) Yealink phone registered via TLS over NAT
> 2) CLI> originate pjsip/ext# application echo
> 3) Answer call, hang up
> 4) CLI> core restart now
> After some delay, an assert will fairly consistently occur.  Presumably this is while the phone is attempting to re-establish registration.
> {noformat}
> asterisk: ../src/pj/ssl_sock_ossl.c:2420: pj_ssl_sock_send: Assertion `ssock->ssl_state==SSL_STATE_ESTABLISHED' failed.                                  
>                                                                                                                                                          
> Program received signal SIGABRT, Aborted.                                                                                                                
> [Switching to Thread 0x7fffb023f700 (LWP 705)]                                                                                                           
> 0x00007ffff55135c9 in raise () from /lib64/libc.so.6                                                                                                     
> Missing separate debuginfos, use: debuginfo-install alsa-lib-1.0.27.2-3.el7.x86_64 glibc-2.17-55.el7_0.1.x86_64 jack-audio-connection-kit-1.9.9.5-4.el7.x
> 86_64 jansson-2.4-6.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.11.3-49.el7.x86_64 libX11-1.6.0-2.1.el7.x86_64 libXau-1.0.8-2.1.el7.x86_64 li
> bcom_err-1.42.9-4.el7.x86_64 libgcc-4.8.2-16.2.el7_0.x86_64 libselinux-2.2.2-6.el7.x86_64 libsrtp-1.4.4-9.20101004cvs.el7.x86_64 libstdc++-4.8.2-16.2.el7
> _0.x86_64 libuuid-2.23.2-16.el7.x86_64 libxcb-1.9-5.el7.x86_64 libxml2-2.9.1-5.el7.x86_64 ncurses-libs-5.9-13.20130511.el7.x86_64 nss-softokn-freebl-3.15
> .4-2.el7.x86_64 openssl-libs-1.0.1e-34.el7_0.4.x86_64 opus-1.0.2-6.el7.x86_64 pcre-8.32-12.el7.x86_64 portaudio-19-16.el7.x86_64 speex-1.2-0.19.rc1.el7.x
> 86_64 sqlite-3.7.17-4.el7.x86_64 systemd-libs-208-11.el7_0.2.x86_64 xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64                             
> (gdb) bt                                                                                                                                                 
> #0  0x00007ffff55135c9 in raise () from /lib64/libc.so.6                                                                                                 
> #1  0x00007ffff5514cd8 in abort () from /lib64/libc.so.6                                                                                                 
> #2  0x00007ffff550c536 in __assert_fail_base () from /lib64/libc.so.6                                                                                    
> #3  0x00007ffff550c5e2 in __assert_fail () from /lib64/libc.so.6                                                                                         
> #4  0x00007fffb2f532fe in pj_ssl_sock_send () from /lib64/libpj.so.2                                                                                     
> #5  0x00007ffff0fc88eb in tls_send_msg () from /lib64/libpjsip.so.2                                                                                      
> #6  0x00007ffff0fc0ec5 in pjsip_transport_send () from /lib64/libpjsip.so.2                                                                              
> #7  0x00007ffff0fbe768 in pjsip_endpt_send_response () from /lib64/libpjsip.so.2                                                                         
> #8  0x00007ffff0fbe84c in pjsip_endpt_send_response2 () from /lib64/libpjsip.so.2                                                                        
> #9  0x00007fffb1d7f8cd in authenticate (rdata=<optimized out>) at res_pjsip/pjsip_distributor.c:318                                                      
> #10 0x00007ffff0fbb427 in pjsip_endpt_process_rx_data () from /lib64/libpjsip.so.2                                                                       
> #11 0x00007fffb1d7f119 in distribute (data=0x7fff8c02c368) at res_pjsip/pjsip_distributor.c:349                                                          
> #12 0x00000000005d3c95 in ast_taskprocessor_execute (tps=0x1843b88) at taskprocessor.c:769                                                               
> #13 0x00000000005dd0cd in threadpool_execute (pool=0x1849628) at threadpool.c:351                                                                        
> #14 0x00000000005de5eb in worker_active (worker=0x7fffa8000cb8) at threadpool.c:1075                                                                     
> #15 0x00000000005de3a8 in worker_start (arg=0x7fffa8000cb8) at threadpool.c:995                                                                          
> #16 0x00000000005e9db0 in dummy_start (data=0x7fffa8000dd0) at utils.c:1201                                                                              
> #17 0x00007ffff62f3df3 in start_thread () from /lib64/libpthread.so.0                                                                                    
> #18 0x00007ffff55d401d in clone () from /lib64/libc.so.6                                                                                                 
> (gdb)                                                                                                                                                    
> {noformat}



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



More information about the asterisk-bugs mailing list