Opened 6 years ago
Closed 6 years ago
#2182 closed defect (fixed)
Prevent crash in unpublishing presence when deleting account
Reported by: | ming | Owned by: | ming |
---|---|---|---|
Priority: | normal | Milestone: | release-2.9 |
Component: | pjsua-lib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
- In pjsua_acc_del(), it calls pjsua_acc_set_registration(acc_id, PJ_FALSE), which calls pjsua_pres_unpublish(&pjsua_var.acc[acc_id], 0);
- And then, it will call pjsua_pres_delete_acc() which also calls pjsua_pres_unpublish(acc, flags);
- It's possible that publish_cb() in (1) is called at the same time as (2) and the callback is in the process of destroying the publish session, hence resulting in a crash.
Change History (1)
comment:1 Changed 6 years ago by ming
- Owner set to ming
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 5949: