[MDEV-17413] Crash on shutdown in my_malloc_size_cb_func, after "Forcing close of thread".. Created: 2018-10-09 Updated: 2018-10-09 Resolved: 2018-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.2.14 |
| Fix Version/s: | 10.3.11, 10.1.37, 10.2.19 |
| Type: | Bug | Priority: | Major |
| Reporter: | Vladislav Vaintroub | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
From the file attached to
Can be reproduced with non-responsive threads (i.e adding large sleep() before connection close), and compression being used on connection. Normally, connections are closed from inside the connection itself, i.e current_thd != NULL, but in the specific case of closing connections from outside Commit b4ff64568c88 is the culprit, since it stopped checking for current_thd == NULL if thread-specfic memory is allocated. |
| Comments |
| Comment by Elena Stepanova [ 2018-10-09 ] | ||||||||||
|
I requested the config files in | ||||||||||
| Comment by Vladislav Vaintroub [ 2018-10-09 ] | ||||||||||
|
I can reproduce it, with one hanging (non-responsive) thread, and client --compress option A patch to emulate hanging thread:
0. apply a patch This issue should not be specific to Windows (just the patch to simulate a hang is windows-specific) | ||||||||||
| Comment by Vladislav Vaintroub [ 2018-10-09 ] | ||||||||||
|
In 10.0, this also crashes, but only with DBUG assertion |