Skip to content

ping:7: fork failed: resource temporarily unavailable #32

@BirkhoffLee

Description

@BirkhoffLee

Running on macOS Big Sur 11.6, Darwin BirkhoffMBPR 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64 i386 MacBookPro13,2 Darwin, I get the following:

$ wget https://raw.githubusercontent.com/denilsonsa/prettyping/master/prettyping
--2021-11-07 14:56:02--  https://raw.githubusercontent.com/denilsonsa/prettyping/master/prettyping
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23396 (23K) [text/plain]
Saving to: ‘prettyping’

prettyping                       100%[========================================================>]  22.85K  12.8KB/s    in 1.8s

2021-11-07 14:56:05 (12.8 KB/s) - ‘prettyping’ saved [23396/23396]

$ chmod +x prettyping

$ ./prettyping 1.1.1.1
0 ▁ 10 ▂ 20 ▃ 30 ▄ 40 ▅ 50 ▆ 60 ▇ 70 █ 80 ▁ 90 ▂ 100 ▃ 110 ▄ 120 ▅ 130 ▆ 140 ▇ 150 █ 160 ▁ 170 ▂ 180 ▃ 190 ▄ 200 ▅ 210 ▆ 220 ▇
230 █ ∞
0 ▁ 10 ▂ 20 ▃ 30 ▄ 40 ▅ 50 ▆ 60 ▇ 70 █ 80 ▁ 90 ▂ 100 ▃ 110 ▄ 120 ▅ 130 ▆ 140 ▇ 150 █ 160 ▁ 170 ▂ 180 ▃ 190 ▄ 200 ▅ 210 ▆ 220 ▇ 230 █ ∞
Last message repeated 2 times.
Last message repeated 2 times.
Last message repeated 3 times.
Last message repeated 3 times.
Last message repeated 2 times.
Last message repeated 2 times.
Last message repeated 3 times.
Last message repeated 2 times.
Last message repeated 3 times.
Last message repeated 3 times.
Last message repeated 2 times.
Last message repeated 3 times.
Last message repeated 2 times.
Last message repeated 3 times.
Last message repeated 2 times.
Last message repeated 3 times.
Last message repeated 2 times.
Last message repeated 2 times.
Last message repeated 3 times.
sh: fork: Resource temporarily unavailable
0 ▁ 10 ▂ 20 ▃ 30 ▄ 40 ▅ 50 ▆ 60 ▇ 70 █ 80 ▁ 90 ▂ 100 ▃ 110 ▄ 120 ▅ 130 ▆ 140 ▇ 150 █ 160 ▁ 170 ▂ 180 ▃ 190 ▄ 200 ▅ 210 ▆ 220 ▇ 230 █ ∞
ping:7: fork failed: resource temporarily unavailable

$ /sbin/ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=54 time=55.997 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=54 time=45.403 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=54 time=52.760 ms
^C
--- 1.1.1.1 ping statistics ---
4 packets transmitted, 3 packets received, 25.0% packet loss
round-trip min/avg/max/stddev = 45.403/51.387/55.997/4.433 ms

Looks like prettyping is exhausting shell resources somehow, while the stock ping utility functions normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions