Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS Sequoia 15.1 use bind service occur reboot #196028

Open
4 tasks done
zouchengli opened this issue Oct 30, 2024 · 20 comments
Open
4 tasks done

MacOS Sequoia 15.1 use bind service occur reboot #196028

zouchengli opened this issue Oct 30, 2024 · 20 comments
Labels
bug Reproducible Homebrew/homebrew-core bug upstream issue An upstream issue report is needed

Comments

@zouchengli
Copy link

zouchengli commented Oct 30, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

❯ brew info bind
==> bind: stable 9.20.3 (bottled), HEAD
Implementation of the DNS protocols
https://www.isc.org/bind/
Installed
/opt/homebrew/Cellar/bind/9.20.3 (316 files, 8.4MB) *
  Poured from bottle using the formulae.brew.sh API on 2024-10-29 at 16:45:12
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/b/bind.rb
License: MPL-2.0
==> Dependencies
Build: pkg-config ✔
Required: jemalloc ✔, json-c ✔, libidn2 ✔, libnghttp2 ✔, libuv ✔, openssl@3 ✔, readline ✔, userspace-rcu ✔
==> Options
--HEAD
	Install HEAD version
==> Caveats
To start bind now and restart at startup:
  sudo brew services start bind
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/bind/sbin/named -f -L /opt/homebrew/var/log/named/named.log
==> Analytics
install: 1,513 (30 days), 4,679 (90 days), 16,164 (365 days)
install-on-request: 1,420 (30 days), 4,377 (90 days), 14,784 (365 days)
build-error: 8 (30 days)

Verification

What were you trying to do (and why)?

I want use dns server test
Because install bind service support my test

What happened (include all command output)?

Execute domain resolve command:
ping github.com
Occur Immediately reboot
image

What did you expect to happen?

image

Step-by-step reproduction instructions (by running brew commands)

brew install bind
sudo brew services start bind
sudo networksetup -setdnsservers Ethernet 127.0.0.1 
ping github.com
image
@zouchengli zouchengli added the bug Reproducible Homebrew/homebrew-core bug label Oct 30, 2024
@zouchengli zouchengli changed the title MacOS 15.1 use bind service occur reboot MacOS Sequoia 15.1 use bind service occur reboot Oct 30, 2024
@carlocab
Copy link
Member

What is the output of brew config and brew doctor?

@zouchengli
Copy link
Author

What is the output of brew config and brew doctor?

image

@carlocab
Copy link
Member

Please don't use screenshots when sharing the output of commands in your terminal. They're often difficult to read and impossible to reuse (e.g. when looking up error messages). They also typically can't be parsed by screen readers. Instead, copy the text here and wrap them in three back-ticks (```) on the line before and on the line after to format them properly.

@carlocab
Copy link
Member

Does it behave the same way when you're not running in a VM?

@zouchengli
Copy link
Author

Does it behave the same way when you're not running in a VM?

same

@zouchengli
Copy link
Author

Please don't use screenshots when sharing the output of commands in your terminal. They're often difficult to read and impossible to reuse (e.g. when looking up error messages). They also typically can't be parsed by screen readers. Instead, copy the text here and wrap them in three back-ticks (```) on the line before and on the line after to format them properly.

chengli.zou@clz-vm-m1-max ~ % brew config
HOMEBREW_VERSION: 4.4.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 91f3671b16fe62121364c465c14e0dfd088d7ead
Last commit: 3 days ago
Core tap JSON: 30 Oct 01:44 UTC
Core cask tap JSON: 30 Oct 01:44 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 3.3.5 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.5/bin/ruby
CPU: quad-core 64-bit dunno
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: N/A
Rosetta 2: false
chengli.zou@clz-vm-m1-max ~ % brew doctor
Your system is ready to brew.
chengli.zou@clz-vm-m1-max ~ % 

@ZhongRuoyu
Copy link
Member

This problem doesn't seem specific to macOS 15.1. There are other reports from macOS 14.7 and 15.0:

@zouchengli
Copy link
Author

This problem doesn't seem specific to macOS 15.1. There are other reports from macOS 14.7 and 15.0:

It seems so, because I have been using this service for a long time, and it seems that this problem has appeared since the new system was launched this year. So has no one fixed this problem yet? I would like to ask whether this problem is a problem with the service itself or a problem with the system?

@ZhongRuoyu
Copy link
Member

