Re: hangs in flockfile() during fread() or fclose()
Re: hangs in flockfile() during fread() or fclose()
- Subject: Re: hangs in flockfile() during fread() or fclose()
- From: Paul Smith <email@hidden>
- Date: Thu, 10 Jul 2014 00:26:32 -0400
- Organization: GNU's Not UNIX!
On Wed, 2014-07-09 at 19:55 -0500, Stephen J. Butler wrote:
> Can you distill this down to self contained test case?
Difficult. It only happens once in a while on our system in our test
suite which is 14,000 individual tests of our entire application.
Basically every now and then we notice that the tests are hung and when
we go to investigate and get a core this is what we find. It happens at
different times in different areas (the fclose() hang was in a totally
different function, reading different files).
Our use of stdio functions is literally as simple as the example I
quoted in my original email: the FILE* is opened and assigned to a local
variable, used, then closed before the function returns and not passed
to any functions (except other stdio functions).
I could try to write a simple program that created lots of threads and
randomly read/wrote files: not sure how effective that would be as a
repro case.
I'm wondering if someone has pointers on what we might investigate (and
how) when we get a process in this state, that might help us narrow down
where to look or what to concentrate on.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden