On Thu, Feb 20, 2014 at 04:35:02PM +0100, Philippe Ombredanne wrote:
> This is a bug that can happen rarely, but is easy to reproduce.
> If you trace forks with -ff and -o and you have more processes created
> than the maximum number of pids, eventually the saved traces of some
> pids will be overwritten

That's how strace_fopen() works.  Do you suggest appending instead of
truncating the output file in case of -ff -o?

> The simple workaround is to increase the pid max.
> 32768 is the typical default value on most Linux installations. It can
> be increased to 4194303 which is the highest
> supported value on 32 bit systems and should be high enough for many use 
> cases.
>     $ echo 4194303 > /proc/sys/kernel/pid_max
> 
> This is still a bug though and the output should not be overwritten IMHO


-- 
ldv

Attachment: pgp23uML3TVV3.pgp
Description: PGP signature

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to