Homebrew-core: Segmentation fault with curl-openssl

Created on 8 Jun 2019  Â·  13Comments  Â·  Source: Homebrew/homebrew-core

  • [ ] are reporting a bug others will be able to reproduce and not asking a question or requesting software. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh. To get software added or changed in Homebrew please file a Pull Request
  • [x] have a problem with brew install (or upgrade, reinstall) a single, Homebrew/homebrew-core formula (not cask) on macOS? If it's a general brew problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a Linux problem please file this issue at https://github.com/Homebrew/linuxbrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • [x] ran brew update and can still reproduce the problem?
  • [x] ran brew doctor, fixed all issues and can still reproduce the problem?
  • [x] ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • [x] if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

Today I found out that composer wasn't working, I quickly realised that it was a curl issue and while I trying to check why, I saw that while curl package is working fine, curl-openssl isn't.

image

I removed php, php-imap (from another tap), phplint and curl-openssl and re-installed php but curl-openssl is a dependency for php package, and now I'm kind of stuck since I'm not sure how to resolve the issue and why is it happening.

There are all my installed packages:
image

Any suggestion or hint is very welcome!

Thanks!

outdated upstream issue

Most helpful comment

@mbence Thanks for the input! Could you please let me know can I revert to that version?

I tried to run brew install [email protected] but it didn't worked

Update

I run brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e47f3e2682fa3d8a6ee58ded40718a1326e08a6d/Formula/curl-openssl.rb and the problem is solved:

image

Thanks a lot!

I hope it will be fixed on the next update and I'll have to pay attention to it when I run brew upgrade

All 13 comments

From the issue template:

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

If you add the necessary information to this issue (don't create a new one, please) then this issue may be reopened.

I have updated my post to match the requirements of the template.

Any help would be appreciated, I'm still trying to figure out the issue.

It works fine on my MacBook Pro but not on my desktop :(

I run a tail on my zsh history and I run the latest almost 200 commands (since last working period of curl) on my MacBook Pro and is still working, but I haven't done anything other than that on my desktop except of running "brew cask upgrade --greedy" but I don't think that this is the source of the issue.

Thanks!

Could you try reinstalling php and curl-openssl? And, if you don't regularly do that, upgrade all packages.

@SMillerDev I have already uninstalled php and curl-openssl, I also run brew list | xargs brew reinstall but the issue with curl remains :(

I also tried with --build-from-source flag

Reverting to 7.65.0 (this commit of @lembacon) solved the issue for me. I edited the formula locally and reinstalled curl-openssl.

@mbence Thanks for the input! Could you please let me know can I revert to that version?

I tried to run brew install [email protected] but it didn't worked

Update

I run brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e47f3e2682fa3d8a6ee58ded40718a1326e08a6d/Formula/curl-openssl.rb and the problem is solved:

image

Thanks a lot!

I hope it will be fixed on the next update and I'll have to pay attention to it when I run brew upgrade

If the problem persists with --from-source, it is almost certainly a bug in curl itself, since we (Homebrew) have made no other changes between 7.65.0 and 7.65.1 except use the newer sources. It would be interesting to report this to curl, so they can fix it.

@fxcoudert thanks for the info!

I would report it but to be honest, I still don't know why I had this issue on my desktop but on my MacBook v7.65.1 works fine... :/

I believe they already fixed it: https://github.com/curl/curl/issues/3995
Should be in 7.65.2.

Thanks… closing

7.65.2 has just been released!

I don't know if my issue is related to this, but I've fixed my segfaults by adding hostname to /etc/hosts:

  1. Run "hostname" (my output "Romans-MacBook-Pro.local")
  2. Add to "/etc/hosts" as "127.0.0.1 localhost Romans-MacBook-Pro.local"

@rkoblev was a problem with Curl in 7.65.1, now it's fixed in 7.65.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tejasmanohar picture tejasmanohar  Â·  3Comments

kiendang picture kiendang  Â·  3Comments

ralexx picture ralexx  Â·  4Comments

ghost picture ghost  Â·  3Comments

jakepetroules picture jakepetroules  Â·  3Comments