Skip to Content.
Sympa Menu

freetds - Re: sigsegv in tds_submit_query

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: sigsegv in tds_submit_query
  • Date: 10 Sep 2002 21:20:23 +0200


>
> I'm using Kylix 3, so the backtrace is kinda weird.
>
> libpthread.pthread_mutex_lock + 0x17
> libc.free + 0xa3
> tds_free_column + 0x24
> imd.tds_free_results + 0x85
> tds_free_all_results + 0x15
> imd.tds_submit_query + 0x6d
>

So.. you are using libtds directly...

> All this is running on gentoo linux gcc 2.95x connecting to MS SQL Server
> 2000
> on Windows 2000.
>
> here's an ldd on my program:
> mark@mark imd $ ldd imd
> libdl.so.2 => /lib/libdl.so.2 (0x4002b000)
> libm.so.6 => /lib/libm.so.6 (0x4002f000)
> libpthread.so.0 => /lib/libpthread.so.0 (0x40051000)
> libc.so.6 => /lib/libc.so.6 (0x40067000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
>
> I have verified that the parameters I'm passing to tds_submit_query are
> valid:
> The TDSSOCKET is correct. The query is also valid, that is it is quite
> short
> and null terminated. The TDSSOCKET, interestingly enough, gets hosed after
> the sigsegv. All the data in the TDSSOCKET structure is altered
> significantly.
>
> ./configure --eneable-threadsafe --tdsver=7.0
>

./configure --enable-threadsafe=yes --tdsver=7.0
should work better. I'd also include --with-ssl.

> is how I configured it.
>
>
> Thanks,
>
> Mark
>
freddy77






Archive powered by MHonArc 2.6.24.

Top of Page