Closed GoogleCodeExporter closed 9 years ago
i have located the problem.
in the call_main.cc file
talk_base::Thread* main_thread = talk_base::Thread::Current();
the value of main_thread is equal NULL
so,in the XmppSocket constructor
talk_base::Thread* pth = talk_base::Thread::Current();
talk_base::AsyncSocket* socket =
pth->socketserver()->CreateAsyncSocket(SOCK_STREAM);
cause Segmentation fault
why the talk_base::Thread::Current() return NULL ,in a linux thread .(i hava
encapsulated the call example codes into a linux thread)
i am a newbie for libjingle .
Anyone can help?
Best regards
Original comment by eefolks@gmail.com
on 26 Nov 2010 at 9:28
I have solved the problem when i hack the call_main.cc in libjingle 0.4.
but still do not how the reason.maybe i should dive into the libjingle.
Original comment by eefolks@gmail.com
on 27 Nov 2010 at 4:28
you can try adding
talk_base::ThreadManager::WrapCurrentThread();
before
talk_base::Thread* main_thread = talk_base::Thread::Current();
Original comment by ala...@gmail.com
on 16 Jul 2011 at 7:25
Using a talk_base::Thread, or calling WrapCurrentThread, will resolve this
problem.
Original comment by juberti@google.com
on 9 Sep 2011 at 7:39
Original issue reported on code.google.com by
eefolks@gmail.com
on 24 Nov 2010 at 12:48