Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

cURL and wp_remote_get() for graph.instagram.com: Segmentation error #271

Open
pabamato opened this issue Dec 23, 2021 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@pabamato
Copy link

Describe the bug

calling wp_remote_get( 'https://graph.instagram.com/' ) ends in a blank page (no HTML in source)

Steps to Reproduce

  1. 10updocker shell
    2.run curl --location --request GET 'https://graph.instagram.com/'
  2. You will get a Segmentation fault message

Expected behavior

cURL should return the body from that URL (https://graph.instagram.com/):
"Sorry, this content isn't available right now"

Screenshots

Environment information

  • Device: MacBook Pro M1

  • OS: macOS 12.1 (21C52)

  • WordPress version: 5.8.1 / 5.8.2

Additional context
Found the following:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989604
docker/for-mac#5846
Adding --tls-max 1.2 worked for me on the command line inside the php-fpm container
See:
image

@pabamato pabamato added the bug Something isn't working label Dec 23, 2021
@pabamato
Copy link
Author

From Docker release notes:
https://docs.docker.com/desktop/mac/release-notes/3.x/#known-issues

On Apple Silicon in native arm64 containers, older versions of libssl in debian:buster, ubuntu:20.04 and centos:8 will segfault when connected to some TLS servers, for example curl https://dl.yarnpkg.com. The bug is fixed in newer versions of libssl in debian:bullseye, ubuntu:21.04 and fedora:35.

@tylercherpak
Copy link
Collaborator

@dustinrue does this mean we need to update the php image to use a newer version of the ubuntu image?

@texorama
Copy link

Yes I think you do. We migrated the image to Ubuntu 21 and the ssl segfault has gone away.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants