Discarded db connection object led to "Cannot operate on a closed cursor" and tracd segfaulting
|Reported by:||doug||Owned by:||Mark Ryan|
childtickets.py uses a bad pattern for getting the cursor, as discussed in this email thread, this Trac commit, and TracDev/DatabaseApi. The attached patch fixes it for me, although TracDev/DatabaseApi suggests alternative patterns.
Loading two tickets simultaneously in separate tabs was enough to trigger this error on one setup I tried; occurrence may depend on server setup, database size, etc.