> I don't know how DBD::ODBC works but this does not crash using DBD::mysql on
> linux atleast. It should certinaly not happen if you exec(). (No global
> destruction is run then afaik). I guess the problem is that you are
> connecting before the fork, do you still crash if you create it inside the
> fork? 

No if I create the connection after fork() it works all right.

As long as I connect to the database only from one thread 
or (which is kind of strange) if the child dies later than the 
parent ! (Not sure about real thread-safetyness, but at least it 
doesn't crash.)

I even tried to connect via DBD::ODBC from one thread and DBD::ADO 
from the other. Crashes.

> Can we get a backtrace of the crash?
> 
> Artur

Well I'm afraid not. I don't have perl compiled for debuging (yet)
etc. etc. I'm even not sure what exactly should I do to generate the 
backtrace :-(

I don't have mysql to check if this is a windows or DBD::ODBC 
problem. I tried the script with DBD::ADO and it doesn't crash.

Just for the sake of difference it hangs.

I tried to close the database connection and undef $dbh before I 
fork(), but that doesn't make any difference. Still crashes/hangs :-(


Jenda

== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>

Reply via email to