Subject: | Total crash DBI under Test::More ActiveState WinXp |
When running tests with Test::More with DBI against ODBC, MS Access under WinXp activeState v5.8.6 I get
"Attempt to free unreferenced scalar", and an MSWindows Debug-message. I.e. Perl crashes completely.
After severlal hours with split and conquer debugging, I finally found the source to the problem.
Any early access to $sth->{NAME_hash} or $sth->{NAME_uc_hash} or $sth->{NAME_lc_hash} (after prepare) will result in a total crash at an arbitrarily location in a later part of the program . Probably when Perl initiates some carbage collection(?).
Looks maybe like some Garbage Collection, Weak/Circular Reference issue, but that is unfortunately beyond my capacity...