Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#2785 closed defect (invalid)

trac segfaults if templates_dir doesn't exist

Reported by: jouvin@… Owned by: Jonas Borgström
Priority: low Milestone:
Component: general Version: 0.9.4
Severity: normal Keywords:
Cc: jouvin@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

If templates_dir (as defined in trac.ini) doesn't exist, trac segfaults instead of giving an error message stating the problem. This can be a problem particularly if you run Trac inside mod_python as this means Apache segfaults.

This problem exists in 0.9.x and in 0.10dev.

Attachments (0)

Change History (4)

comment:1 by Matthew Good, 19 years ago

I've tried mod_python, FastCGI and CGI and all give the same error message:

Traceback (innermost last):
  File "csparse.c", line 293, in cs_parse_file()
  File "neo_hdf.c", line 1896, in hdf_search_path()
NotFoundError: Path wiki.cs not found

What version of Clearsilver are you using? It's quite difficult for Python code to cause a segfault, so it's probably coming from a C extension and Clearsilver seems like the most likely culprit.

comment:2 by jouvin@…, 19 years ago

Still using CS 0.10.1. In fact I am using FastCGI and this is the FastCGI process that segfaults. But if the retry rate is too high, the fcgi is not restarted.

comment:3 by Alec Thomas, 19 years ago

Resolution: invalid
Status: newclosed

Closing this ticket because, as Matt mentions, this isn't really a bug in Trac.

Feel free to reopen it if you really think it is.

comment:4 by Matthew Good, 19 years ago

Milestone: 0.10

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.