Re: Need some help connectiing to MSSQL with tsql

"James K. Lowden" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Vince ODea wrote:
> 
> Core was generated by `tsql'.
> Program terminated with signal 11, Segmentation fault.
> warning: The shared libraries were not privately mapped; setting a
> breakpoint in a shared library will not work until you rerun the
> program.
> #0  0xc02f72f8 in __errno () from
> #/usr/lib/nls/iconv/methods.2/lsbucs2.sl
> (gdb) where
> #0  0xc02f72f8 in __errno () from
> #/usr/lib/nls/iconv/methods.2/lsbucs2..sl 1  0xc02236f0 in iconv () from
> #/usr/lib/libc.2 2  0x2ced0 in tds_iconv ()
> #3  0x7b04a798 in ?? ()
> #4  0x785f7074 in ?? ()
> Cannot access memory at address 0xffffffee.

I wonder if HP/UX is unhappy with tds_iconv *writing* to errno?  E.g.,
src/tds/iconv.c:655:

	if (conv->flags & TDS_ENCODING_MEMCPY || cd == invalid) {
		size_t len = *inbytesleft < *outbytesleft ? *inbytesleft :
*outbytesleft;

		memcpy(*outbuf, *inbuf, len);
		errno = *inbytesleft > *outbytesleft ? E2BIG : 0;

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.