Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MongoDB CPAN distribution.

Maintainer(s)' notes

Please don't report bugs here. Please use the MongoDB Perl driver issue tracker instead.

Report information
The Basics
Id: 73145
Status: resolved
Priority: 0/
Queue: MongoDB

People
Owner: Nobody in particular
Requestors: HALKEYE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.41
  • 0.45
Fixed in: 0.702.0



Subject: "(in cleanup) invalid object" when failing to connect to server
Perl library gives off a "(in cleanup) invalid object" warning when object is destroyed after failed to connect. I've tracked this down to perl_mongo_get_ptr_from_instance croaking when it can't find its internal pointer. The perl code (MongoDB/Connection.pm line 497) when a connection fails so I don't think the croak is necessary. Test script: my $connection; eval { $connection = MongoDB::Connection- Show quoted text
>new('host','mongodb://localhost:52132,localhost:52132');
}; $connection = undef;