[MDEV-33157] runtime error: call to function wsrep_plugin_init(void*) through pointer to incorrect function type Created: 2024-01-03 Updated: 2024-01-03 Resolved: 2024-01-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3, 11.4 |
| Fix Version/s: | 10.4.33, 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3, 11.3.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | UBSAN | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Now that
|
| Comments |
| Comment by Marko Mäkelä [ 2024-01-03 ] | ||||||||||||||||
|
I tested clang 15.0.7 as well, and it too is complaining about function pointer type mismatch. Here are two more examples:
Because the mismatching parameters are at the end of the functions and unused, this may not result in an actual bug, depending on the ABI. For example, in the System-V AMD64 ABI, the first 6 function parameters would be passed in registers. It should not matter if the callee is ignoring some of these registers. | ||||||||||||||||
| Comment by Marko Mäkelä [ 2024-01-03 ] | ||||||||||||||||
|
I tested my fix with the following patch so that mtr would not flag test failures due to other cmake -DWITH_UBSAN=ON issues:
and the following test invocation:
The grep command returned an empty result. There were incorrect calls to some functions (see MDEV-33158), but not to ones whose name would start with wsrep. |