freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Michael Peppler <mpeppler AT peppler.org>
- To: freetds AT lists.ibiblio.org
- Subject: RE: [freetds] FreeTDS/DBD::Sybase dumping core.
- Date: 10 Feb 2003 13:33:10 -0800
On Mon, 2003-02-10 at 12:23, Lowden, James K wrote:
> > From: Chris Josephes [mailto:cpj1 AT isis.visi.com]
> > Sent: February 10, 2003 3:06 PM
> >
> > I'm running perl 5.8.0 in a Solaris 8 environment, using
> > FreeTDS-0.61 and
> > DBD::Sybase 0.95. It was recommended that I use the snapshot
> > release of
> > FreeTDS to resolve some issues with compatability.
> >
> > However, when I run a test perl script to connect to the same
> > database,
> > perl dumps core.
> >
> > I checked with Michael Peppler and he said it was a problem with ct.c.
>
> Chris, I'll apply Bill Thompson's ct-lib patches ASAP. Perhaps that will
> solve the problem. If not, we can look deeper.
I think the problem is in this code from DBD::Sybase:
if(imp_dbh->chainedSupported) {
CS_BOOL value = CS_FALSE;
if(dbis->debug >= 2)
PerlIO_printf(DBILOGFP, " syb_db_login() -> checking for
chained transactions\n");
retcode = ct_options(connection, CS_SET, CS_OPT_CHAINXACTS,
&value, CS_UNUSED, NULL);
if(retcode == CS_FAIL) {
imp_dbh->doRealTran = 1;
imp_dbh->chainedSupported = 0;
}
if(dbis->debug >= 2)
PerlIO_printf(DBILOGFP, " syb_db_login() -> chained
transactions are %s supported\n", retcode == CS_FAIL ? "not" : "");
}
It's the ct_options() call that causes the segfault, apparently.
Michael
--
Michael Peppler Data Migrations, Inc.
mpeppler AT peppler.org http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html
-
[freetds] FreeTDS/DBD::Sybase dumping core.,
Chris Josephes, 02/10/2003
- <Possible follow-up(s)>
-
RE: [freetds] FreeTDS/DBD::Sybase dumping core.,
Lowden, James K, 02/10/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Chris Josephes, 02/10/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Michael Peppler, 02/10/2003
-
RE: [freetds] FreeTDS/DBD::Sybase dumping core.,
Lowden, James K, 02/10/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Chris Josephes, 02/10/2003
- Make failed (Was RE: [freetds] FreeTDS/DBD::Sybase dumping core.), Chris Josephes, 02/11/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Castellano, Nicholas, 02/10/2003
-
RE: [freetds] FreeTDS/DBD::Sybase dumping core.,
Lowden, James K, 02/10/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Michael Peppler, 02/10/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Chris Josephes, 02/11/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Castellano, Nicholas, 02/10/2003
-
RE: [freetds] FreeTDS/DBD::Sybase dumping core.,
ZIGLIO Frediano, 02/11/2003
- RE: [freetds] FreeTDS/DBD::Sybase dumping core., Chris Josephes, 02/11/2003
Archive powered by MHonArc 2.6.24.