From: Bo Yang on
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
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
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