Bug 572594
| Summary: | Race condition in B+ tree implementation | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karel Klíč <kklic> | ||||||
| Component: | tokyocabinet | Assignee: | Deji Akingunola <dakingun> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | low | ||||||||
| Version: | 12 | CC: | dakingun, kklic, masahase, mtasaka, rvokal | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | tokyocabinet-1.4.33-2.fc12 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2010-03-23 02:08:32 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Karel Klíč
2010-03-11 16:24:50 UTC
(In reply to comment #0) > Created an attachment (id=399381) [details] > Proposed fix > ... > > The test that fails: > ./tcbmttest typical -rr 1000 casket 5 50000 5 5 > > The race condition in the B+ tree implementation. It's caused by the compiler > optimizing out some clever code in tcbdb.c: > Thanks for the report and the attached fix. However, I wonder why this is not reported (to gcc) as a gcc bug? It's a valid optimization, when the variable is not marked as volatile. The compiler assumes that no other thread changes the value, because such a situation is usually prevented by mutexes. Tokyo Cabinet does not use mutex here probably because it would cause large performance hit. (In reply to comment #0) > How reproducible: > Sometimes. See https://bugzilla.redhat.com/show_bug.cgi?id=571767 for the > testing program. You are not authorized to access bug #571767 :( 2010-01-26 Mikio Hirabayashi <hirarin>
* tcutil.c (tcmapout): a useless condition was fixed.
* tchdb.h, tcbdb.h: some members have volatile flag now.
- Release: 1.4.43
tokyocabinet-1.4.33-2.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/tokyocabinet-1.4.33-2.fc12 tokyocabinet-1.4.43-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/tokyocabinet-1.4.43-1.fc13 tokyocabinet-1.4.33-1.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/tokyocabinet-1.4.33-1.fc11 Created attachment 399418 [details]
Testing program that sometimes fails
tokyocabinet-1.4.33-1.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update tokyocabinet'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/tokyocabinet-1.4.33-1.fc11 tokyocabinet-1.4.33-2.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update tokyocabinet'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/tokyocabinet-1.4.33-2.fc12 tokyocabinet-1.4.43-1.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update tokyocabinet'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/tokyocabinet-1.4.43-1.fc13 tokyocabinet-1.4.33-1.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. tokyocabinet-1.4.43-1.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. tokyocabinet-1.4.33-2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |