System becomes unresponsive when running code with deep-recursion under unprivileged user

Bug #1631302 reported by vsespb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perl (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Ubuntu 16.04 if you run
perl -e 'sub x { x() }; x()'
(this commands does a deep recursion, eats all memory)

under non-root user

whole system becomes unresponsive, mouse, keyboard does not work. Screen does not update when you plug/unplug charger, for example. The only way to quit is to press power button and shut down machine.

Expected bahaviour: Ctrl-C, Ctrl-Alt-Del, Ctrl-Alt-F1, mouse, at least something should work.

Repsoduced on HP Pavilion 15, SSD with encryption, encrypted Swap. Reproduced by at least one another person with Ubuntu 16.04 with SSD.

Tags: bot-comment
vsespb (vsespb)
summary: System becomes unresponsive when running code with deep-recursion under
- unprilileged user
+ unprivileged user
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1631302/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Paul White (paulw2u) wrote :

Reassigning bug against perl so someone with more knowledge that I can look into it further.

I have no idea if this is a bug or not but I can confirm that an Ubuntu 16.10 test system locks up as described.

affects: ubuntu → perl (Ubuntu)
Revision history for this message
vsespb (vsespb) wrote :

I suspect it's not about perl, probably system can be locked same way with any programming language.

Revision history for this message
vsespb (vsespb) wrote :

I tested in Ubuntu 12.04 (but different hardware). Not affected. Everything works - keyboard, mouse, Ctrl-C.

description: updated
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.