[MDEV-6641] Embedded server : NULL-pointer reference in THD::store_globals causes SEGFAULT Created: 2014-08-26 Updated: 2014-12-24 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.39 |
| Fix Version/s: | 5.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Vilho Raatikka | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
x86_64 x86_64 x86_64 GNU/Linux |
||
| Description |
|
Reproduce by calling a mysql_thread_end followed by mysql->methods->free_embedded_thd() The call sequence is illegal and expected outcome would be an error or some indication of error. The location of problematic code :
where mysys_var is NULL. Valgrind:
|
| Comments |
| Comment by Vilho Raatikka [ 2014-09-02 ] |
|
I guess the function is not very often called directly from client application. |