The attached tarball (1486932221_bug_bundle.tar.gz) gives the testcase as an exact match of our system, including some handy utilities

$ vi 1486932221_mybase         # STEP1: Update the base path in this file (usually the only change required!). If you use a non-binary distribution, please update SOURCE_DIR location also
$ ./1486932221_init            # STEP2: Initializes the data dir
$ ./1486932221_start           # STEP3: Starts mysqld
$ ./1486932221_cl              # STEP4: To check mysqld is up
$ ./1486932221_run_pquery      # STEP5: Run the testcase with the pquery binary
$ ./1486932221_run             # OPTIONAL: Run the testcase with the mysql CLI (may not reproduce the issue, as the pquery binary was used for the original testcase reduction)
$ vi /dev/shm/1486932221/error.log.out  # STEP6: Verify the error log
$ ./1486932221_gdb             # OPTIONAL: Brings you to a gdb prompt with gdb attached to the used mysqld and attached to the generated core
$ ./1486932221_parse_core      # OPTIONAL: Creates 1486932221_STD.gdb and 1486932221_FULL.gdb; standard and full variables gdb stack traces
