[unixODBC-dev] libodbcpsql seems seems sensitive to EOFs from Postgresql

Nick Gorham nick at lurcher.org
Sun Jan 20 22:44:48 GMT 2008


Robert Kiesling wrote:

>>Robert Kiesling <kiesling at earthlink.net> writes:
>>    
>>
>>>The libodbcpsql driver seems sensitive to EOFs from Postgres, 8.2.6.
>>>The fault seems to occur intermittently in SQLGetDiagRec, and causes
>>>either unixODBC, version 2.1.12, or Perl, connected to unixODBC with
>>>UnixODBC.pm, to segfault.
>>>      
>>>
>>>The error is: "LOG:  unexpected EOF on client connection" printed on the terminal,
>>>then a segfault
>>>      
>>>
>>I think you've got the causality backward.  That log message is the
>>server reporting that the client dropped the connection ungracefully.
>>
>>Can we see a gdb stack trace from the segfault?
>>    
>>
>
>I was able to duplicate the error with a test program.  Here is the
>gdb output.
>  
>

Check if you have built the postgres driver for 2 or 4 byte unicode, 
unixODSBC by default uses 2, I think the postgres driver may default to 4.

-- 
Nick



More information about the unixODBC-dev mailing list