Stack trace from 498a264d19f041c36d71e41a32c16ac40a014a3e
bootstrap server 1 and server 2;
unpack the attached binlog.tar.gz and put all mysql-bin.* files into the datadir for server 1;
start server 1 with --log-bin=mysql-bin --server-id=1;
start server 2 with --server-id=2;
set up and start standard replication from server 1 to server 2;
When slave SQL thread reaches mysql-bin.000237 pos 866, the slave crashes as above.
I have also attached mysql.log from the master in case you want to match the binlog with the general log.