-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
'internal error: entered unreachable code', /buildslave/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libstd/sync/mpsc/mod.rs:884
encountered while testing race conditions on a lock-free log store that I'm building:
https://github.com/spacejam/rsdb/tree/a709924150374c340aab0ec9bdfb79194a3191db
triggered by running cargo test log -- --nocapture while simultaneously running a shell script that shuffles thread niceness to trigger different thread interleavings for teasing out races:
#!/bin/sh
while true; do
PID=`pgrep rsdb`
TIDS=`ls /proc/$PID/task`
TID=`echo $TIDS | tr " " "\n" | shuf -n1`
NICE=$((`shuf -i 0-39 -n 1` - 20))
echo "renicing $TID to $NICE"
renice -n $NICE -p $TID
sleep 0.1
done
schneiderfelipe
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.