Skip to content

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

Closed

Description

@jhoek

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

Activity

  1. SuperSandro2000 commented on Oct 26, 2021

    @SuperSandro2000

    1.9.2

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

  2. jhoek commented on Oct 26, 2021

    @jhoek
    Author

    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!

  3. gromgit commented on Oct 26, 2021

    @gromgit

    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.

  4. jhoek commented on Oct 26, 2021

    @jhoek
    Author

    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.

  5. jhoek commented on Oct 26, 2021

    @jhoek
    Author

    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!

  6. gromgit commented on Oct 26, 2021

    @gromgit

    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".

  7. jhoek commented on Oct 26, 2021

    @jhoek
    Author

    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.

  8. gromgit commented on Oct 27, 2021

    @gromgit

    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

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