[MDEV-32638] MariaDB crashes with foreign_key_checks=0 when changing a column and adding a foreign key at the same time Created: 2023-10-31 Updated: 2023-11-07 Resolved: 2023-11-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 10.4, 10.5, 10.6.15, 10.9.8, 11.1.2 |
| 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: | Critical |
| Reporter: | Simon Williams | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash, foreign-keys, regression | ||
| Environment: |
Docker on Linux Mint 20.3 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
migrate.sql:
This causes the MariaDB server to crash (see attached log output).
Verified on 10.6.15, 10.9.8 and 11.1.2 (all with docker). |
| Comments |
| Comment by Marko Mäkelä [ 2023-10-31 ] | ||||||||||||||||||||||||
|
This is something that was missed in We fail to check for a null pointer:
| ||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2023-11-02 ] | ||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-11-02 ] | ||||||||||||||||||||||||
|
OK to push. |