id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,backport_to_milestone,backported 2043,Fixed crash on pjnath-test due to access to an invalid callback,riza,bennylp,"When executing pjnath-test (windows), crash happen when on concur_test() : ""ice test a: immediate destroy"". Stacktrace: {{{ pjnath-test-i386-Win32-vc14-Debug.exe!on_ice_complete(pj_ice_sess *ice, int status) Line 1642 C pjnath-test-i386-Win32-vc14-Debug.exe!on_timer(pj_timer_heap_t * th, pj_timer_entry * te) Line 1175 C pjnath-test-i386-Win32-vc14-Debug.exe!pj_timer_heap_poll(pj_timer_heap_t* ht, pj_time_val * next_delay) Line 643 C pjnath-test-i386-Win32-vc14-Debug.exe!worker_thread_proc(void * p) Line 148 C pjnath-test-i386-Win32-vc14-Debug.exe!thread_main(void * param) Line 464 C }}} Calling: {{{ (*ice_st->cb.on_ice_complete)(ice_st, PJ_ICE_STRANS_OP_NEGOTIATION, status); }}} The callback and user_data was reset from this line: {{{ /* Reset callback and user data */ pj_bzero(&ice_st->cb, sizeof(ice_st->cb)); ice_st->user_data = NULL; }}} To avoid the crash due to the reset, then the callback is stored in a var and use that to call the callback.",defect,closed,normal,release-2.7,pjnath,trunk,fixed,,,,0