Edgewall Software
Modify

Opened 17 years ago

Closed 14 years ago

#6580 closed defect (fixed)

Endless loop in logging

Reported by: tomek@… 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 anonymous, 17 years ago

What version are you using? Might be important.

comment:2 by tomek@…, 17 years ago

The version I use is 0.11dev-r6372

comment:3 by Remy Blank, 16 years ago

Milestone: 1.0

comment:4 by Christian Boos, 15 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:5 by Christian Boos, 15 years ago

Milestone: triaging0.12.1
Owner: changed from Jonas Borgström to Christian Boos
Priority: normalhigh
Severity: normalcritical

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 Christian Boos, 15 years ago

Milestone: 0.12.10.12
Status: newassigned

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 Christian Boos, 14 years ago

Resolution: fixed
Status: assignedclosed

Ok, so r9713 probably fixed the issue reported here, so I'm closing the ticket (please reopen if nevertheless a similar error re-appears).

This didn't help for #8443, though.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.