ulimit -t doesn't work in Ubuntu 09.04 (beta) 2.6.28-11-generic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux |
Fix Released
|
Medium
|
|||
linux (Ubuntu) |
Fix Released
|
Medium
|
Manoj Iyer | ||
Jaunty |
Fix Released
|
Medium
|
Manoj Iyer |
Bug Description
ulimit -t doesn't work as expected in kernel 2.6.28.
I think it might be some bug imcompatability w/ kernel 2.6.28 --- I want to file a bug to kernel dev group but just want to check here first. Whenever I use kernel 2.6.28 (e.g., compile my own vanilla linux source), the problem occurs. To make sure that it isn't due to my own kernel compilation and settings, I tried on the latest Ubuntu version (Jaunty, beta) w/ kernel 2.6.28 default, problem occurs again (I didn't touch the kernel of Jaunty at all, it's the stock default one).
Everything seems fine w/ kernel 2.6.27 (e.g., Intrepid or Hardy) or lower. Also note that dash / bash doesn't seem to be the problem (i.e., ulimit should work w/ both dash and bash).
Below is an example to reproduce the bug.
file: ulimit_test.sh
#!/bin/bash
ulimit -t 1
perl -e 'while(true){}'
exit 0
sh ulimit_test.sh : expected: process is killed after 1 sec,
but w/ 2.6.28: it doesn't get killed at all -- loop forever.
Update: okay it is a kernel related bug -> http://
description: | updated |
tags: | added: 2.6.28 kernel ulimit |
description: | updated |
affects: | ubuntu → linux (Ubuntu) |
Changed in linux: | |
status: | Unknown → Fix Released |
Changed in linux (Ubuntu Jaunty): | |
assignee: | nobody → manjo |
Changed in linux (Ubuntu): | |
status: | Incomplete → Triaged |
Changed in linux (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in linux: | |
importance: | Unknown → Medium |
Hi,
Thanks for the reference to the patch upstream. I'm pasting the upstream git commit id below for the kernel team to reference. Unfortunately the kernel is currently frozen for the upcoming Jaunty release, but I'll nominate this for a Stable Release Update. Thanks.
ogasawara@ yoji:~/ linux-2. 6$ git log -p 37bebc70d7ad414 4c571d74500db3b b26ec0c0eb 4c571d74500db3b b26ec0c0eb
commit 37bebc70d7ad414
Author: Oleg Nesterov <email address hidden>
Date: Mon Mar 23 20:34:11 2009 +0100
posix timers: fix RLIMIT_CPU && fork()
See http:// bugzilla. kernel. org/show_ bug.cgi? id=12911