[MDEV-18782] mysqldump --all-databases causes segmentation fault Created: 2019-03-01 Updated: 2019-05-24 Resolved: 2019-05-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, Scripts & Clients |
| Affects Version/s: | 10.3.13 |
| Fix Version/s: | 10.3.15 |
| Type: | Bug | Priority: | Major |
| Reporter: | Avi Deitcher | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
alpine 3.9 on docker |
||
| Description |
|
I am running a mysql 8.0.15 docker container. I have a separate container running Alpine Linux 3.9, in which I install both mariadb-client and mariadb-connector-c. In the server I set up an empty databases `tester`. I then run:
Unsure if the `mariadb-connector-c` install is affecting it somehow (although I need it for the caching_sha2_password plugin); it is an issue with the Alpine package, or something else. FYI, the Alpine package source is here https://git.alpinelinux.org/aports/tree/main/mariadb?h=master |
| Comments |
| Comment by Avi Deitcher [ 2019-03-03 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Managed to build `mysqldump` with debug symbols and ran it. Some more useful info:
The `strcmp()` that causes the fault is at mysqldump.c:4342 :
When run through a debugger:
That might do it. The question is, why is it getting a null for `row[0]`? | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-03-11 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
holyfoot, could you please look into it? | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Avi Deitcher [ 2019-05-05 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Any updates or insights? | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2019-05-07 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2019-May/013754.html | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Avi Deitcher [ 2019-05-07 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Thanks Alexey. So it is merged into 10.3.15? Will give it a shot. | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Avi Deitcher [ 2019-05-07 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
I love when I hit "Add" by accident before I am done. Sigh. Correction: Thanks Alexey. So it is merged into 10.3.15? Will give it a shot. When is 10.3.15 expected available? | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2019-05-08 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Hi, Avi! | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Avi Deitcher [ 2019-05-08 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
Thanks Alexey! | ||||||||||||||||||||||||||||||||||||||||||||
| Comment by Avi Deitcher [ 2019-05-24 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
And ran a full test in my scenarios, looks great. Thanks again, have a great weekend. |