Opened 17 years ago
Closed 14 years ago
#6580 closed defect (fixed)
Endless loop in logging
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | high | Milestone: | 0.12 |
Component: | general | Version: | |
Severity: | critical | Keywords: | |
Cc: | tomek@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Ocasionally when I stop (Ctrl-C) tracd, I goes into endless exception loop:
[...] Traceback (most recent call last): File "/usr/lib/python2.4/logging/__init__.py", line 737, in emit self.stream.write(fs % msg) ValueError: I/O operation on closed file Traceback (most recent call last): File "/usr/lib/python2.4/logging/__init__.py", line 737, in emit self.stream.write(fs % msg) ValueError: I/O operation on closed file [...]
The only way to stop Trac then is SIGKILL its process.
Attachments (0)
Change History (7)
comment:1 by , 17 years ago
comment:3 by , 16 years ago
Milestone: | → 1.0 |
---|
comment:5 by , 15 years ago
Milestone: | triaging → 0.12.1 |
---|---|
Owner: | changed from | to
Priority: | normal → high |
Severity: | normal → critical |
See ticket:8443#comment:37 - if in some conditions this error (or similar) happens for a thread in httpd or trac.fcgi, search no further for the pathological situations where we observer 100% CPU usage for extended periods of time…
The point is that we do lots of things in our error handlers, and if one of those things breaks, then all sorts of weird things can happen (e.g. r9686).
comment:6 by , 15 years ago
Milestone: | 0.12.1 → 0.12 |
---|---|
Status: | new → assigned |
I believe r9713 should fix this issue.
It remains to be seen if this was really the reason for the 100% CPU problem.
Also, the change could be made more robust. In particular, I currently rely on the fact that the only call to env.shutdown()
is done within a critical section.
Keeping the issue on the radar and opened for a few more days.
comment:7 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
What version are you using? Might be important.