[pgpool-committers: 5985] pgpool: Fix "unable to bind. cannot get parse message" error.
ishii at sraoss.co.jp
Fri Aug 9 17:22:31 JST 2019
Fix "unable to bind. cannot get parse message" error.
This was caused by too-eager memory free in parse_before_bind. It
combo to replace the query context in the sent message. Unfortunately
pool_remove_sent_message free memory such as statement name, which was
being passed by caller. As a result, the new sent message created by
pool_create_sent_message pointed to freed statement name, which may
make a search by statement name fail because now the statement name in
the sent message points to freed memory area, which might be
overwritten by later memory allocation. Fix is, instead of calling
pool_remove_sent_message etc., just replace the query context in the
Per bug 531.
src/protocol/pool_proto_modules.c | 8 ++++++++
1 file changed, 8 insertions(+)
More information about the pgpool-committers