When Python console exceeds CPU time limit it doesn't return "CPU Time Limit Exceeded" error

Bug #494863 reported by David Coles
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Triaged
Medium
David Coles

Bug Description

Enter the following into the IVLE console:

>>> while True:
... pass
...
Console Restart: Communication to console process lost

There is code already in services/python-console to catch the SIGXCPU signal and trigger a clean termination. Expected result:

>>> while True:
... pass
...
Console Restart: CPU Time Limit Exceeded

Tags: console ui
Revision history for this message
David Coles (dcoles) wrote :

Entering something like this will work:

>>> i = 0
>>> while True:
... i = i+1
... if i % 100000 == 0:
... print i

The issue here is that the termination should not have to wait for previous operation to complete. This is the same issue that prevents 'while True: pass' from being interuptable.

Revision history for this message
David Coles (dcoles) wrote :

This is not able to be fixed until lp:523084 is, due to there being no way to reliably interrupt the python-console in its current incarnation.

Changed in ivle:
milestone: 1.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.