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

Segmentation fault with curl-openssl #40812

Closed
5 of 6 tasks
panosru opened this issue Jun 8, 2019 · 13 comments
Closed
5 of 6 tasks

Segmentation fault with curl-openssl #40812

panosru opened this issue Jun 8, 2019 · 13 comments
Labels
outdated PR was locked due to age upstream issue An upstream issue report is needed

Comments

@panosru
Copy link

panosru commented Jun 8, 2019

  • 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
  • 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.
  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • 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!

@close-issue-app
Copy link

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.

@panosru
Copy link
Author

panosru commented Jun 8, 2019

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!

@SMillerDev SMillerDev reopened this Jun 9, 2019
@SMillerDev
Copy link
Member

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

@panosru
Copy link
Author

panosru commented Jun 9, 2019

@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

@mbence
Copy link

mbence commented Jun 9, 2019

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

@panosru
Copy link
Author

panosru commented Jun 9, 2019

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

I tried to run brew install curl-openssl@7.65.0 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

@fxcoudert
Copy link
Member

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 fxcoudert added the upstream issue An upstream issue report is needed label Jun 10, 2019
@panosru
Copy link
Author

panosru commented Jun 10, 2019

@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... :/

@mbence
Copy link

mbence commented Jun 10, 2019

I believe they already fixed it: curl/curl#3995
Should be in 7.65.2.

@fxcoudert
Copy link
Member

Thanks… closing

@it-can
Copy link

it-can commented Jul 17, 2019

7.65.2 has just been released!

@rkoblev
Copy link

rkoblev commented Jul 25, 2019

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"

@it-can
Copy link

it-can commented Jul 25, 2019

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

@lock lock bot added the outdated PR was locked due to age label Jan 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age upstream issue An upstream issue report is needed
Projects
None yet
Development

No branches or pull requests

6 participants