logoalt Hacker News

A macOS bug that causes TCP networking to stop working after 49.7 days

112 pointsby RyanZhuuuuyesterday at 8:20 PM84 commentsview on HN

Comments

EdNuttingyesterday at 9:22 PM

I got tired of the AI writing before finding out if they even attempted to contact Apple about this issue? Does anyone know?

Also, massively over-dramatised. Yes, a bug worth finding and knowing about, but it’s not a time bomb - very few users are likely to be affected by this.

Knowing the nature of OS kernels, I’m guessing even just putting a Mac laptop to sleep would be enough to avoid this issue as it would reset the TCP stack - which may be why some people are reporting much longer uptimes without hitting this problem, since (iirc) uptime doesn’t reset on Macs just for a sleep? Only for a full reboot?

Anyway, all in all, yeah hopefully Apple fix this but it’s not something anyone needs to panic about.

show 3 replies
tjohnsyesterday at 9:18 PM

Does anybody else find these AI-authored blog posts difficult to read? Something about the writing style and structure just feels unnatural, it's hard put my finger on it.

At the very least, the writing takes way too long to get to a point.

show 2 replies
mcculleyyesterday at 9:11 PM

> It will not be caught in development testing — who runs a test for 50 days?

You don't have to run the system for 50 days. You can simulate the environment and tick the clock faster. Many high reliability systems are tested this way.

show 4 replies
netcoyoteyesterday at 11:34 PM

This type of problem plagues all sorts of software. Having experienced this type of problem before, for Guild Wars game servers -- which run deterministic game instances that live for long periods of time -- we initialized a per-game-context variable that gets added to Windows GetTickCount() to a value such that the result was either 5 seconds before 0x7fff_ffff ticks, or 5 seconds before 0xffff_ffff ticks, so that any weird time-computation overflow errors would be likely to show up immediately.

otterleyyesterday at 8:47 PM

Sounds like it affects every open TCP connection, not just OpenClaw. (It's pretty rare for a TCP connection to live that long, though.)

show 2 replies
justinfrankelyesterday at 9:19 PM

have multiple macOS machines with 600-1000+ day uptimes, which do TCP connections every minute or so at a minimum, they are still expiring their TIME_WAIT connections as normal.

these kernel versions:

Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_ARM64_T8101 arm64

Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64 x86_64

so... wonder what that's about?

show 2 replies
JensRantilyesterday at 10:54 PM

This reminds me of the Linux kernel scheduler bug that kicked in after 208 days: https://www.claudiokuenzler.com/blog/247/linux-virtual-serve...

show 1 reply
gghootchyesterday at 8:58 PM

What does this have to do with OpenClaw exactly?

loloquwowndueoyesterday at 8:36 PM

lol reminds me of the windows 95 crash bug after 49.7 days. Have we learned nothing. https://pipiscrew.github.io/posts/why-window/

show 4 replies
beanjuiceIIyesterday at 8:38 PM

i'm on sequoia M1 laptop with uptime 16:38 up 228 days, 21:03, 1 user, load averages: 6.14 5.93 5.64

guess i'm marked safe!

bawolffyesterday at 10:24 PM

Wasn't windows 95 famous for having an issue like this?

show 1 reply
dvhyesterday at 8:50 PM

Exactly like arduino

daveorzachyesterday at 8:59 PM

If you want to see exactly when your machine will hit this, I threw together a fish shell function that calculates the precise timestamp, mostly vibe coded.

calc_tcp_overflow_time.fish: https://gist.github.com/daveorzach/64538f82a89fa24e5d134557c...

monitor_tcp_time_wait.fish: https://gist.github.com/daveorzach/0964a7a67c08c50043ff707cf...

apatheticonionyesterday at 9:48 PM

Ignoring the AI article contents.

God I wish Apple offered first party support for Linux on Mac computers.

Philpaxyesterday at 9:03 PM

Ctrl+F "OpenClaw". No results. Que?

throw03172019yesterday at 8:48 PM

I only have 11 days left until my machine crashes and I lose all of my tabs.

MatMerceryesterday at 9:02 PM

This made me remember some folks that are "I never reboot my MacOS and it's fine!". Yeah probably it is but I'll never trust any computer without periodic reboots lol.

show 2 replies
fortran77yesterday at 10:09 PM

Nobody keeps their Macs running for more than 49.7 days? We have Windows Servers here (with long-term TCP/IP connections) that are only rebooted every 6 months to apply patches.

nalekberovyesterday at 10:15 PM

I rarely restart my Mac mini, and I have never had such an issue beyond my internet provider suddenly stopping properly working in the middle of the night.

revv00yesterday at 11:13 PM

Orz! A kindly reminder for rebooting.

WesolyKubeczekyesterday at 9:00 PM

In case of OpenClaw, this is a feature.

show 1 reply
cute_boiyesterday at 9:04 PM

too much words and text for simple thing..... probably written by openclaw

jijjiyesterday at 9:08 PM

I thought Alan Cox fixed all the TCP IP bugs in the early 1990s lol

show 1 reply
awithrowyesterday at 9:11 PM

A ticking time bomb? What an overly dramatic way to talk about a bug that requires a reboot. Its not even a hard crash.