[BUG] Crash calling pjsua_call_answer2() on UAC call.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
A crash occurs when pjsua_call_answer2() is called on a call_id that is a UAC.

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
  * frame #0: 0x0000000100a50801 voicebridge`pj_list_insert_after(pos=0x0000000000000000, node=0x0000611000002a28) at list_i.h:32
    frame #1: 0x0000000100a5094e voicebridge`pj_list_insert_before(pos=0x0000000100ca4bf0, node=0x0000611000002a28) at list_i.h:40
    frame #2: 0x000000010050452d voicebridge`pj_list_push_back(list=0x0000000100ca4bf0, node=0x0000611000002a28) at list.h:128
    frame #3: 0x000000010050f3a3 voicebridge`pjsua_call_answer2(call_id=0, opt=0x0000000000000000, code=0, reason=0x00007ffeefbf3b70, msg_data=0x0000000000000000) at pjsua_call.c:2282
    frame #4: 0x000000010050df44 voicebridge`pjsua_call_answer(call_id=0, code=0, reason=0x00007ffeefbf3b70, msg_data=0x0000000000000000) at pjsua_call.c:2174


frame #3: 0x000000010050f3a3 voicebridge`pjsua_call_answer2(call_id=0, opt=0x0000000000000000, code=0, reason=0x00007ffeefbf3b70, msg_data=0x0000000000000000) at pjsua_call.c:2282
   2279             answer->msg_data = pjsua_msg_data_clone(call->inv->pool_prov,
   2280                                                     msg_data);
   2281         }
-> 2282         pj_list_push_back(&call->async_call.call_var.inc_call.answers,
   2283                           answer);
   2284
   2285         PJSUA_UNLOCK();
(lldb) p call->async_call.call_var.inc_call.answers
(call_answer) $1 = {
  prev = 0x0000000000000000
  next = 0x0000000000000000
  msg_data = 0x0000000000000000
  reason = 0x0000000000000000
  code = 0
  opt = 0x0000000000000000
}

An error should be returned instead.

Regards,
Kal
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux