[MDEV-23534] SIGSEGV in sf_malloc_usable_size/my_free on SET GLOBAL REPLICATE_DO_TABLE Created: 2020-08-22 Updated: 2021-04-15 Resolved: 2020-09-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.1.48, 10.2.35, 10.3.26, 10.4.16 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Sujatha Sivakumar (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | affects-tests, not-10.5 | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Leads to:
Bug confirmed present in: Bug confirmed not present in: |
| Comments |
| Comment by Roel Van de Paar [ 2020-08-22 ] | ||||||||||||||||||||||||||||||||||||||
|
The stack and filtering thereof (unique bugid SIGSEGV|sf_malloc_usable_size|my_free|delete_dynamic|my_hash_free) may mask other bugs. A fix would be appreciated to avoid masking other bugs. | ||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-08-22 ] | ||||||||||||||||||||||||||||||||||||||
|
On cleanup of my runs, regrettably quite a few trials were deleted that had the same uniqueID; there may be other cases leading to the same assert, and if so that would confirm my last comment. I may do another separate run later with this particular filter removed, and a fix would be great to avoid masking. | ||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2020-08-25 ] | ||||||||||||||||||||||||||||||||||||||
|
Not sure. It does not seem to crash on ASAN at all (even new 10.4.15 build). Removing 'regression' tag for the time being. | ||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2020-08-25 ] | ||||||||||||||||||||||||||||||||||||||
|
Confirmed the issue by verifying it locally. Current issue is a duplicate of | ||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2020-08-26 ] | ||||||||||||||||||||||||||||||||||||||
|
To reproduce with MTR, execute test with valgrind: `replicate_do_table` filter
Filter: `replicate_wild_ignore_table` also reports following valgrind error. (This is fixed in 10.5 as part of
Hence backporting both the fixes to lower versions. i.e | ||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2020-08-27 ] | ||||||||||||||||||||||||||||||||||||||
|
Hello Andrei, Can you please review the fix for To verify the issue tests need to be executed with '--valgrind' option. It is a backport of following bugfixes from 10.5.
Patch: https://github.com/MariaDB/server/commit/2f859962b032cc75176e05df8d704eec413cdb17 BuildBot Testing: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.1-sujatha Thank you. | ||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2020-08-28 ] | ||||||||||||||||||||||||||||||||||||||
|
Could you please refer to the orginal patches with git commit id:s. Othewise the commit is good. | ||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2020-09-02 ] | ||||||||||||||||||||||||||||||||||||||
|
Tested backported changes on 10.1, 10.2, 10.3 and 10.4. Please null merge to 10.5. No Merge conflicts were observed. All patches were tested on buildbot and results were fine. 10.2 changes: https://github.com/MariaDB/server/commit/1585382cdbec831487b0679cc12a57bfd8d71f80 |