google-cloud-php icon indicating copy to clipboard operation
google-cloud-php copied to clipboard

Segmentation Fault on exists

Open fehrlich opened this issue 1 year ago • 2 comments

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 avatar Feb 06 '24 18:02 fehrlich

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

fehrlich avatar Feb 06 '24 18:02 fehrlich

Hey @fehrlich!

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

Hectorhammett avatar May 06 '24 20:05 Hectorhammett

Closed due inactivity. Please reach out again if you have further questions!

Hectorhammett avatar May 31 '24 21:05 Hectorhammett