Skip to content

init script is hanging in NFS write #484

@xudifsd

Description

@xudifsd
root@dltsw7be500001T:/tmp/sample_repo_files# pstree -p
bash(1)---bash(10)---bash(1054)
root@dltsw7be500001T:/tmp/sample_repo_files# ps aux | cat
USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root          1  0.0  0.0  19040  3968 ?        Ss   01:35   0:00 bash /pod/scripts/bootstrap.sh
root         10  0.0  0.0  19040  3936 ?        S    01:35   0:00 bash /pod/scripts/init_user.sh
root       1054  0.0  0.0  19040  3560 ?        D    01:35   0:00 bash /pod/scripts/init_user.sh
root       5551  0.0  0.0  19264  4348 pts/0    Ss   08:13   0:00 bash
root       6140  0.0  0.0  34516  2956 pts/0    R+   08:16   0:00 ps aux
root       6141  0.0  0.0   4624   868 pts/0    S+   08:16   0:00 cat
root@dltsw7be500001T:/tmp/sample_repo_files# cat /proc/1054/stack
[<0>] nfs_wait_bit_killable+0x24/0xa0 [nfs]
[<0>] nfs4_wait_clnt_recover+0x67/0x80 [nfsv4]
[<0>] nfs4_client_recover_expired_lease+0x1d/0x60 [nfsv4]
[<0>] nfs4_do_open+0xf5/0x690 [nfsv4]
[<0>] nfs4_atomic_open+0xea/0x100 [nfsv4]
[<0>] nfs4_file_open+0x113/0x280 [nfsv4]
[<0>] do_dentry_open+0x1c2/0x310
[<0>] vfs_open+0x4f/0x80
[<0>] path_openat+0x676/0x1780
[<0>] do_filp_open+0x9b/0x110
[<0>] do_sys_open+0x1bb/0x2c0
[<0>] __x64_sys_open+0x21/0x30
[<0>] do_syscall_64+0x6a/0x1a0
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[<0>] 0xffffffffffffffff

Should have some way to prevent the process from hanging indefinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions