Re: Class::DBI, mod_perl1, multiple databases, and database handles

[prev] [thread] [next] [Date index for 2004/12/15]

From: Christopher Laco
Subject: Re: Class::DBI, mod_perl1, multiple databases, and database handles
Date: 19:42 on 15 Dec 2004
On Wed, 15 Dec 2004 14:14:08 -0500 (EST), toddrw69@xxxxxx.xxx
<toddrw69@xxxxxx.xxx> wrote:
> 
> sent to cdbi-talk@xxxxxx.xxxxx.xxx and modperl@xxxx.xxxxxx.xxx
> 
> I use Class::DBI to connect to several databases from within mod_perl. Occasionally a request will hang and there will be a slew of "attempt to free unreferenced scalar" messages in the error_log. I am assuming this is because of multiple processes connecting to multiple databases at the same time via a single database handle.

I'm not sure if this is related or not, but I have a similiar issue of sorts.

About a month ago, I tried getting CDBI, DBI, DBDSQLite et al running
under 5.6.1 on windows.
CDBI, and DBDSQLite both crashed perl with "Ateempt to free
unreferenced scalar" issues.

After some amount of installing, uninstalling, upgrade, and blood
sacrifice, it started to work.

Now, a month later, I'm setting up a 5.6.1 and 5.8.4 install on my
laptop and trying to get CDBI , DBI, and DBDSQLite running.

This time, 5.6.1 runs fine, but 5.8.4 again crashes with the
unreferenced scalar errors.
A week ago, I have that same combo under another 5.8.4 running fine. 
All were using the latest active state builds under XP.

I have also notice that sometimes, ActiveStats ppms say you're getting
CDBI .96 when it really installs .95.

At this point,  I'm convinced there is some version combination or
install order that is borking Ima:: or CDBI since sometimes it works,
and sometimes it doesn't using the very same test suites.

-=Chris

Re: Class::DBI, mod_perl1, multiple databases, and database handles
Christopher Laco 19:42 on 15 Dec 2004

Generated at 09:04 on 20 Dec 2004 by mariachi v0.52