Live data from Hacker News

I think I found a Mac kernel bug (2018)

jvns.ca

1–10 of 71 posts

Re: I think I found a Mac kernel bug (2018)

#6
Coincidentally, I also stumbled upon a way to make the kernel of Apple Silicon Macs panic and restart while developing the https://lowtechguys.com website.

I distilled the problem in a repo so it can be reproduced with a single command: https://github.com/alin23/m1-panic

I found it while on Monterey and reported it 2 times through Feedback Assistant, but it still happens on Ventura.

NOTE: Don't try it without saving all your work, it has a very high chance of restarting your computer forcefully.

Re: I think I found a Mac kernel bug (2018)

#7
post #6

Coincidentally, I also stumbled upon a way to make the kernel of Apple Silicon Macs panic and restart while developing the https://lowtechguys.com website. I distilled the problem in a repo so it can be reproduced with a single command: https://github.com/alin23/m1-panic I found it while on Monterey and reported it 2 times through Feedback Assistant, but it still happens on Ventura. NOTE: Don't try it without saving…

Do you know what the underlying problematic instruction sequence is? Or the precise location where it halts?

Re: I think I found a Mac kernel bug (2018)

#8
post #6

Coincidentally, I also stumbled upon a way to make the kernel of Apple Silicon Macs panic and restart while developing the https://lowtechguys.com website. I distilled the problem in a repo so it can be reproduced with a single command: https://github.com/alin23/m1-panic I found it while on Monterey and reported it 2 times through Feedback Assistant, but it still happens on Ventura. NOTE: Don't try it without saving…

Can you put the panic log text into the repo as well?

Re: I think I found a Mac kernel bug (2018)

#10
Not surprised. I wrote some kqueue code in C once that not only froze the Mac Kernel. It caused the entire computer to crash. I reported the issue to Apple, and never really heard back. They don't really care, as long as all the mac store apps work, in my experience.

This was one call to kqueue with incorrect (but not particularly malicious, just normal C silliness) arguments, and boom!

Post reply on HN