-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
go package causes segfault #136432
Comments
At a glance, this may be related to #132852. Can you try with some of the packages listed in #132852 (comment) and see if you see the same pattern of packages working vs not working? |
I installed the_silver_searcher and fzf and running both causes a seg fault as in #132852 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This is still a problem with multiple packages causing segfaults. |
The workaround from here fixed this issue on my CentOS 8.5.2111 VM
|
I believe your issue related to an old issue with Try See this issue for some additional tests: #163826 |
Doesn't work: brew reinstall --build-from-source golang in bash at 01:42:06 cmd/trace/home/linuxbrew/.linuxbrew/Cellar/go/1.22.0/libexec/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 READ THIS: https://docs.brew.sh/Troubleshooting These open issues may also help: |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I was trying to upgrade the oh-my-posh package to the latest version. When that failed, I noticed that the upgraded depended on running 'go', so I ran 'go' by itself with no arguments. This results in a segmentation fault.
What happened (include all command output)?
brew upgrade oh-my-posh in bash at 16:52:45
Running
brew update --auto-update
...==> Upgrading 1 outdated package:
jandedobbeleer/oh-my-posh/oh-my-posh 12.2.1 -> 17.9.0
==> Fetching jandedobbeleer/oh-my-posh/oh-my-posh
==> Downloading https://github.com/JanDeDobbeleer/oh-my-posh/archive/v17.9.0.tar.gz
Already downloaded: /home/pat/.cache/Homebrew/downloads/e488ac0fbb26cb204c79cdf2a856ca6de41a1701a8b4fae70767e05d68c84d7f--oh-my-posh-17.9.0.tar.gz
==> Upgrading jandedobbeleer/oh-my-posh/oh-my-posh
12.2.1 -> 17.9.0
==> go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=17.9.0' -X 'github.com/jandedobbeleer/oh-my-posh/src/bui
Last 15 lines from /home/pat/.cache/Homebrew/Logs/oh-my-posh/01.build.Date=2023-07-10T06:33:36Z'":
2023-07-12 15:59:12 +0000
go build -o=oh-my-posh -ldflags="-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=17.9.0' -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Date=2023-07-10T06:33:36Z'"
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/jandedobbeleer/homebrew-oh-my-posh/issues
go in bash at 16:59:13
Segmentation fault
dmesg | grep seg
[ 939.334039] 8385 (go): Uhuuh, elf segment at 0000000000400000 requested but the memory is mapped already
What did you expect to happen?
Upgrade of oh-my-posh or execution of go command were expected to proceed without error.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: