[Pgpool-general] pgpool crash in realloc on freebsd
Tatsuo Ishii
t-ishii at sra.co.jp
Fri Jul 8 04:35:38 GMT 2005
> > Ok. So actually the protocol is handled by libpq on the frontend side,
> > that means the frontend side should be fine.
> >
> > Recently someone from Japan has pointed out a problem with pgpool on
> > FreeBSD. I have put fixed version of pgpool on:
> >
> > http://www2b.biglobe.ne.jp/~caco/pgpool/tmp/pgpool-2.6.tar.gz
> >
> > Could you please try it out?
>
> It seems to be working!
>
> I did some limited testing and now am monitoring it closely in production,
> everything appears stable and I haven't seen a crash yet. Mind if I ask
> what the fix was?
Sure. pgpool uses a non blocking socket to communitcate with
frontend. Problem is stdio libaries over the non blocking socket does
not handle correctly the case when EAGIN is returned from
fwrite/fflush. I replaced them with a hand made buffered I/O
routines. This should solve the EAGIN pronblem.
--
Tatsuo Ishii
More information about the Pgpool-general
mailing list