Bug 192474 - Command halts the system
Summary: Command halts the system
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 5
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2006-05-19 21:21 UTC by Hugo Cisneiros
Modified: 2007-11-30 22:11 UTC (History)
0 users

Clone Of:
Last Closed: 2006-05-19 21:54:19 UTC

Attachments (Terms of Use)

Description Hugo Cisneiros 2006-05-19 21:21:34 UTC
Description of problem:

I don't know if this is really a bug in bash, but it's worthy looking. When 
any user executes a certain command, the system halts and becomes inaccessible 
(even with ssh). This is really annoying and brings some concerns about system 

The command is:
(:(){ :|:;};:)

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. Open a terminal as any user (root or not root)
2. Type the following command: (:(){ :|:;};:)
3. Press Enter and see your system hanging and Hard Disk working.

Comment 1 Tim Waugh 2006-05-19 21:54:19 UTC
You need to set user limits with 'ulimit' or PAM's limits.conf.

Comment 2 Hugo Cisneiros 2006-05-19 22:14:59 UTC
Thank you for the input, I was already thinking of this... BTW, isn't be good 
to set a reasonable limit in FC defaults? As any user can execute that, normal 
users can be tricked to execute this, hanging the system. I think that 
preventing this per default is a good thing :) Just a thought.

Note You need to log in before you can comment on or make changes to this bug.