Skip Menu |

This queue is for tickets about the POE-Component-SimpleDBI CPAN distribution.

Report information
The Basics
Id: 48237
Status: resolved
Priority: 0/
Queue: POE-Component-SimpleDBI

People
Owner: Nobody in particular
Requestors: acferen [...] yahoo.com
Cc: dolmen [...] cpan.org
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.27
Fixed in: (no value)



Subject: use of exit causes crashes in threaded code (MsWin32)
POE::Component::SimpleDBI::SubProcess calls exit in two locations. This works fine on operating systems where we have an actual subprocess. Unfortunately on MsWin32 platforms POE::Component::SimpleDBI::SubProcess is actually a thread (perl fork emulation). According to the threads documentation.. "Calling exit() inside a thread causes the whole application to terminate. Because of this, the use of exit() inside threaded code, or in modules that might be used in threaded applications, is strongly discouraged." Simply replacing both exit calls with a "return" is sufficient to fix the issue.
Hello, Thanks again for reporting this bug! As always, you have been helpful in testing this module on MSWin32 platforms. SimpleDBI 1.28 includes this fix, thanks again! -- ~Apocalypse