[PLD 3.x (Th): Bug 94] New: test process hangs in sched_setaffinity()
btsadmin at pld-linux.org
btsadmin at pld-linux.org
Sat Feb 2 20:57:09 CET 2008
http://bugs.pld-linux.org/show_bug.cgi?id=94
Summary: test process hangs in sched_setaffinity()
Product: PLD 3.x (Th)
Version: unspecified
Platform: All
OS/Version: PLD Linux
Status: NEW
Severity: normal
Priority: P5
Component: Core system
AssignedTo: bugs at pld-linux.org
ReportedBy: arekm at pld-linux.org
CC: shadzik at pld-linux.org
Estimated Hours: 0.0
User-Agent: Opera/9.50 (X11; Linux i686; U; en)
Build Identifier: kernel-3:2.6.22.16-4.x86_64
Test process stucks in D state:
#include <stdio.h>
#include <sched.h>
int main( void )
{
cpu_set_t cpu;
int cpus = 0;
int ret;
ret = sched_getaffinity(getpid(), sizeof(cpu), &cpu);
printf( "cpus = %d, ret = %d\n", cpu, ret );
sched_setaffinity(getpid(), sizeof(cpu), &cpu);
printf( "ret = %d\n" );
return ret;
}
In
Feb 2 20:54:15 arm kernel: a.out D 0000000000000000 0 17966 1
(NOTLB)
Feb 2 20:54:15 arm kernel: ffff81002c915e68 0000000000000082 ffff810028b00358
0000000000000000
Feb 2 20:54:15 arm kernel: ffffffff80657780 ffffffff80657780 ffffffff806599e0
ffffffff80657780
Feb 2 20:54:15 arm kernel: ffffffff80657780 ffff81000100ea00 ffff81000100ea08
0000000000000000
Feb 2 20:54:15 arm kernel: Call Trace:
Feb 2 20:54:15 arm kernel: [<ffffffff8024f969>] remove_wait_queue+0x19/0x60
Feb 2 20:54:15 arm kernel: [<ffffffff804a1169>]
__mutex_lock_slowpath+0xa9/0x260
Feb 2 20:54:15 arm kernel: [<ffffffff80281434>] cpuset_cpus_allowed+0x14/0x50
Feb 2 20:54:15 arm kernel: [<ffffffff8028279f>]
cpuset_set_cpus_affinity+0x5f/0x80
Feb 2 20:54:15 arm kernel: [<ffffffff80231d4b>] sched_setaffinity+0x10b/0x130
Feb 2 20:54:15 arm kernel: [<ffffffff80231dad>]
sys_sched_setaffinity+0x3d/0x60
Feb 2 20:54:15 arm kernel: [<ffffffff8020a40c>] tracesys+0xdc/0xe1
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: http://bugs.pld-linux.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
More information about the pld-bugs
mailing list