Hi. I'm trying to solve an issue on my computer related to shutdown. Here is a brief description:

The shutdown always hangs after "sending all processes the TERM signal..."

I've inserted a strace at killall5 - 15 in the /etc/halt script

The system hangs with this line:
mlockall(MCL_CURRENTIMCL_FUTURE

I write here a couple of lines before this one:
rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTART}, {SIG_DFL, [], 0}, = 0
rt_sigaction(SIGSTOP, {SIG_IGN, [STOP], SA_RESTART}, {SIG_DFL, [], 0}, = -1 EINVAL (Invalid argument)
rt_sigaction(SIGKILL, {SIG_IGN, [KILL], SA_RESTART}, {SIG_DFL, [], 0}, = -1 EINVAL (Invalid argument)


This happens even using /sbin/halt or shutdown commands.

Note that using these scripts, the system hangs in different points of the trace above, such as opening libc.

How could I try to debug the issue?