[MDEV-12439] MariaRocks produces numerous (spurious?) valgrind failures Created: 2017-04-04 Updated: 2019-08-20 Resolved: 2019-08-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - RocksDB |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.27, 10.3.18, 10.4.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Any test with MariaRocks produces a lot of valgrind failures.
|
| Comments |
| Comment by Sergei Petrunia [ 2018-05-18 ] | |||||
|
Running the testsuite under ASAN does not produce any errors. Running it under valrgrind still does. There are many kinds of "still reachable" errors, with still-reachable data being in
| |||||
| Comment by Sergei Petrunia [ 2018-05-21 ] | |||||
|
Running valgrind on current upstream fails like so: https://gist.github.com/spetrunia/f5b314b6c039c04ff963838f78a447aa. This is valgrind-3.11 in Ubuntu LTS. | |||||
| Comment by Sergei Petrunia [ 2018-05-21 ] | |||||
|
Upgraded to latest valgrind (3.13) and the error becomes a warning:
.. but I still get plenty of failures similar to what I observe in MariaDB: | |||||
| Comment by Sergei Petrunia [ 2018-05-22 ] | |||||
|
Discussed with the upstream. Upstream MyRocks is expected to work under valgrind. Will need to see why it fails in so many places for MariaDB. | |||||
| Comment by Sergei Petrunia [ 2018-05-25 ] | |||||
|
Ran upstream test under valgrind (3.13). Some tests hang/timeout but I dont get any valgrind errors. | |||||
| Comment by Sergei Petrunia [ 2018-05-25 ] | |||||
|
Examples: | |||||
| Comment by Sergei Petrunia [ 2018-05-28 ] | |||||
|
> Ran upstream test under valgrind (3.13). Some tests hang/timeout but I dont get any valgrind errors. However if I run valgrind tests on the revision of the upstream that we have merged from, I do see errors: So the [first part of the] solution is to wait for the merge from the upstream. | |||||
| Comment by Sergei Petrunia [ 2019-08-13 ] | |||||
|
After fixing
I got no failures. | |||||
| Comment by Sergei Petrunia [ 2019-08-13 ] | |||||
|
Enabled the valgrind back for rocksdb testsuite |