Skip to Content.
Sympa Menu

freetds - Re: [freetds] Segmentation fault using DBD::Sybase

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: Simon Kissane <skissane AT gmail.com>, FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Segmentation fault using DBD::Sybase
  • Date: Mon, 18 Jul 2005 21:14:54 -0400

Simon Kissane wrote:
>
> I've been playing around with trying to port LXR to work with a
> Microsoft SQL Server database.

(It had been my hope at one point to use LXR for FreeTDS. Getting it to
work was no walk in the park, though.)


> My code has been getting the following segfault:
...
> Program received signal SIGSEGV, Segmentation fault.
> 0x00d87e50 in ct_res_info_dyn (cmd=0x0, type=49, buffer=0x0,
> buflen=-99999, out_len=0xbfffb5ec) at ct.c:1857
> 1857 int_val = dyn->res_info->num_cols;
> (gdb) bt
> #0 0x00d87e50 in ct_res_info_dyn (cmd=0x0, type=49, buffer=0x0,
> buflen=-99999, out_len=0xbfffb5ec) at ct.c:1857
> #1 0x00d87f6d in ct_res_info (cmd=0x8491b20, type=49,
> buffer=0xbfffb5f0, buflen=-99999, out_len=0xbfffb5ec) at ct.c:1879
> #2 0x00ed811a in syb_st_prepare () from

It looks like it's using placeholders ("dynamic sql"). Placeholders don't
work with DBD::Sybase in the current release. Bill Thompson has promised
us a patch, so later this summer you have a shot at a working nightly
snapshot.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page