[Dbix-class] ResultSetManager makes DBIC to hang in debugger?

Oleg Pronin syber.rus at gmail.com
Thu Aug 9 11:05:04 GMT 2007


Hi.
I've just updated to 0.8005 and discovered a problem: ResultSetManager makes
DBIC to hang with 100% cpu usage in debugger with latest version of DBIC.

Example:

package package MyApp::Schema::BlackList;
...
__PACKAGE__->load_components(qw/ResultSetManager Core/);
...
sub bad_nicknames : ResultSet { shift->search({type =3D>
BLACK_LIST_TYPE_NICKNAME}) }

my $rs =3D $schema->resultset('BlackList');
my $bnick_rs =3D $rs->bad_nicknames; # The process hangs at this line in
debugger.

This hangs too:
MyApp::Schema::BlackList::_resultset::bad_nicknames()

The command "s MyApp::Schema::BlackList::_resultset::bad_nicknames()"
doesn't even enter in the function - it immedeately hangs!

DB<6> x Class::Inspector->functions('MyApp::Schema::BlackList::_resultset')
0  ARRAY(0x4609138)
   0  'bad_matches'
   1  'bad_nicknames'
   2  'bad_words'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20070809/d08=
a1dfa/attachment.htm


More information about the DBIx-Class mailing list