[freetds] Segmentation fault using DBD::Sybase

James K. Lowden jklowden at freetds.org
Mon Jul 18 21:14:54 EDT 2005


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


More information about the FreeTDS mailing list