[MDEV-24217] Add --invoke-on-crash option to mysqld allowing better and non-failing debugging traces Created: 2020-11-16 Updated: 2020-11-17 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
| Comments |
| Comment by Roel Van de Paar [ 2020-11-16 ] |
|
Further research shows that this may not work as ptrace privilege (echo 0 > /proc/sys/kernel/yama/ptrace_scope as root) is required, and setting this opens the door to same-user exploits by other rogue processes. |
| Comment by Vladislav Vaintroub [ 2020-11-16 ] |
|
not %p for pid. %d should be enough |
| Comment by Daniel Black [ 2020-11-16 ] |
|
Is this for testing and/or production? What does it offer over the piping core_pattern to program? It it intended to continue with a live program, or just post-mortem? |