Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Segmentation fault when running DBD::Sybase
Date: Apr 27 2005 3:58PM

On Wed, 2005-04-27 at 17:33, Ravi Parimi wrote:
> Michael,
>   Thanks for your reply. 
> > To try to figure out why you get a seg fault please post the stack
> > trace. To get the stack trace you have to enable core dumps (ulimit -c
> > unlimited) and once you have a core dump use gdb to get the stack trace:
> > gdb `which perl` core.xxxx
> > gdb> bt
> Here's the stack trace..
> (gdb) bt
> #0  0x4212dfd0 in main_arena () from /lib/i686/
> #1  0x4205535f in buffered_vfprintf () from /lib/i686/
> #2  0x42050437 in vfprintf () from /lib/i686/
> #3  0x4205a297 in fprintf () from /lib/i686/
> #4  0x402cf722 in com_perr () from /opt/sybase-11.9.2/lib/
> #5  0x402c13ed in com_intl_verify_ctxloc ()
>    from /opt/sybase-11.9.2/lib/
> #6  0x402804a9 in cs_ctx_alloc () from /opt/sybase-11.9.2/lib/

This is probably a locale problem, though I'm not sure, and I haven't
used the 11.1.1 libs in a long time.

> > What database server are you trying to talk to?
> > These libraries are very old - you would be better off getting ASE
> > 12.5.3 - see
> I am trying to connect to SQL server 2000. I am now downloading ASE
> 12.5.3 from, and will compile the DBD::Sybase module again
> using these libraries..

You will need to use the FreeTDS libraries - the Sybase libs will NOT
work with MS-SQL.

Michael Peppler  -  -
Sybase DBA/Developer
Sybase on Linux FAQ: