Skip to Content.
Sympa Menu

freetds - Re: [freetds] Need some help connectiing to MSSQL with tsql

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Need some help connectiing to MSSQL with tsql
  • Date: Sat, 29 Nov 2008 18:52:56 -0500

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




Archive powered by MHonArc 2.6.24.

Top of Page