Crates.io | cobb |
lib.rs | cobb |
version | 0.0.1 |
source | src |
created_at | 2021-01-25 04:42:20.021249 |
updated_at | 2021-01-25 04:42:20.021249 |
description | WIP library to help track down bugs in concurrent algorithms |
homepage | https://github.com/thomcc/cobb |
repository | https://github.com/thomcc/cobb |
max_upload_size | |
id | 346283 |
size | 36,744 |
cobb
Cobb is a minor character in the classic adventure game LOOM, who also shows up in the Secret of Monkey Island wearing an "ASK ME ABOUT LOOM" button... (Ah, sorry, the wrong one...)
Cobb is Rust tool that helps you track down bugs in concurrent algorithms.
Cobb is similar to loom
, and was even inspired by it. It hopes to work well in a few cases where LOOM
is currently lacking (too many threads, too slow, unsupported operations, ...), but in general is a much more naive approach. You generally have to either run cobb in conjunction with thread sanitizer, miri's race detector, or on weakly ordered hardware to catch many kinds of issues.
That said, if your code is sufficiently buggy, it will catch issues even on x86.
Cobb is very much a work in progress, and is pretty messy, but I'm getting it up now so I can link to it elsewhere.
Cobb's attempts are more successful on weakly ordered hardware like arm. If you don't have an arm machine and can't get one, then try and make sure your code is broken on x86 as well, otherwize Cobb won't work.