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 drupal 7.54, php 7.0.7, redis module and phpredis extension #2691

Closed
wodzik opened this issue Mar 25, 2017 · 2 comments

Comments

@wodzik
Copy link

wodzik commented Mar 25, 2017

Drush gets "Segmentation fault" on drupal 7.54, php 7.0.7, redis module and phpredis php extension. Page works fine all the time. When I switch to php 5.6 or change in settings.php redis_client_interface from PhpRedis to Predis it it starts working.

$ drush --version
 Drush Version   :  8.1.10 
$ php -v
PHP 7.0.7 (cli) (built: Jun  8 2016 18:13:49) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
$ php -r 'foreach (get_loaded_extensions() as $extension) echo "$extension: " . phpversion($extension) . "\n";' | grep redis
redis: 3.1.2
$ drush help -v -d
Phar detected. Proceeding to drush_main().
Drush preflight prepare loaded autoloader at  [0 sec, 3.69 MB]       [preflight]
Starting Drush preflight. [0.01 sec, 3.69 MB]                                                                                                                                                                     [preflight]
Loading drushrc "/root/.drush/drushrc.php" into "home.drush" scope. [0.01 sec, 4 MB]                                                                                                                              [bootstrap]
Cache HIT cid: 8.1.10-commandfiles-0-ece5f1e643801ca83187bb7cc0287848 [0.01 sec, 4.04 MB]                                                                                                                             [debug]
Scanning into /etc/drush for /.*aliases\.drush(8|)rc\.php$/ [0.03 sec, 6.9 MB]                                                                                                                                        [debug]
Scanning into /etc/drush for /self\.alias\.drush(8|)rc\.php$/ [0.03 sec, 6.9 MB]                                                                                                                                      [debug]
Scanning into phar:///usr/bin/drush/includes/.. for /.*aliases\.drush(8|)rc\.php$/ [0.03 sec, 6.91 MB]                                                                                                                [debug]
Scanning into phar:///usr/bin/drush/includes/.. for /self\.alias\.drush(8|)rc\.php$/ [0.04 sec, 6.91 MB]                                                                                                              [debug]
Scanning into /root/.drush for /.*aliases\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                                     [debug]
Scanning into /root/.drush for /self\.alias\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                                   [debug]
Scanning into /app/app/../drush for /.*aliases\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                                [debug]
Scanning into /app/app/../drush for /self\.alias\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                              [debug]
Scanning into /app/app/drush for /.*aliases\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                                   [debug]
Scanning into /app/app/drush for /self\.alias\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                                 [debug]
Scanning into /app/app/sites/all/drush for /.*aliases\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                         [debug]
Scanning into /app/app/sites/all/drush for /self\.alias\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                       [debug]
Scanning into /app/app/sites/default for /.*aliases\.drush(8|)rc\.php$/ [0.05 sec, 6.91 MB]                                                                                                                           [debug]
Scanning into /app/app/sites/default for /self\.alias\.drush(8|)rc\.php$/ [0.06 sec, 6.91 MB]                                                                                                                         [debug]
Bootstrap to phase 0. [0.11 sec, 9.1 MB]                                                                                                                                                                          [bootstrap]
Bootstrap to phase -1. [0.11 sec, 9.1 MB]                                                                                                                                                                         [bootstrap]
Found command: help (commandfile=help) [0.11 sec, 9.1 MB]                                                                                                                                                         [bootstrap]
Loading outputformat engine. [0.11 sec, 9.1 MB]                                                                                                                                                                      [notice]
Calling hook drush_core_help [0.12 sec, 9.37 MB]                                                                                                                                                                      [debug]
Drush bootstrap phase : bootstrap_drupal_root() [0.12 sec, 9.74 MB]                                                                                                                                               [bootstrap]
Initialized Drupal 7.54 root directory at /app/app [0.12 sec, 9.74 MB]                                                                                                                                            [bootstrap]
Find command files for phase 1 (max=7) [0.12 sec, 8.45 MB]                                                                                                                                                            [debug]
Cache HIT cid: 8.1.10-commandfiles-1-521168af277addc287a0dc13c11fd4b7 [0.12 sec, 8.46 MB]                                                                                                                             [debug]
Cache HIT cid: 8.1.10-annotationfiles-1-d938a082da63103ca010000ae155e8c8 [0.12 sec, 8.46 MB]                                                                                                                          [debug]
Scanning into /etc/drush for /.*aliases\.drush(8|)rc\.php$/ [0.12 sec, 8.46 MB]                                                                                                                                       [debug]
Scanning into /etc/drush for /self\.alias\.drush(8|)rc\.php$/ [0.12 sec, 8.46 MB]                                                                                                                                     [debug]
Scanning into phar:///usr/bin/drush/includes/.. for /.*aliases\.drush(8|)rc\.php$/ [0.12 sec, 8.46 MB]                                                                                                                [debug]
Scanning into phar:///usr/bin/drush/includes/.. for /self\.alias\.drush(8|)rc\.php$/ [0.14 sec, 8.46 MB]                                                                                                              [debug]
Scanning into /root/.drush for /.*aliases\.drush(8|)rc\.php$/ [0.15 sec, 8.46 MB]                                                                                                                                     [debug]
Scanning into /root/.drush for /self\.alias\.drush(8|)rc\.php$/ [0.15 sec, 8.46 MB]                                                                                                                                   [debug]
Scanning into /app/app/../drush for /.*aliases\.drush(8|)rc\.php$/ [0.15 sec, 8.46 MB]                                                                                                                                [debug]
Scanning into /app/app/../drush for /self\.alias\.drush(8|)rc\.php$/ [0.15 sec, 8.46 MB]                                                                                                                              [debug]
Scanning into /app/app/drush for /.*aliases\.drush(8|)rc\.php$/ [0.15 sec, 8.46 MB]                                                                                                                                   [debug]
Scanning into /app/app/drush for /self\.alias\.drush(8|)rc\.php$/ [0.15 sec, 8.46 MB]                                                                                                                                 [debug]
Scanning into /app/app/sites/all/drush for /.*aliases\.drush(8|)rc\.php$/ [0.15 sec, 8.47 MB]                                                                                                                         [debug]
Scanning into /app/app/sites/all/drush for /self\.alias\.drush(8|)rc\.php$/ [0.15 sec, 8.47 MB]                                                                                                                       [debug]
Scanning into /app/app/sites/default for /.*aliases\.drush(8|)rc\.php$/ [0.15 sec, 8.47 MB]                                                                                                                           [debug]
Scanning into /app/app/sites/default for /self\.alias\.drush(8|)rc\.php$/ [0.15 sec, 8.47 MB]                                                                                                                         [debug]
Drush bootstrap phase : bootstrap_drupal_site() [0.15 sec, 8.48 MB]                                                                                                                                               [bootstrap]
Initialized Drupal site default at sites/default [0.15 sec, 8.48 MB]                                                                                                                                              [bootstrap]
Find command files for phase 2 (max=7) [0.16 sec, 8.48 MB]                                                                                                                                                            [debug]
Drush bootstrap phase : bootstrap_drupal_configuration() [0.16 sec, 8.48 MB]                                                                                                                                      [bootstrap]
Find command files for phase 3 (max=7) [0.16 sec, 8.49 MB]                                                                                                                                                            [debug]
sql-query: SELECT 1; [0.16 sec, 8.57 MB]                                                                                                                                                                             [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_2Wf79G --database=db --host=mysql --silent  < /tmp/drush_cO84nd
  1
sql-query: SHOW TABLES; [0.16 sec, 8.57 MB]                                                                                                                                                                          [notice]
Executing: mysql --defaults-extra-file=/tmp/drush_wFOfKE --database=db --host=mysql --silent  < /tmp/drush_frAaXa
  actions
  advagg_aggregates
  advagg_aggregates_hashes
-------- REST OF TABLE LIST ------                                    
Drush bootstrap phase : bootstrap_drupal_database() [0.2 sec, 8.65 MB]                                                                                                                                            [bootstrap]
Successfully connected to the Drupal database. [0.2 sec, 9.14 MB]                                                                                                                                                 [bootstrap]
Find command files for phase 4 (max=7) [0.2 sec, 9.14 MB]                                                                                                                                                             [debug]
Drush bootstrap phase : bootstrap_drupal_full() [0.2 sec, 9.14 MB]                                                                                                                                                [bootstrap]
Segmentation fault (core dumped)                                                                                               

Redis options from settings.php:

$conf['redis_client_interface'] = 'PhpRedis';
  $conf['redis_client_host'] = 'redis';
  $conf['redis_client_port'] = 6379;
  $conf['redis_client_persistent'] = 1;
  $conf['lock_inc'] = 'sites/all/modules/contrib/redis/redis.lock.inc';
  $conf['path_inc'] = 'sites/all/modules/contrib/redis/redis.path.inc';
  $conf['cache_backends'][] = 'sites/all/modules/contrib/redis/redis.autoload.inc';


  $conf['page_cache_invoke_hooks'] = TRUE;
  $conf['page_cache_without_database'] = FALSE;

  // Cache bins.
  $conf['cache_default_class'] = 'Redis_Cache';
  $conf['cache_class_cache_bootstrap'] = 'Redis_Cache';
  $conf['cache_class_cache'] = 'Redis_Cache';
  $conf['cache_class_cache_menu'] = 'Redis_Cache';
  $conf['cache_class_cache_block'] = 'Redis_Cache';
  $conf['cache_class_cache_views'] = 'Redis_Cache';
  $conf['cache_class_cache_views_data'] = 'Redis_Cache';
  $conf['cache_field'] = 'Redis_Cache';
  $conf['cache_class_cache_field'] = 'Redis_Cache';
  $conf['cache_class_cache_image'] = 'Redis_Cache';
  $conf['cache_class_cache_libraries'] = 'Redis_Cache';
  $conf['cache_class_cache_metatag'] = 'Redis_Cache';
  $conf['cache_class_cache_search_api_solr'] = 'Redis_Cache';

  // Always Database Cache.
  $conf['cache_class_cache_form'] = 'DrupalDatabaseCache';

  // Entity Cache.
  $conf['cache_entity_node'] = 'Redis_Cache';
  $conf['cache_entity_fieldable_panels_pane'] = 'Redis_Cache';
  $conf['cache_entity_file'] = 'Redis_Cache';
  $conf['cache_entity_taxonomy_term'] = 'Redis_Cache';
  $conf['cache_entity_taxonomy_vocabulary'] = 'Redis_Cache';
@wodzik
Copy link
Author

wodzik commented Mar 26, 2017

It crash in "$client->hgetall($key);" (php crash), so i think this is php/redis error, not drush related.

@weitzman
Copy link
Member

weitzman commented Jun 1, 2017

See Drupal Answers.

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