Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-22 Thread Colin Guthrie
'Twas brillig, and Colin Guthrie at 01/04/11 14:25 did gyre and gimble: I've pushed this to git master now so that more people can test. I've just be revisiting this one after your pa_poll changes. I tried running two at once and both bailed quite quickly with: Connection (23 of 1000)

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-22 Thread Daniel Mack
On Fri, Apr 22, 2011 at 10:58 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Colin Guthrie at 01/04/11 14:25 did gyre and gimble: I've pushed this to git master now so that more people can test. I've just be revisiting this one after your pa_poll changes. I tried running

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-22 Thread Colin Guthrie
'Twas brillig, and Daniel Mack at 22/04/11 10:20 did gyre and gimble: On Fri, Apr 22, 2011 at 10:58 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Colin Guthrie at 01/04/11 14:25 did gyre and gimble: I've pushed this to git master now so that more people can test. I've just

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-01 Thread Colin Guthrie
'Twas brillig, and Daniel Mack at 31/03/11 18:16 did gyre and gimble: Could you try to run multiple instances of the test binary at the same time? Yeah, I should be able to get around to this on Sunday... doubt I will manage before then sadly. Does anyone else have any idea about the startup

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-01 Thread Daniel Mack
On Fri, Apr 1, 2011 at 1:02 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Daniel Mack at 31/03/11 18:16 did gyre and gimble: Could you try to run multiple instances of the test binary at the same time? Yeah, I should be able to get around to this on Sunday... doubt I will

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-01 Thread Colin Guthrie
'Twas brillig, and Daniel Mack at 01/04/11 12:56 did gyre and gimble: On Fri, Apr 1, 2011 at 1:02 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Daniel Mack at 31/03/11 18:16 did gyre and gimble: Could you try to run multiple instances of the test binary at the same time?

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-01 Thread Daniel Mack
Hi Colin, On Fri, Apr 1, 2011 at 2:28 PM, Colin Guthrie gm...@colin.guthr.ie wrote: Oh jeez... I just realised I misread on of your mails (it was a long day, I was tired better excuse goes here). No worries :) I thought you were saying your daemon crashed on *startup* on linux... before

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-01 Thread Colin Guthrie
'Twas brillig, and Colin Guthrie at 01/04/11 13:28 did gyre and gimble: Will take a look at your test to see if I can reproduce here, but as I said before, it may not be until Sunday... hopefully some of the others can chime in. OK, I took a (very) quick look. I tweaked the Makefile.am to not

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-04-01 Thread Daniel Mack
On Fri, Apr 1, 2011 at 3:25 PM, Colin Guthrie gm...@colin.guthr.ie wrote: I've now run the test twice all the way through and not had a crash. This is either good or bad news depending on your take on it. Could be that the faster your machine, the less likely you are to trigger the bug. Maybe

[pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-03-31 Thread Daniel Mack
Hi, I'm experiencing a strange sort of a race condition or a stale semaphore when using threaded mainloops excessively. It's somehow tricky to debug as it might take hunderts of iterations to trigger. I wrote a little test that might help hunt this issue. What it does is: it continuously creates

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-03-31 Thread Daniel Mack
On Thu, Mar 31, 2011 at 3:02 PM, Daniel Mack zon...@gmail.com wrote: I'm on Mac OS X, so it could be a platform specific issue, but maybe more test coverage shows the problem on other platforms as well. I also exchanged the semaphore implementation for an alternative, but that didn't help.

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-03-31 Thread Colin Guthrie
'Twas brillig, and Daniel Mack at 31/03/11 17:08 did gyre and gimble: On Thu, Mar 31, 2011 at 3:02 PM, Daniel Mack zon...@gmail.com wrote: I'm on Mac OS X, so it could be a platform specific issue, but maybe more test coverage shows the problem on other platforms as well. I also exchanged the

Re: [pulseaudio-discuss] Semaphore lockup when using threaded mainloops excessively

2011-03-31 Thread Daniel Mack
Hi Colin, On Thu, Mar 31, 2011 at 6:20 PM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Daniel Mack at 31/03/11 17:08 did gyre and gimble: On Thu, Mar 31, 2011 at 3:02 PM, Daniel Mack zon...@gmail.com wrote: I'm on Mac OS X, so it could be a platform specific issue, but maybe