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 on exists #7031

Open
fehrlich opened this issue Feb 6, 2024 · 2 comments
Open

Segmentation Fault on exists #7031

fehrlich opened this issue Feb 6, 2024 · 2 comments

Comments

@fehrlich
Copy link

fehrlich commented Feb 6, 2024

Might be related to #2063

We upgraded an old ubuntu, including docker and after restarting the docker application, we get semgentation errors:

[Tue Feb 06 18:22:35.452588 2024] [core:notice] [pid 785] AH00051: child pid 59480 exit signal Segmentation fault (11), possible coredump in /etc/apache2

whenever the Google API trys to read files or check if they exist.

Environment details

  • OS: Ubuntu 18.04.6, Docker version 24.0.2 / Debian 11
  • PHP version: PHP 8.1.25 (cli) (built: Nov 21 2023 16:00:22) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.25, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.25, Copyright (c), by Zend Technologies
  • Package name and version: google/cloud-storage 1.35.0
  • Pecl list:
Installed packages, channel pecl.php.net:
=========================================
Package   Version State
memcached 3.2.0   stable
  • php -r "print_r(get_loaded_extensions());"
Array
(
    [0] => Core
    [1] => date
    [2] => libxml
    [3] => openssl
    [4] => pcre
    [5] => sqlite3
    [6] => zlib
    [7] => ctype
    [8] => curl
    [9] => dom
    [10] => fileinfo
    [11] => filter
    [12] => ftp
    [13] => hash
    [14] => iconv
    [15] => json
    [16] => mbstring
    [17] => SPL
    [18] => session
    [19] => PDO
    [20] => pdo_sqlite
    [21] => standard
    [22] => posix
    [23] => readline
    [24] => Reflection
    [25] => Phar
    [26] => SimpleXML
    [27] => tokenizer
    [28] => xml
    [29] => xmlreader
    [30] => xmlwriter
    [31] => mysqlnd
    [32] => exif
    [33] => gd
    [34] => memcached
    [35] => pdo_mysql
    [36] => sodium
    [37] => zip
    [38] => Zend OPcache
)

Steps to reproduce

  1. get a object instance from a bucket
  2. run exists method

Code example

use Google\Cloud\Storage\StorageClient;

require_once("autoload.php");
$storage = new StorageClient([
    'projectId' => "my-app",
]);

$bucket = $storage->bucket("impro-files");

$path = "22819/IMG_4296.jpg";
$o = $bucket->object($path);

$o->exists();
// $o->downloadAsString();
@fehrlich fehrlich changed the title Segmentation Fault Segmentation Fault on exists Feb 6, 2024
@fehrlich
Copy link
Author

fehrlich commented Feb 6, 2024

When I disable OPcache with: opcache.enable Off in the php.ini it works again.

@Hectorhammett
Copy link

Hey @fehrlich!

Thanks for letting us know. Are you still having this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants