Overview
| Artifact ID: | 058252b27c91cabf3394b5cb278040c410c6447a |
|---|---|
| Ticket: | 32ae34e63a3db0a542a6795594914baa1f231007
[chan copy] reflected channel segfault |
| User & Date: | dgp on 2015-08-12 15:16:12 |
Changes
- icomment:
It appears the problem may be even worse. Without any encounter with CopyData() at all, if a [driver watch] directly calls a [chan postevent] we can have recursive (effectively tail) calls to DoReadChars(). It appears that this means the inner read starts after, but ends before the outer read, which appears to mean that the order of bytes read from a channel can get shuffled. That is, the later bytes in the channel come back from a read operation and can get processed prior to the completion of the outer read which brings back earlier bytes in the channel.
- login: "dgp"
- mimetype: "text/plain"