[asterisk-bugs] [JIRA] (ASTERISK-26699) res_pjsip: Assertion when sending OPTIONS request to endpoint

Ross Beer (JIRA) noreply at issues.asterisk.org
Fri Jan 13 10:39:10 CST 2017


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

Ross Beer commented on ASTERISK-26699:
--------------------------------------


This issue is happening across multiple asterisk instances.

Back trace shows:

{noformat}
Program terminated with signal SIGSEGV, Segmentation fault.
#0  pj_atomic_dec_and_get (atomic_var=0x30) at ../src/pj/os_core_unix.c:962
962	    pj_mutex_lock( atomic_var->mutex );
[Current thread is 1 (Thread 0x7f0a797e0700 (LWP 182933))]
#0  0x00007f0b1cab0279 in pj_atomic_dec_and_get (atomic_var=0x30) at ../src/pj/os_core_unix.c:962
        new_value = <optimized out>
#1  0x00007f0b1cab583d in pj_grp_lock_dec_ref (glock=0x7f0ac4753d00) at ../src/pj/lock.c:554
        cnt = <optimized out>
#2  0x00007f0b1cab583d in pj_grp_lock_dec_ref (glock=0x7f0ac4753d00) at ../src/pj/lock.c:631
#3  0x00007f0b1cabf790 in cancel_timer (ht=0x155e500, entry=0x7f0ac4000078, flags=flags at entry=6, id_val=id_val at entry=0) at ../src/pj/timer.c:588
        grp_lock = <optimized out>
#4  0x00007f0b1cabfa3c in pj_timer_heap_cancel_if_active (id_val=id_val at entry=0, flags=6, entry=entry at entry=0x7f0ac4000078, ht=<optimized out>) at ../src/pj/timer.c:606
#5  0x00007f0b1cabfa3c in pj_timer_heap_cancel_if_active (ht=<optimized out>, entry=entry at entry=0x7f0ac4000078, id_val=id_val at entry=0) at ../src/pj/timer.c:605
#6  0x00007f0af4ea7222 in endpt_send_request (endpoint=endpoint at entry=0x23fddc8, tdata=tdata at entry=0x7f0aac3d78e8, timeout=timeout at entry=3000, token=token at entry=0x7f0ac430c978, cb=0x7f0af4ea7290 <send_request_cb>) at res_pjsip.c:3623
        timers_cancelled = <optimized out>
        errmsg = "Operation not permitted\000hK2\002\000\000\000\000\210\206=\254\n\177\000\000 at x=\254\n\177\000\000\004\000\000\000\005\000\000\000PK2\002\000\000\000\000\360\372}y\n\177\000\000r\352E\000\000\000\000"
        req_wrapper = 0x7f0ac407fc00
        ret_val = 120001
        endpt = 0x155e218
        selector = {type = PJSIP_TPSELECTOR_TRANSPORT, u = {transport = 0x2373548, listener = 0x2373548, ptr = 0x2373548}}
#7  0x00007f0af4ea98c8 in ast_sip_send_out_of_dialog_request (tdata=0x7f0aac3d78e8, endpoint=endpoint at entry=0x23fddc8, timeout=3000, token=token at entry=0x2324b68, callback=callback at entry=0x7f0af4eacec0 <qualify_contact_cb>) at res_pjsip.c:3743
        supplement = 0x0
        contact = 0x2324b68
        __PRETTY_FUNCTION__ = "ast_sip_send_out_of_dialog_request"
#8  0x00007f0af4eacbea in qualify_contact (endpoint=endpoint at entry=0x0, contact=contact at entry=0x2324b68) at res_pjsip/pjsip_options.c:444
        tdata = 0x7f0aac3d78e8
        endpoint_local = 0x23fddc8
        __PRETTY_FUNCTION__ = "qualify_contact"
#9  0x00007f0af4eace63 in qualify_contact_task (obj=0x2324b68) at res_pjsip/pjsip_options.c:519
        contact = 0x2324b68
        res = <optimized out>