ZhongRuoyu commented Oct 30, 2024

It should be a kernel problem because a user space program should not cause a kernel panic like this.

I wasn't able to reproduce this on x86_64 macOS 15.1, so this may be specific to Apple Silicon. I encourage you to report this to Apple (via the "Problem Report for macOS" window in the screenshot you provided at the beginning), with the commands to reproduce this.

@zouchengli
Copy link
Author

It should be a kernel problem because a user space program should not cause a kernel panic like this.

I wasn't able to reproduce this on x86_64 macOS 15.1, so this may be specific to Apple Silicon. I encourage you to report this to Apple (via the "Problem Report for macOS" window in the screenshot you provided at the beginning), with the commands to reproduce this.

image OK,I have given feedback to Apple, but they may not reply or accept it.

@tsborland
Copy link

I was experiencing the same issue today after doing some updating.

After some testing, it looks like reverting libuv from 1.49.2 to the previously working version 1.48.0 allows BIND to start for me at latest release (9.20.3)

~ % brew outdated
libuv (1.48.0) < 1.49.2 [pinned at 1.48.0]

I was able to do this by grabbing the libuv.rb formula file and installing manually:

~ % curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/aaf5fb716c35c00f77901cded781c746bf108ce2/Formula/lib/libuv.rb
~ % brew reinstall ~/libuv.rb

I then pinned it to avoid breaking things again.

I will likely do further testing Monday to see if 1.49.0 or 1.49.1 is stable as well.

@zouchengli
Copy link
Author

zouchengli commented Nov 1, 2024

I was experiencing the same issue today after doing some updating.

After some testing, it looks like reverting libuv from 1.49.2 to the previously working version 1.48.0 allows BIND to start for me at latest release (9.20.3)

~ % brew outdated
libuv (1.48.0) < 1.49.2 [pinned at 1.48.0]

I was able to do this by grabbing the libuv.rb formula file and installing manually:

~ % curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/aaf5fb716c35c00f77901cded781c746bf108ce2/Formula/lib/libuv.rb
~ % brew reinstall ~/libuv.rb

I then pinned it to avoid breaking things again.

I will likely do further testing Monday to see if 1.49.0 or 1.49.1 is stable as well.

Thank you very much,It's worked for me.

@cho-m cho-m added the upstream issue An upstream issue report is needed label Nov 2, 2024
@jameslbrown
Copy link

sudo brew services stop bind
brew uninstall bind
brew install bind
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/aaf5fb716c35c00f77901cded781c746bf108ce2/Formula/lib/libuv.rb
brew reinstall ~/libuv.rb
brew pin libuv
sudo brew services start bind

worked

@jameslbrown
Copy link

jameslbrown commented Nov 7, 2024

Update:
Computer no longer reboots!

Unfortunately after a while named crashes.

PastedGraphic-1

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x001c000000200070 -> 0x0000000000200070 (possible pointer authentication failure)
Exception Codes:       0x0000000000000001, 0x001c000000200070

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [55960]

VM Region Info: 0x200070 is not in any region.  Bytes before following region: 4375265168
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      104e94000-104eec000    [  352K] r-x/r-x SM=COW  /opt/homebrew/*/named

Application Specific Information:
crashed on child side of fork pre-exec

@carlocab
Copy link
Member

carlocab commented Nov 7, 2024

After some testing, it looks like reverting libuv from 1.49.2 to the previously working version 1.48.0 allows BIND to start for me at latest release (9.20.3)

Please report this to the bind and/or libuv projects so it can be fixed.

@jameslbrown
Copy link

jameslbrown commented Nov 11, 2024

Please report this to the bind and/or libuv projects so it can be fixed.

ISC (developers of BIND) had been in contact with Apple.

You can also file FeedBack to them:

https://www.apple.com/feedback/macos/

or better:
https://developer.apple.com/bug-reporting/

@carlocab
Copy link
Member

Thanks! Is the libuv project aware of this issue? It seems to affect them too.

@jameslbrown
Copy link

Thanks! Is the libuv project aware of this issue? It seems to affect them too.

Not that I know of.

@tsborland
Copy link

tsborland commented Nov 11, 2024 via email

@carlocab
Copy link
Member

I opened libuv/libuv#4594

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug upstream issue An upstream issue report is needed
Projects
None yet
Development

No branches or pull requests

6 participants