[MDEV-31893] Valgrind reports issues in main.join_cache_notasan Created: 2023-08-10 Updated: 2023-10-09 Resolved: 2023-08-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | 10.8.8, 10.4.31, 10.5.22, 10.6.15, 10.9.8, 10.10.6, 10.11.5 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Michael Widenius | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Valgrind exposed a problem with the join_cache for hash joins: The reason for this was that avg_record_length has a random value if one used This causes either 'random size' memory to be allocated (up to join_buffer_size) which can Fixed by setting avg_record_length in JOIN_CACHE_HASHED::init() before it's used. |
| Comments |
| Comment by Michael Widenius [ 2023-08-10 ] | |||||||||||||||||||||||
|
wrong assignment | |||||||||||||||||||||||
| Comment by Michael Widenius [ 2023-08-10 ] | |||||||||||||||||||||||
|
Pushed into 10.4 | |||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2023-10-09 ] | |||||||||||||||||||||||
|
I saw a variation of this in https://buildd.debian.org/status/fetch.php?pkg=mariadb&arch=hppa&ver=1%3A10.11.5-2&stamp=1696821455&raw=0 (hppa build of Debian 1:10.11.5-2):
|