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: "Avis, Ed" <avised at kbcfp dot com>
Subject: Segfault with Sybase::DBlib bcp
Date: Aug 4 2004 11:55AM

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).

I tried adding

    use Sybase::DBlib qw(:DEFAULT /TRACE/);
    Sybase::DBlib::debug(TRACE_ALL);

but it didn't print any trace messages.

-- 
Ed Avis