[unixODBC-support] Rif: Re: Rif: Re: Rif: Re: Segmentation Fault on Centos 7 when Connection Pooling Enable

Nick Gorham nick at lurcher.org
Thu Jan 12 10:18:43 GMT 2017

On 12/01/17 08:01, Davide Pagnin wrote:
> Hi,
> I've played a bit with the new code in the afterhours yesterday night.
> Pooling does work (I mean, we enjoy no connection setup delay after 
> the initial one),
> but then, when we pause and wait some time (I suppose when CPTimeout 
> kick in)
> we get segfault on httpd.
> This is the backtrace of gdb:
> Program terminated with signal 11, Segmentation fault.
> #0  0x00007f8dadde15d3 in release_env 
> (connection=connection at entry=0x7f8dc7a1c4f0) at SQLConnect.c:2440
> 2440                env_lib_list = connection -> environment -> 
> env_lib_list;
> #1  0x00007f8dadde1a19 in close_pooled_connection 
> (ptr=ptr at entry=0x7f8dc7a1bf40) at SQLConnect.c:2874
> I will investigate more, but In the meantime I wanted to give you some 
> feedback.

My fault, I missed a null dereference in the case of a timeout. Try the 
zip thats there now.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20170112/774abf3b/attachment-0001.html>

More information about the unixODBC-support mailing list