drop table if exists test_polygon; create table test_polygon ( shape Polygon not null ) ; insert into test_polygon(shape) values ( GeomFromText('polygon( (33300 19200, 19200 30000, 30000 15000, 33300 19200))',128992)); insert into test_polygon(shape) values ( GeomFromText('polygon( (33300 19200, 8300 15000, 20000 4200, 33300 19200))',128992)); -- without index it works. analyze table test_polygon; -- with index it crashes. create spatial index tp on test_polygon(shape); analyze table test_polygon; describe test_polygon;