I will attach, the Code file and the sTrace logs.

It basically tries to run a shell command via golang.

When I try to run it in ESXI-670, it errors with:

program is running 
fork/exec /bin/sh: no space left on device

Here is what I have tried:

   1. I have tried doing this with cmd.Output().
   2. I have tried building using CGO_ENABLED=1
   3. In the code above, I have tried to run by redirecting os.Stdout.

This code works and provides desired output in all locations, other than 
ESXI. I am using ESXI-6.7.0.

Please help me in identifying the cause.

   1. I am certain there is space left on device

This was originally posted on StackOverflow - linux - Go binary, that tries 
to run shell command in ESXI environment is failing - Stack Overflow 
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing>

I am grateful for the insight of kostix and larsks
The conversation is as follows:

   - Does /bin/sh -c 'ls -l' work OK when run the same way your Go program 
   runs? I'm asking because problems like this has to be dissected. 
   – kostix <https://stackoverflow.com/users/720999/kostix>
    2 hours ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127709936_72287269>
   - 
   @kostix , yes the command you mentioned works as it should. Thank you 
   for looking into it. 
   – Fawn Mohra <https://stackoverflow.com/users/19144035/fawn-mohra>
    2 hours ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127710272_72287269>
       
   - 
   Do you have strace (manpage <https://manpages.debian.org/1/strace>) 
   available in that environment? 
   – kostix <https://stackoverflow.com/users/720999/kostix>
    1 hour ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127711595_72287269>
   - 
   Yes, I do have strace in my environment. I have edited my Question with 
   strace dump. Thank you. 
   – Fawn Mohra <https://stackoverflow.com/users/19144035/fawn-mohra>
    1 hour ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127711687_72287269>
       
   - 1
   "I am certain there is space left on device": An ENOSPC error in 
   response to a clone() system call doesn't mean you have a full disk. There 
   are a number of documented reasons that clone() may fail with ENOSPC, as 
   described in the man page 
   <https://man7.org/linux/man-pages/man2/clone.2.html>, but it doesn't 
   look like you're hitting one of those. I would guess that you're hitting 
   some kind of resource limit, but I don't have an ESXI system on which to 
   test. 
   – larsks <https://stackoverflow.com/users/147356/larsks>
    55 mins ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127711941_72287269>
   - 
   Thank you @larsks, for looking into this. If this helps, I have the same 
   program in python and C++, and they both run without any issues in the same 
   environment. 
   – Fawn Mohra <https://stackoverflow.com/users/19144035/fawn-mohra>
    52 mins ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127711982_72287269>
      
   - 
   That's why SO is not fit for such kind of questions: they require 
   multiple backs-and-forth which is quite inconvenient to do using comments. 
   I would recommend to repost the question to the mailing list 
   <https://groups.google.com/g/golang-nuts> and add a summary of our 
   comment thread. I'd also recommend to retake the strace capture using 
   its -o command-line option so that its output is not intermixed with the Go 
   runtime's output—as it is in your comment. 
   – kostix <https://stackoverflow.com/users/720999/kostix>
    19 mins ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127712898_72287269>
   - 
   Basically, I'm with @larsks on this: the clone syscall on Linux 
   underlies fork, and a hunch is that the Go runtime performs the fork+exec 
   combo to run a child process using some setup which trips some limit on 
   EXSI. So it's a question for the devs to look into; may be it even warrants 
   filing a bug report. 
   – kostix <https://stackoverflow.com/users/720999/kostix>
    18 mins ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127712925_72287269>
   - 
   …and by the way, what kernel version is there in ESXI? I'm asking 
   because of this <https://github.com/golang/go/issues/21347>. 
   – kostix <https://stackoverflow.com/users/720999/kostix>
    15 mins ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127712981_72287269>
   - 
   @kostix, thank you for the guidance, I will do as you mentioned and post 
   it on the mailing list ESXI kernel version - command uname -a VMkernel 
   6.7.0 #1 SMP Release build-15160138 Nov 22 2019 20:49:31 x86_64 x86_64 
   x86_64 ESXi 
   – Fawn Mohra <https://stackoverflow.com/users/19144035/fawn-mohra>
    11 mins ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127713096_72287269>
      
   - 
   Oh, looks like VMKernel of ESXi is not based on Linux; it merely 
   provides compatibility for the drivers and implements POSIX syscalls. Hence 
   the situation is even more interesting. If/when you post a message to the 
   mailing list, please post a link here. 
   – kostix <https://stackoverflow.com/users/720999/kostix>
    48 secs ago 
   
<https://stackoverflow.com/questions/72287269/go-binary-that-tries-to-run-shell-command-in-esxi-environment-is-failing#comment127713406_72287269>
   

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a754e9e8-7bac-4e04-9eaf-08e5c9dc536fn%40googlegroups.com.
execve("./hello-latest", ["./hello-latest"], [/* 19 vars */]) = 0
brk(0)                                  = 0xd4af079000
uname({sys="VMkernel", node="redactedSensitiveInfo", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or 
directory)
open("/lib64/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such 
file or directory)
stat("/lib64/tls", 0x30f6e46b398)       = -1 ENOENT (No such file or directory)
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pn\0\0\0\0\0\0"..., 832) 
= 832
fstat(3, {st_mode=S_IFREG|0555, st_size=136524, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd4ef079000
mmap(NULL, 2212896, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_DENYWRITE, 3, 0) = 
0xd4ef07a000
mmap(0xd4ef07a000, 98304, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xd4ef07a000
mmap(0xd4ef291000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0xd4ef291000
mmap(0xd4ef293000, 13344, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd4ef293000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\32\2\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=2001344, ...}) = 0
mmap(NULL, 3861664, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_DENYWRITE, 3, 0) = 
0xd4ef297000
mmap(0xd4ef297000, 1724416, PROT_READ|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0xd4ef297000
mmap(0xd4ef63c000, 24576, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a5000) = 0xd4ef63c000
mmap(0xd4ef642000, 15520, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd4ef642000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd4ef646000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd4ef647000
arch_prctl(ARCH_SET_FS, 0xd4ef646b40)   = 0
mprotect(0xd4ef63c000, 16384, PROT_READ) = 0
mprotect(0xd4ef291000, 4096, PROT_READ) = 0
mprotect(0x546000, 4096, PROT_READ)     = 0
mprotect(0x7b5000, 4096, PROT_READ)     = 0
set_tid_address(0xd4ef646e10)           = 3082394
set_robust_list(0xd4ef646e20, 0x18)     = 0
futex(0x30f6e46bc5c, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x30f6e46bc5c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 
d4ef646b40) = -1 ENOSYS (Function not implemented)
rt_sigaction(SIGRTMIN, {0xd4ef080870, [], SA_RESTORER|SA_SIGINFO, 
0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xd4ef080900, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 
0xd4ef089db0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=512*1024, rlim_max=512*1024}) = 0
brk(0)                                  = 0xd4af079000
brk(0xd4af09a000)                       = 0xd4af09a000
brk(0)                                  = 0xd4af09a000
sched_getaffinity(0, 8192, {ffffffffffffffff, ff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0, 0, 0, 0}) = 128
openat(AT_FDCWD, "/sys/kernel/mm/transparent_hugepage/hpage_pmd_size", 
O_RDONLY) = -1 ENOENT (No such file or directory)
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd4ef648000
mmap(NULL, 131072, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xd4ef688000
mmap(NULL, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xd4ef6a8000
mmap(NULL, 8388608, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xd4ef7a8000
mmap(NULL, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xd4effa8000
mmap(NULL, 536870912, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd4f3fa8000
mmap(0xc000000000, 67108864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xc000000000
mmap(NULL, 33554432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xc004000000
mmap(NULL, 2165776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xc006000000
mmap(0xc000000000, 4194304, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xc000000000
mmap(0xd4ef688000, 131072, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd4ef688000
mmap(0xd4ef728000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd4ef728000
mmap(0xd4efbae000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd4efbae000
mmap(0xd4f1fd8000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd4f1fd8000
mmap(0xd504128000, 4096, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd504128000
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd513fa8000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd5140a8000
mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd5140b8000
clock_gettime(CLOCK_MONOTONIC, {8463479, 565471862}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565517705}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565556920}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565597481}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565636011}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565676746}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565716886}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565757046}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565797440}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565837595}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565877660}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565917251}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565957756}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 565998953}) = 0
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 566413574}) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 566469537}) = 0
sigaltstack(NULL, {ss_sp=0, ss_flags=SS_DISABLE, ss_size=0}) = 0
sigaltstack({ss_sp=0xc000002000, ss_flags=0, ss_size=32768}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettid()                                = 3082394
rt_sigaction(SIGHUP, NULL, {SIG_DFL, [HUP], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGINT, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGILL, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGILL, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGTRAP, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTRAP, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGABRT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGABRT, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGBUS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGBUS, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGFPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGFPE, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGUSR1, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR1, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGSEGV, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGUSR2, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGUSR2, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGALRM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGALRM, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGSTKFLT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSTKFLT, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGCHLD, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGURG, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGURG, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGXCPU, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXCPU, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGXFSZ, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGXFSZ, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGVTALRM, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGVTALRM, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGPROF, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPROF, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGWINCH, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGWINCH, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGIO, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGIO, {0x461ee0, ~[], SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 
0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGPWR, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPWR, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGSYS, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSYS, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRTMIN, NULL, {0xd4ef080870, [], SA_SIGINFO}, 8) = 0
rt_sigaction(SIGRTMIN, NULL, {0xd4ef080870, [], SA_SIGINFO}, 8) = 0
rt_sigaction(SIGRTMIN, {0xd4ef080870, [], SA_STACK|SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, NULL, {0xd4ef080900, [], SA_SIGINFO}, 8) = 0
rt_sigaction(SIGRT_1, NULL, {0xd4ef080900, [], SA_SIGINFO}, 8) = 0
rt_sigaction(SIGRT_1, {0xd4ef080900, [], SA_STACK|SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_2, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_3, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_3, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_4, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_4, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_5, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_5, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_6, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_6, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_7, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_7, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_8, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_8, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_9, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_9, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_10, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_10, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_11, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_11, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_12, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_12, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_13, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_13, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_14, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_14, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_15, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_15, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_16, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_16, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_17, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_17, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_18, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_18, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_19, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_19, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_20, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_20, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_21, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_21, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_22, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_22, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_23, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_23, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_24, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_24, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_25, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_25, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_26, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_26, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_27, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_27, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_28, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_28, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_29, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_29, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_30, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_30, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_31, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_31, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigaction(SIGRT_32, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGRT_32, {0x461ee0, ~[], 
SA_RESTORER|SA_STACK|SA_RESTART|SA_SIGINFO, 0xd4ef089db0}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, 
-1, 0) = 0xd5140c8000
mprotect(0xd5140c8000, 4096, PROT_NONE) = 0
clone(child_stack=0xd514147ff0, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0xd5141489d0, tls=0xd514148700, child_tidptr=0xd5141489d0) = 
3082395
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 574927083}) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, 
-1, 0) = 0xd514149000
mprotect(0xd514149000, 4096, PROT_NONE) = 0
clone(child_stack=0xd5141c8ff0, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0xd5141c99d0, tls=0xd5141c9700, child_tidptr=0xd5141c99d0) = 
3082396
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, 
-1, 0) = 0xd51420a000
mprotect(0xd51420a000, 4096, PROT_NONE) = 0
clone(child_stack=0xd514289ff0, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0xd51428a9d0, tls=0xd51428a700, child_tidptr=0xd51428a9d0) = 
3082398
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 576018808}) = 0
futex(0xc0000fc058, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x561d70, FUTEX_WAIT_PRIVATE, 0, NULL) = -1 EAGAIN (Resource temporarily 
unavailable)
clock_gettime(CLOCK_MONOTONIC, {8463479, 576165088}) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, 
-1, 0) = 0xd51430c000
mprotect(0xd51430c000, 4096, PROT_NONE) = 0
clone(child_stack=0xd51438bff0, 
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,
 parent_tidptr=0xd51438c9d0, tls=0xd51438c700, child_tidptr=0xd51438c9d0) = 
3082399
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 576907934}) = 0
fcntl(0, F_GETFL)                       = 0x102 (flags O_RDWR|O_NOCTTY)
mmap(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xd51438d000
futex(0xc000180150, FUTEX_WAKE_PRIVATE, 1) = 1
fcntl(1, F_GETFL)                       = 0x102 (flags O_RDWR|O_NOCTTY)
fcntl(2, F_GETFL)                       = 0x102 (flags O_RDWR|O_NOCTTY)
write(1, "program is running\n", 19)    = 19
pipe2([3, 4], O_CLOEXEC)                = 0
epoll_create1(O_CLOEXEC)                = 5
pipe2([6, 7], O_NONBLOCK|O_CLOEXEC)     = 0
epoll_ctl(5, EPOLL_CTL_ADD, 6, {EPOLLIN, {u32=5833584, u64=5833584}}) = 0
epoll_ctl(5, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLOUT|EPOLLET|0x2000, 
{u32=339294040, u64=915167328088}}) = -1 EINVAL (Invalid argument)
epoll_ctl(5, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLOUT|EPOLLET|0x2000, 
{u32=339294040, u64=915167328088}}) = -1 EINVAL (Invalid argument)
openat(AT_FDCWD, "/dev/null", O_RDONLY|O_CLOEXEC) = 8
epoll_ctl(5, EPOLL_CTL_ADD, 8, {EPOLLIN|EPOLLOUT|EPOLLET|0x2000, 
{u32=339294040, u64=915167328088}}) = -1 EINVAL (Invalid argument)
pipe2([9, 10], O_CLOEXEC)               = 0
getpid()                                = 3082394
rt_sigprocmask(SIG_SETMASK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, ~[], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_VM|CLONE_VFORK|SIGCHLD) = -1 ENOSPC (No space 
left on device)
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigreturn(0xc0000090f0)              = 0
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigreturn(0xc0000090f0)              = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 582622114}) = 0
close(9)                                = 0
clock_gettime(CLOCK_MONOTONIC, {8463479, 582688275}) = 0
futex(0x561d70, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ... exit status 2>

Attachment: golangEsxiShellRun.go
Description: Binary data

Reply via email to