I probably found a way to figure out the problem.If I register the new thread created by pthread_create with pjsip first and then register it as an JNI thread , everything seems goes well. ???? iPhone > ? 2014?1?21??9:36????? <huhai8274 at 163.com> ??? > > I built a so library file linked to pjsip static libraries with ndk-r8d.I call pjsua_init, pjsua_start and pjsua_call_make_call in the main thread to make a call , but call pjsua_call_hangup in another thread created by pthread_create to end it.Then the app crashed in pj_pool_alloc_from_block, the error is 'fault addr', it seems that the'pool' pointer is invalid.But if I call pjsua_call_hangup in the main thread everything goes well.It occurred on 'MI 2' cell phone everytime, but never occur on another cell phone 'Sony LT15i', both the phones are running Android 4.x OS.Anybody knows why or ever met similar problems? > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org