PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

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';
>     $Db_fde_bcphdl->bcp_meminit(1);
>     $Db_fde_bcphdl->bcp_batch;
> 
> 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).

Try 

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
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler@peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html