On 2006–10–06, at 21:58, Gustavo Delfino wrote:

Any advice on how to solve this?

Well, I can't help you, but I know someone who can. Or who should be able to, anyway. Go to <http://search.cpan.org/~capttofu/DBD- mysql-3.0007/> and repost your question through the "View/Report bugs" link after first checking that your bug is not a duplicate. (At a quick glance, it does not seem to be to me, but please check carefully.) The report you posted to the list is a good one, but lacks two things which will help in the search for a solution:

The crash log. You should be able to find this in ~/Library/Logs/ CrashReporter/perl.crash.log. (If there are lots of log entries, include only one in your report.)

The output of perl -V for the perl you're using. (I'm guessing this is the 5.8.6 delivered as standard with Mac OS X.)


One more thing: the perl shipped with Mac OS X supports threading, and the DBI documentation still says

"Using DBI with perl threads is not yet recommended for production environments."

although I can't see that this is an issue with your code.

However, the DBD::MySQL man page says

"The obvious question is: Are the C libraries thread safe? In the case of MySQL the answer is "mostly" and, in theory, you should be able to get a "yes", if the C library is compiled for being thread safe (By default it isn't.) by passing the option -with-thread-safe- client to configure. See the section on How to make a threadsafe client in the manual."

so you might try a couple of things. First, rebuild DBD::MySQL with that option; second (and rather more tedious), download the perl source, build a non-threaded perl (the default) and try that.
--
Dominic Dunlop


Reply via email to