While some may think I’m daft, I have a legitimate reason for
wanting to crash mysqld. However first we need to find a way to
crash it.
Great thanks to Alan K, Mark L, Harrison and Hartmut on
#mysql-dev for several suggestions and a config option I was
unaware of. My investigation even lead to a documentation bug
logged as #51739.
My first thought was to find a known bug and if necessary install
the correct version to test that. A good one was suggested, Bug
#48508 which fails on several versions that I will
use to demonstrate with, however the simplest way is to issue
kill -11
By default, no core file will be produced which is what I’m
seeking but with the right options this is possible. First, the
user running mysqld probably has a core file limit size of 0.
$ ulimit …
[Read more]