Overview
| Artifact ID: | 568cc1a5a58c588a7332345af7cc04eb3901b3bc |
|---|---|
| Ticket: | 1941063fffffffffffffffffffffffffffffffff
test exec-9.7 fails randomly |
| User & Date: | ferrieux on 2008-04-14 06:05:52 |
Changes
- icomment:
Logged In: YES user_id=496139 Originator: NO Hmmm, I'm wondering, doesn't all this look like an OS bug ? Couldn't we try to reproduce without Tcl ? Indeed, what we observe is similar to what happens when two processes write to the same file through two separately opened file descriptors; while the Tcl code properly uses a single fd that is dup2'ed to the 2's of all children. But since this apparently happens (only?) on bi-processor machines, it could also be interpreted as: buggy kernel code, failing to lock the SMP master lock when updating the seek pointer of the same undelying kernel-fd. The two processors, running in true parallelism, start with local copies of the seek pointer (both 0), and write the same bytes in parallel instead of sequence, hence the seek pointer ends up at the end of just one message. All this is wild speculation. I hope I'm wrong, and that SMP has been around for long enough that such trivial master lock issues are no longer thinkable. But...
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"