Concurrency output issue

Dmitry V. Levin ldv at altlinux.org
Mon Mar 26 23:44:53 UTC 2012


Hi,

On Mon, Mar 26, 2012 at 05:24:07PM -0400, Bao Hong Tan wrote:
> Hi all,
> 
> I looked at strace's output and saw the following:
> 
> 01:20:00.727079 recv(-1345034744, 01:20:00.727768 write(24, "338", 
> 301:20:00.728785 SYS_224(0x3adfa8, 0x40025730, 0xa, 0x45006f40) = 0xccd000
> 01:20:00.729827 recv(-1345034744, 0x81, 1, MSG_OOB) = 1
> "", 2, 0) = 0

This output is odd in many aspects, I haven't seen such things for ages.

> The traced program have multiple threads. Looks like strace is not able 
> to handle concurrent output to the log file.
> 
> For example, the first line is interrupted by another.
> 
> I am using version 4.5.12 (in Android) by the way, has this issue been 
> fixed?

Well, 4.5.12 was released almost 7 years ago, the latest released version
at this moment is 4.6, it definitely works better with threads.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20120327/225c98b1/attachment.bin>


More information about the Strace-devel mailing list