From: Jakub Kicinski <kuba@kernel.org>
To: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Shuah Khan <shuah@kernel.org>,
Shuah Khan <skhan@linuxfoundation.org>,
"David S. Miller" <davem@davemloft.net>,
Paolo Abeni <pabeni@redhat.com>,
Linux-Next Mailing List <linux-next@vger.kernel.org>,
"open list:KERNEL SELFTEST FRAMEWORK
<linux-kselftest@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>,
lkft-triage@lists.linaro.org, Netdev" <netdev@vger.kernel.org>,
Anders Roxell <anders.roxell@linaro.org>
Subject: Re: kselftest: net: tls: hangs
Date: Thu, 31 Mar 2022 11:54:10 -0700 [thread overview]
Message-ID: <20220331115410.34156bb9@kernel.org> (raw)
In-Reply-To: <CA+G9fYsX=NfUoSXHGEqo_pPqrZ7dxt8+iiQMiAm4dEemNtwq1g@mail.gmail.com>
On Thu, 31 Mar 2022 13:18:56 +0530 Naresh Kamboju wrote:
> Hi Jakub,
>
> > Can you check where the process is stuck and it's state?
> > /proc/$pid/stack and run that thru scripts/decode_stacktrace
> >
>
> Steps to reproduce:
> - cd /opt/kselftests/default-in-kernel/net
> - ./tls &
> - tests_pid=$!
> - echo $tests_pid
> - sleep 90
> - cat /proc/$tests_pid/stack | tee tests_pid_stack.log
> - cat tests_pid_stack.log
>
> [<0>] do_wait+0x191/0x3a0
> [<0>] kernel_wait4+0xaf/0x160
> [<0>] __do_sys_wait4+0x85/0x90
> [<0>] __x64_sys_wait4+0x1c/0x20
> [<0>] do_syscall_64+0x5c/0x80
> [<0>] entry_SYSCALL_64_after_hwframe+0x44/0xae
The kernel test harness runs the tests in a separate process,
this is the stack trace for the main process. We'll need a stack trace
for the child, so:
main_pid=$!
tests_pid=$(pgrep -P $main_pid)
Also since each test runs in a separate child, we can try to catch the
one that got stuck for longer than 30 sec:
pp=$(pgrep -P $main_pid)
while true; do
sleep 30
p=$(pgrep -P $main_pid)
if [ $p != $pp ]; then
pp=$p
echo "New PID $p, continue waiting..."
continue
fi
echo "PID $p is stuck!"
cat /proc/$p/stack
done
> Detail test log can be found here in this link [1]
>
> I do not see any output from
> ./scripts/decode_stacktrace.sh stack-dump.txt
>
>
> - Naresh
>
> [1] https://lkft.validation.linaro.org/scheduler/job/4812800#L2256
prev parent reply other threads:[~2022-03-31 18:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 7:40 kselftest: net: tls: hangs Naresh Kamboju
2022-03-25 22:13 ` Shuah Khan
2022-03-25 23:12 ` Jakub Kicinski
2022-03-25 23:34 ` Shuah Khan
2022-03-29 14:49 ` Naresh Kamboju
[not found] ` <20220329102649.507bbf2a@kernel.org>
2022-03-29 17:46 ` Naresh Kamboju
2022-03-29 17:56 ` Jakub Kicinski
2022-03-31 7:48 ` Naresh Kamboju
2022-03-31 18:54 ` Jakub Kicinski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220331115410.34156bb9@kernel.org \
--to=kuba@kernel.org \
--cc=anders.roxell@linaro.org \
--cc=davem@davemloft.net \
--cc=linux-next@vger.kernel.org \
--cc=naresh.kamboju@linaro.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.