This is realated to the following MySQL Bug (https://bugs.mysql.com/bug.php?id=29480):
To repeat this bug the value of the global sql_mode variable
should be set to STRICT_TRANS_TABLES. Also some of table fields
have to be defined as NOT NULL without the default values.
After the first successful INSERT into that table, next statement
should be INSERT or INSERT SELECT with an implicit assignment
to some field defined without default value.
The last statement hung instead of the error reporting.