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: tim dot wilson at barclayscapital dot com
Subject: Seg violation on disconnect from Database handle
Date: Sep 27 2000 12:42PM


On 2nd to last line of some code we have:

undef $DBH;

to disconnect from an 11.9.2 Database. 

Not really needed I know (but the failure we are experiencing may be
pointing to something we are doing wrong elsewhere). 

Most of our code does this final undef and exits without issue. But with one
it SEGV's on this line with, the output from the debugger:

Signal SEGV at /opt/perl5/lib/5.00503/ line 1133
        DB::DB called at line 99
        main::fifo_unm_proc called at line 41

Most of our code involves creating multiple command structures, due to our
use of cursors and these other command structures are undef'ed before the
final undef of the initial database handle.

I put a call:

$x = $DBH->Scalar("select getdate()");

on the line before the undef $DBH and this worked fine.

Any pointers as to where to look or what to try?

Version Info:
This is sybperl, version 2.11

Sybase::CTlib $Revision: 1.40 $ $Date: 1999/09/21 21:05:01 $

Tim Wilson

For more information about Barclays Capital, please
visit our web site at

Internet communications are not secure and therefore the Barclays Group
does not accept legal responsibility for the contents of this message.
Any views or opinions presented are solely those of the author and do 
not necessarily represent those of the Barclays Group unless otherwise 
specifically stated.