#10 0x00000000005ee6fc in ast_taskprocessor_execute (tps=0x155cfb0) at taskprocessor.c:967
        local = {local_data = 0x7f0a797e0700, data = 0x5f5e7f <ast_threadstorage_set_ptr+60>}
        t = 0x7f0aa80126b0
        size = 22400944
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#11 0x00000000005f82b1 in execute_tasks (data=0x155cfb0) at threadpool.c:1322
        tps = 0x155cfb0
#12 0x00000000005ee6fc in ast_taskprocessor_execute (tps=0x155c3c0) at taskprocessor.c:967
        local = {local_data = 0x7f0a797dfc80, data = 0x155aa90}
        t = 0x7f0aa8005f80
        size = 22391496
        __PRETTY_FUNCTION__ = "ast_taskprocessor_execute"
#13 0x00000000005f6566 in threadpool_execute (pool=0x155aae0) at threadpool.c:351
        __PRETTY_FUNCTION__ = "threadpool_execute"
#14 0x00000000005f7c1d in worker_active (worker=0x7f0ae40061d0) at threadpool.c:1105
        alive = 0
#15 0x00000000005f79d5 in worker_start (arg=0x7f0ae40061d0) at threadpool.c:1024
        worker = 0x7f0ae40061d0
        saved_state = (DEAD | unknown: 32520)
        __PRETTY_FUNCTION__ = "worker_start"
#16 0x0000000000603e98 in dummy_start (data=0x7f0ae40064d0) at utils.c:1235
        __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, -2806034405047432239, 139686362798719, 139682964702976, 507904, 507904, -2806034405072598063, 2817569640175733713}, __mask_was_saved = 0}}, __pad = {0x7f0a797dfdf0, 0x0, 0x1, 0x7f0bf3c326e8 <__pthread_keys+1032>}}
        __cancel_routine = 0x4527db <ast_unregister_thread>
        __cancel_arg = 0x7f0a797e0700
        __not_first_call = 0
        ret = 0x7f0bf30118d8
        a = {start_routine = 0x5f794e <worker_start>, data = 0x7f0ae40061d0, name = 0x7f0ae40020e0 "worker_start         started at [ 1079] threadpool.c worker_thread_start()"}
#17 0x00007f0bf3a2061a in start_thread () at /lib64/libpthread.so.0
#18 0x00007f0bf2d5c5fd in clone () at /lib64/libc.so.6
{noformat}

> res_pjsip: Assertion when sending OPTIONS request  to endpoint
> --------------------------------------------------------------
>
>                 Key: ASTERISK-26699
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26699
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 13.13.1
>         Environment: Fedora 23
>            Reporter: Ross Beer
>         Attachments: hpbx06_backtrace_options_clean.txt
>
>
> Every so often an asserting happens when sending OPTIONS pings to endpoints.
> The follwoing snippit shows the asterisk log output:
> {noformat}
> [2017-01-06 08:44:47] ERROR[12271]: res_pjsip.c:3613 endpt_send_request: Error                                                                                                                                                                120001 'Operation not permitted' sending OPTIONS request to endpoint offnetVo                                                                                                                                                               xboneIA02
> [2017-01-06 08:44:47] ERROR[12271]: astobj2.c:131 INTERNAL_OBJ: FRACK!, Failed                                                                                                                                                                assertion bad magic number 0x0 for object 0x7f2f48fbe190 (0)
> Got 19 backtrace records
> #0: [0x606b37] main/utils.c:2471 __ast_assert_failed() (0x606aaa+8D)
> #1: [0x45dea2] main/astobj2.c:132 INTERNAL_OBJ()
> #2: [0x45defd] main/astobj2.c:152 __ao2_lock() (0x45ded2+2B)
> #3: [0x7f2f20319189] res/res_pjsip.c:3622 endpt_send_request()
> #4: [0x7f2f2031b838] res/res_pjsip.c:3742 ast_sip_send_out_of_dialog_request()                                                                                                                                                                (0x7f2f2031b6d0+168)
> #5: [0x7f2f2031eb5a] res_pjsip/pjsip_options.c:444 qualify_contact()
> {noformat}



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



More information about the asterisk-bugs mailing list