Note: I am filing it as Minor because it is not reproducible on 10.2 and higher, and there is no urgent need to fix it in old versions. However, I need something to account for various failures that we are getting in tests, and possibly it will explain some problems that external users might experience, so we'll have it on the record in JIRA.
Depending on the engine in use, the actual result is different.
With InnoDB, the failure happens upon table creation:
With MyISAM and Aria, the table gets created and populated without complaints, but further statements cause errors.
With MyISAM it's error 126, followed by error 144 " Table './test/t1' is marked as crashed and last (automatic?) repair failed":
And with Aria it's 1034 ER_NOT_KEYFILE, also followed by error 144 " Table './test/t1' is marked as crashed and last (automatic?) repair failed":
All output above is from 10.1 1a89356382 debug build.