[MDEV-18314] mysqld got signal 11 Created: 2019-01-20 Updated: 2019-01-28 Resolved: 2019-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Update |
| Affects Version/s: | 10.3.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Arthur Borsboom | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Arch Linux kernel 4.20.3 64-bit |
||
| Description |
|
Reproducable crash on simple update statement:
Possible cause are the OS updates, of which the following (Arch Linux) packages have been recently updated.
No errors in dmesg. |
| Comments |
| Comment by Arthur Borsboom [ 2019-01-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
On another laptop (different hardware, but similar OS and setup), the same issue occurs. There I did notice a crash message in dmesg, with a reference to glibc.
Arch is using glib 2.28 at this moment. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If it's reproducible, would you be able to provide a complete test case? (Data dump on which the provided query crashes, and configuration file(s)). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Arthur Borsboom [ 2019-01-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The crash is reproducible, but the database contains commercial sensitive information, which I cannot share. On one of the two systems, I have deleted the database with the issue and recreated it from a SQL script. This workaround succeeded. Is there something else I can do to provide the information, without sharing the content of the database? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If restoring from SQL script makes the problem go away, how was it reproduced on the 2nd laptop? Did you copy over the data files themselves? If the binary data files are important for the problem, it might be that they are corrupted in some way. If you didn't run CHECK TABLE and CHECK TABLE .. EXTENDED, please do. If the table is InnoDB, then also innochecksum might be useful. Can you provide the table structure itself?
It shouldn't be too sensitive, but if it is, you can obfuscate column names, as long as the obfuscated ones are kept consistent with the query. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Arthur Borsboom [ 2019-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I am guessing, that the corruption happened the following way. MariaDB upgrade 10.1 -> 10.3 by automatic updates of the OS (Arch Linux). Check, optimize and repair tables don't seem to fix the problem. The table structure itself is not sensitive, so here are the two results.
Does this help anything to improve the MariaDB product? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Arthur Borsboom [ 2019-01-25 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check does not fix the problem because the engine type is not supported for repair.
The status of the relations table:
Currently I have only one machine left, where this issue is reproducible (I applied a workaround to the other machine). The stacktrace is always the same (and limited). I have tried to enable the core dump (and maybe I have) and reproduced the crash, but I could not find a core file somewhere on the system. I added this to my.cnf under section [mysqld]
I restarted MariaDB and verified the setting.
I executed the following.
I executed the update query and it crashed, with the following as a result.
Did I do something wrong, or does MariaDB crash in a way that the core dump is not written? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Did you check ulimit -c and systemd settings? I don't see ArchLinux packages among ours, so it must be packaged by the distribution maintainers. Can it be that it overrides the settings / disables the coredump? Regarding CHECK/REPAIR TABLE, I understand why REPAIR wouldn't do anything, but does CHECK show any problems? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Arthur Borsboom [ 2019-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Elena, I needed my database to be available today, so I have dropped the damaged database and restored an old one. I recall check did not show any problems. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I see. Yes, unfortunately without the stack trace we don't even know which direction to look, it can be anything. I'll close it for now, if you experience the problem again, please comment and we'll re-open the report. |