Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Segfault with Sybase::DBlib bcp
Date: Aug 4 2004 12:00PM
On Wed, 2004-08-04 at 13:55, Avis, Ed wrote:
> This program causes a segfault:
> use Sybase::DBlib;
> $Db_fde_bcphdl = new Sybase::DBlib
> 'user', 'pass', 'SERVER', 'foo';
> It prints
> DB-Library error:
> bcp_init() must be called before any other bcp routines.
> Segmentation fault (core dumped)
> I am using Sybase::DBlib included with Activeperl 5.8.3 on Linux (it
> doesn't have a $VERSION number).
perl -MSybase::DBlib -e 'print "$Sybase::DBlib::Version\n"'
to get the version.
In any case I strongly suspect that the segfault is in the Sybase libs
somewhere. Sending me a stack trace from the core would be useful.
Michael Peppler Data Migrations, Inc.
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html