From: Bo Yang on 1 Dec 2009 23:55 On 12ÔÂ1ÈÕ, ÏÂÎç9ʱ47·Ö, p...(a)informatimago.com (Pascal J. Bourguignon) wrote: > Bo Yang <struggl...(a)gmail.com> writes: > > Hi, > > One of my process changes to state 'D' which means uninterrupt > > sleep. I want to check out in which system call this process stay. > > But I can't strace it because the strace program will be 'D' too. And > > I can't use gdb to attach it, because an uninterrupt sleeping process > > can't deal with any signal. How can check out the system call my > > process sleep in? > > I am using Linux system, thanks! > > Launch again the process with strace. If I strace attach to the process, the strace process will be 'D' as well. > Otherwise, the WCHAN may give a hint, but it's probable that several > syscalls will lead to the same address here. Thanks a lot. Regards! Bo
From: Pascal J. Bourguignon on 2 Dec 2009 06:07 Bo Yang <struggleyb(a)gmail.com> writes: > On 12æ1æ¥, ä¸å9æ¶47å, p...(a)informatimago.com (Pascal J. Bourguignon) > wrote: >> Bo Yang <struggl...(a)gmail.com> writes: >> > Hi, >> > One of my process changes to state 'D' which means uninterrupt >> > sleep. I want to check out in which system call this process stay. >> > But I can't strace it because the strace program will be 'D' too. And >> > I can't use gdb to attach it, because an uninterrupt sleeping process >> > can't deal with any signal. How can check out the system call my >> > process sleep in? >> > I am using Linux system, thanks! >> >> Launch again the process with strace. > > If I strace attach to the process, the strace process will be 'D' as > well. Yes, but it should have dumped the syscall before. (Or perhaps it's missing a flush?) >> Otherwise, the WCHAN may give a hint, but it's probable that several >> syscalls will lead to the same address here. > > Thanks a lot. > > Regards! > Bo -- __Pascal Bourguignon__
From: Deacon on 4 Dec 2009 07:43 On Dec 1, 2:12 pm, Bo Yang <struggl...(a)gmail.com> wrote: > Hi, > One of my process changes to state 'D' which means uninterrupt > sleep. I want to check out in which system call this process stay. > But I can't strace it because the strace program will be 'D' too. And > I can't use gdb to attach it, because an uninterrupt sleeping process > can't deal with any signal. How can check out the system call my > process sleep in? > I am using Linux system, thanks! > Regards! > Bo what is the systemological methodology you are applying?don't be afraid to reply
First
|
Prev
|
Pages: 1 2 Prev: quick sort and O(nlgn) worst case bound Next: Why C for operating systems |