[issue4749] Issue with RotatingFileHandler logging handler on Windows

Frans report at bugs.python.org
Mon Jun 8 20:40:42 CEST 2009


Frans <Frans.van.Nieuwenhoven at gmail.com> added the comment:

Hi Robert,

Thanks, I have run the script, both on

=> Windows: '2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)]'
=> And on Ubuntu: '2.5.2 (r252:60911, Oct  5 2008, 19:24:49) \n[GCC 4.3.2]'

In both cases the problem appeared almost immediately. I've zipped the
produced log file, the script used, and the console output (files attached),
so you can see for your self.
Also, on linux the logfile is cluttered with a lot of bianry 0 values. This
is consistent with what I saw with my own script.

Regards,

Frans

2009/6/8 Robert Cronk <report at bugs.python.org>

>
> Robert Cronk <cronk.r at gmail.com> added the comment:
>
> P.S. The above script and failure is running on winxp sp3.  Also, if
> you comment out the two os.system() calls, it works just fine.  They
> seem like they should be unrelated to the logging though.  You'll also
> see some errors about access to the blah.txt file which makes sense
> since multiple threads are hitting that file at the same time.  I don't
> know if this is about using os.system() itself from multiple threads
> while logging or if it's about having an error condition during the
> os.system() call on top of that.  Anyway, let me know what you think or
> if I've done something wrong, let me know how to fix it and that might
> be good documentation for others running into this problem.  Thanks.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue4749>
> _______________________________________
>

----------
Added file: http://bugs.python.org/file14228/unnamed
Added file: http://bugs.python.org/file14229/logthred-windows.zip
Added file: http://bugs.python.org/file14230/logthread-ubuntu.zip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4749>
_______________________________________
-------------- next part --------------
Hi Robert,<br><br>Thanks, I have run the script, both on <br><br>=&gt; Windows: &#39;2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]&#39;<br>=&gt; And on Ubuntu: &#39;2.5.2 (r252:60911, Oct  5 2008, 19:24:49) \n[GCC 4.3.2]&#39;<br>
<br>In both cases the problem appeared almost immediately. I&#39;ve zipped the produced log file, the script used, and the console output (files attached), so you can see for your self.<br>Also, on linux the logfile is cluttered with a lot of bianry 0 values. This is consistent with what I saw with my own script. <br>
<br>Regards,<br><br>Frans<br><br><br><div class="gmail_quote">2009/6/8 Robert Cronk <span dir="ltr">&lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
Robert Cronk &lt;<a href="mailto:cronk.r at gmail.com">cronk.r at gmail.com</a>&gt; added the comment:<br>
<br>
</div>P.S. The above script and failure is running on winxp sp3.  Also, if<br>
you comment out the two os.system() calls, it works just fine.  They<br>
seem like they should be unrelated to the logging though.  You&#39;ll also<br>
see some errors about access to the blah.txt file which makes sense<br>
since multiple threads are hitting that file at the same time.  I don&#39;t<br>
know if this is about using os.system() itself from multiple threads<br>
while logging or if it&#39;s about having an error condition during the<br>
os.system() call on top of that.  Anyway, let me know what you think or<br>
if I&#39;ve done something wrong, let me know how to fix it and that might<br>
be good documentation for others running into this problem.  Thanks.<br>
<br>
----------<br>
<div><div></div><div class="h5"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:report at bugs.python.org">report at bugs.python.org</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue4749" target="_blank">http://bugs.python.org/issue4749</a>&gt;<br>
_______________________________________<br>
</div></div></blockquote></div><br>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logthred-windows.zip
Type: application/zip
Size: 14096 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20090608/8f86bcfc/attachment-0002.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logthread-ubuntu.zip
Type: application/zip
Size: 11691 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20090608/8f86bcfc/attachment-0003.zip>


More information about the Python-bugs-list mailing list