<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">On PG/PPAS, some sql will cause RDS reboot. And the reason comes from the PostGis. From the coredump, we know wkt_yyrealloc(yy_buffer_stack) caused the problem, which is in liblwgeom/lwin _wkt_lex.c. yy_buffer_stack is a global variable, it was not reseted when a query canceled, when next time realloc it, coredump happens.</div><div class=""><br class=""></div>The patch of issue 4017 in PostGis didn't fix the bug. Just put a useless patch.<div class="">Should add<br class=""><div class=""><span class="" style="font-family: monospace; font-size: 11px; background-color: rgb(221, 221, 204);">yy_init_globals(); </span></div><div class="">in</div><div class=""><span class="" style="font-family: monospace; font-size: 11px; background-color: rgb(221, 221, 204);">void wkt_lexer_init(char *src);</span></div></div><div class="">function.</div><div class=""><br class=""></div><div class="">The bug exists in 2.2 2.3 2.4 trunk.</div></body></html>