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

After installing Mac OS Monterey, pup won't run up anymore #166

Closed
jhoek opened this issue Oct 26, 2021 · 8 comments
Closed

After installing Mac OS Monterey, pup won't run up anymore #166

jhoek opened this issue Oct 26, 2021 · 8 comments

Comments

@jhoek
Copy link

jhoek commented Oct 26, 2021

Running any command (e.g. '<p>Oink</p>' | pup 'p text{}') from the terminal results in the following. Even "pup --version" fails. Am I right in assuming this is not so much a pup issue, as it is a go issue?

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x1165c74, 0x21)
	/usr/local/Cellar/go/1.9.2/libexec/src/runtime/panic.go:605 +0x95 fp=0x7ff7bfeff7d0 sp=0x7ff7bfeff7b0 pc=0x1027d65
runtime.goenvs()
	/usr/local/Cellar/go/1.9.2/libexec/src/runtime/os_darwin.go:108 +0x83 fp=0x7ff7bfeff800 sp=0x7ff7bfeff7d0 pc=0x1025603
runtime.schedinit()
	/usr/local/Cellar/go/1.9.2/libexec/src/runtime/proc.go:492 +0xa1 fp=0x7ff7bfeff840 sp=0x7ff7bfeff800 pc=0x102a741
runtime.rt0_go(0x7ff7bfeff870, 0x2, 0x7ff7bfeff870, 0x1000000, 0x2, 0x7ff7bfeff9d0, 0x7ff7bfeff9e3, 0x0, 0x7ff7bfeff9e5, 0x7ff7bfeffa01, ...)
	/usr/local/Cellar/go/1.9.2/libexec/src/runtime/asm_amd64.s:175 +0x1eb fp=0x7ff7bfeff848 sp=0x7ff7bfeff840 pc=0x104ea8b
@SuperSandro2000
Copy link

1.9.2

That is the issue. Try building the binary with a newer version.

@jhoek
Copy link
Author

jhoek commented Oct 26, 2021

Thank you, @SuperSandro2000! The version of pup that I'm using was installed using Homebrew. Is there any way to get that version running again - I'm not that comfortable building the pup binary myself?

In other words - if the pup binary on Homebrew (and its dependencies) are updated at some point in time, that should also solve my problem, right? In the mean-time, I will look into building it myself as you suggested. Thanks again!

@gromgit
Copy link

gromgit commented Oct 26, 2021

if the pup binary on Homebrew (and its dependencies) are updated at some point in time

Homebrew pup is rebuilt on every macOS release, even though pup's last official release was over five years ago: https://formulae.brew.sh/formula/pup

that should also solve my problem, right?

Not if you don't brew upgrade. Any Homebrew binaries built with Go 1.9.2 is now four years old, so you either haven't run brew upgrade in a very long while, or your OS version is long unsupported (High Sierra?). If it's the latter, you're probably better off manually installing the latest Go toolchain from golang.org, then go get github.com/ericchiang/pup.

@jhoek
Copy link
Author

jhoek commented Oct 26, 2021

Ah, I see what you mean. Homebrew installed my version of pup from https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pup.rb. Must be pretty old stuff. Will uninstall then reinstall from https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb instead. Very sorry for wasting your time, will report here if my problem was solved.

@jhoek
Copy link
Author

jhoek commented Oct 26, 2021

Not sure what was wrong - I run brew update and brew upgrade quite regularly. Uninstalling, then simply reinstalling apparently did the trick. Thanks again for your help!

@jhoek jhoek closed this as completed Oct 26, 2021
@gromgit
Copy link

gromgit commented Oct 26, 2021

Glad you got that sorted out, but I just want to clear up a couple of misconceptions:

Homebrew installed my version of pup from https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pup.rb. Must be pretty old stuff.

Hardly. That's current Homebrew, which is as up-to-date as it gets. Notice that the formula contains bottles up to Big Sur (both Intel and M1).

The canonical Homebrew install instruction for pup is in fact simply:

brew install pup

Will uninstall then reinstall from https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb instead.

This, on the other hand, is seriously out of date. Hardly anyone runs 32-bit macOS any more, and the 64-bit binary therein is as old as it gets. If your original installation was from this formula, that's probably why you got the error you did.

Sadly, pup seems to be abandonware now, and no fork has been officially "blessed".

@jhoek
Copy link
Author

jhoek commented Oct 26, 2021

OK, makes sense, since reinstalling from https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/pup.rb fixed the issue. https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb is the install link in README.md, which is why I assumed that would be the most up-to-date option.

@gromgit
Copy link

gromgit commented Oct 27, 2021

There are three outstanding (and identical) PRs to fix the Homebrew instructions in the README, dating back to 2018: #94, #116, #155.

That, and the 13 other outstanding PRs, is why I said pup seems to be abandonware now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants