Re: Need some help connectiing to MSSQL with tsql
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <1227949378.7468.12.camel@freddy> |
Il giorno mer, 26/11/2008 alle 13.57 -0800, Vince ODea ha scritto: > Thanks Edmundo, > > Here's what this gives: > > 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. > (gdb) > > Quite bad :( Error occurs in __errno called by iconv which are two system functions :( Compiling again FreeTDS with debugging support could help a bit but not that much... the only way I see is to narrow down the problem removing everything not necessary till you get a small program that raise the same issue. If you agree I could try (obviously I need a ssh/telnet access and a normal account) freddy77 > > > > ________________________________ > From: Edmundo Robles L. <[email protected]> > To: FreeTDS Development Group <[email protected]> > Sent: Wednesday, November 26, 2008 7:26:08 PM > Subject: Re: [freetds] Need some help connectiing to MSSQL with tsql > > in the prompt shell > first do: > > gdb tsql core > > after that, input the word 'where' in the gdb prompt '(gdb)' > > > > Ing. Edmundo Robles Lopez. > Analista Programador. > > -- > > > > > -----Original Message----- > From: [email protected] on behalf of Vince ODea > Sent: Wed 11/26/2008 1:02 PM > To: FreeTDS Development Group > Subject: Re: [freetds] Need some help connectiing to MSSQL with tsql > > Hi James, > > None of the other tools work either. They all core dump. > How do I get a "Backtrace" or run tsql under gdb? > > Cheers > Vince > > > > > ________________________________ > From: James K.. Lowden <[email protected]> > To: FreeTDS Development Group <[email protected]> > Sent: Tuesday, November 25, 2008 3:02:39 PM > Subject: Re: [freetds] Need some help connectiing to MSSQL with tsql > > Vince ODea wrote: > > > > # TDSVER=7.0 /usr/local/freetds/bin/tsql -H X.X.X.X -p 20482 -U User > > # -P Pass > > locale is "C C C C C C" > > locale charset is "roman8" > > Memory fault(coredump) > > Please try to get a backtrace either from the .core file or by running > tsql under gdb, to discover the function that failed. It shouldn't be > possible to engender a memory fault under any circumstances. > > The problem might lie in tsql itself. Not all libtds functions check > their inputs, because that's considered the responsibility of the API > layer. You might want to try one of the other tools: bsqldb, fisql, > freebcp, and see how they behave. > > --jkl