[freetds] AIX 5.2 core dump problem with freetds.

James K. Lowden jklowden at freetds.org
Thu Jul 3 11:52:34 EDT 2008


Putnam, Denis wrote:
> 
> I am not sure what information that you need, but I am getting a core
> dump when I try to connect to a MSSQL 2005 server from AIX.  I a have
> been successful with Solaris this far.  Can you point me in the right
> direction as how to solve this?
...
> 'LC_locale_objhdl:,64,32;;'
...
> internal error: unexpected value 120 at line 5010 in file stabstring.c
> __connect_part_one(connection = 0x301ab728, driver_lib =
> "/nfs/home4/trpapp/appd4ec/freetds.aix/lib/libtdsodbc.so.0", driver_n
> ame = (nil), warnings = 0x2ff208a8), line 1257 in "SQLConnect.c"
> SQLConnect.SQLConnect(connection_handle = 0x301ab728, server_name =
> "AppMaintPlatform", name_length1 = 3950, user_name = "Amp_
> AppSupport_rw", name_length2 = 17, authentication = "amprandw$1",
> name_length3 = 10), line 3819 in "SQLConnect.c"
> odbc_db_login6(??, ??, ??, ??, ??, ??) at 0xdc6dca6c

The error happens deep in non-FreeTDS code and seems to have something to
do with locale.  FreeTDS was developed with GNU's libiconv.  If AIX's is
very different (Solaris's is), you might be in for some surprises.  

I would configure --without-libiconv for now and see if that helps.  If it
does and you need more than basic iconv support, I'd look at the GNU
implementation unless you want to muck with the guts of encoding
conversion in FreeTDS.  

HTH.  

--jkl



More information about the FreeTDS mailing list