[CLUE-Tech] Perl/DBD/FreeTDS problem

Dan Harris coronadh at coronasolutions.com
Thu Jan 10 22:27:17 MST 2002


Hey all,

I've been fighting this problem for 12 hours straight now and can't seem to
figure it out.  I'm hoping someone else here is a perl programmer and knows
what might be going on here.

The situation:

Using Linux (RH7.2) to run a perl (5.6.1) program that connects to MS
SQLServer2000, using the DBD::Sybase (0.94) API, which in turn calls the
FreeTDS API to talk to SQL Server.

This solution works fine on a RH6.2 box but for some reason on the new box,
whenever I execute a DBI->connect(), I get a segmentation fault and a core
dump.
I have tried downgrading the DBD and FreeTDS versions to older revs just to
see if that helps.  I've uninstalled and reinstalled the FreeTDS libraries
as well as the DBD::Sybase module...

This is a very mission critical system and I'm gonna be up all night on
this, so if anyone has a clue for me I'd be forever grateful.

Here's the line of code that breaks it:

**********************************************
my $dbh = DBI->connect('DBI:Sybase:massive','xxxx','xxxx') || die "Couldn't
open database $DBI::errstr; stopped";
**********************************************

Here's a tidbit of the DBI->trace(3) that may help:

***********************************************
 DBI 1.20-nothread dispatch trace level set to 3
    -> DBI->connect(DBI:Sybase:massive, sa, ****)
    -> DBI->install_driver(Sybase) for linux perl=5.006001 pid=25926 ruid=0
euid=0
123    syb_init() -> DBD::Sybase 0.93 initialized
@a  OpenClient version: ¨





More information about the clue-tech mailing list