Opened 18 years ago
Closed 18 years ago
#4208 closed defect (duplicate)
Complex text with indentations chokes Trac requiring a restart
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | wiki system | Version: | 0.10 |
Severity: | blocker | Keywords: | indentation display restart |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Trac falls over trying to process the following text (the verbatim markup needs removed to see the effect):
''Effects'': The first ''M'' bits are initialized to bits `[`''pos''`,`''pos''`+`''M''`)` in ''x'', where ''M''` = min(`''n''`, `''x''`.size()-`''pos''`, `''num_bits''`)`. If ''n'' is `npos` then ''n'' is considered to be ''x''`.size()-`''pos''. If ''num_bits'' is `npos` then ''num_bits'' is considered to be `min(`''n''`, `''x''`.size()-`''pos''`)`.
This worked ok in 0.9. The indentation is intentional and removing it makes the problem go away.
On submitting the text to a wiki page it is saved to the database, but the page cannot be displayed. CPU climbs to 100% and Trac needs restarted. I have recreated this on several Trac installs on both Linux (Debian) and Windows.
I have listed this a a blocker of highest priority since it brings a Trac install down immediately and requires a restart. Also it is blocking me from accessing pages from a 0.9 install that was upgraded to 0.10.
The example text is from a C++ paper and is very common. I have managed to cut down the text to a small enough sample for testing.
Apologies if this is known and has been fixed. I was unable to find a ticket referencing the same problem.
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
That was r3949, sorry I completely missed this ticket, otherwise I could have informed you earlier that …
comment:3 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
it was a duplicate of #3779, already closed at the time this one was reported ;)
This appears to now work in 0.10.3 of Trac. I am therefore changing this to fixed. I have not waded through changesets to identify which change fixed this issue (or even what caused it) but I thought it was worth noting that it now worked.