Subject: | config file parsing errors may trigger incorrect threading |
(This is a forward of
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=623540>.)
Here's an easy demonstration:
$ dbiproxy --configfile foo
Can't locate object method "self" via package "Thread" at
/usr/share/perl5/Net/Daemon/Log.pm line 82.
Basically, if Net::Daemon cannot properly parse the config file, it will
call Fatal(), and thus Log(), to report the error. Log() expects the
mode to have already been set, which it hasn't yet, as it is done a bit
later in the constructor (since picking a default value may depend on
other config options).
I guess the easiest fix would be to set the mode so 'single' at first;
there's not much threading information to report anyway.