rainscut / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

AutoThread creation problem #369

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use libjingle r156 from svn
2. Modify the 'call' example to use AutoThread (to be able to call Start() 
rather than Run()), like this :

in call_main.cc

change :

  talk_base::Thread* main_thread = talk_base::Thread::Current();

to :

  talk_base::PhysicalSocketServer ss;
  talk_base::AutoThread main_thread(&ss);

3. Compile libjingle and run 'call' program

What is the expected output? What do you see instead?
Expected output : call client logging in to server
Current output : 'call' program stuck at Logging in to localhost as 
tewfik@localhost

Also, when running strace ./call, i get :

(...)
getuid32()                              = 0
time(NULL)                              = 1341162789
pipe([3, 4])                            = 0
pipe([5, 6])                            = 0
clock_gettime(CLOCK_MONOTONIC, {215854, 608703757}) = 0
clock_gettime(CLOCK_MONOTONIC, {215854, 609028172}) = 0
write(6, "\0", 1)                       = 1
clock_gettime(CLOCK_MONOTONIC, {215854, 609742266}) = 0
select(4, [3], [], NULL, NULL

(stuck at select())

when displaying threads using gdb attached to the call process :

What version of the product are you using? On what operating system?

libjinge r156 , linux ubuntu 10.04 32bits

Please provide any additional information below.

Tried also to create a thread and set it as current without results.
I need to .Start() a thread so I would use my own way keeping the program 
alive. Please provide the correct method on using this.

Thanks for your support.

Original issue reported on code.google.com by djemai.t...@gmail.com on 4 Jul 2012 at 10:02

GoogleCodeExporter commented 9 years ago
Clearing out this tracker. Please refile in webrtc issue tracker if this is 
still an issue.

Original comment by juberti@google.com on 1 Jun 2013 at 4:47