From looking at the code, it seems that the problem could be triggered
by an error that is triggered from within the logging code, i.e. when another error is triggered while writing to the error log. One possible cause could be disk shortage.
I will open up a tracker issue for the problem.
-Hans