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

drush cex results in Segmentation fault: 11 #2488

Open
powpow12 opened this issue Dec 3, 2016 · 2 comments
Open

drush cex results in Segmentation fault: 11 #2488

powpow12 opened this issue Dec 3, 2016 · 2 comments

Comments

@powpow12
Copy link

powpow12 commented Dec 3, 2016

Hello,

I have been successfully running drush cex for the past couple weeks until I hit an unclear error today. Here is the error message I received:

/Applications/DevDesktop/drush/drush: line 10: 2122 Segmentation fault: 11 "/Applications/DevDesktop/drush/vendor/drush/drush/drush" "$@"

When I googled this error, it seems to be mostly related to theming and NPM which is not what I am working on. Oddly enough, when I try to do config export through the UI, I get a 500 error so there could be another issue involved.

Any assistance would be appreciated.

@weitzman
Copy link
Member

weitzman commented Dec 4, 2016 via email

@powpow12
Copy link
Author

powpow12 commented Dec 4, 2016

I didn't mention that this was a D8 project and my local environment is via Acquia's Dev Desktop (DD). It turns out, out of the box DD doesn't have php logging set up. I had to do the following:

  1. Access my version of php for site, with DD opened cmd + ,
  2. go to Config tab
  3. in the PHP select, highlight your version and click the Edit link.
  4. Search for error_log and remove ';' commented space
  5. Set log path error_log = /Applications/DevDesktop/php5_5/dd_php_errors.log and Save
  6. reset the server (cmd + 2 and cmd + 1)

Note DD sets log_errors = On and error_reporting = E_ALL in php.ini.

To confirm the config took, I reviewed the php info (on the Config tab click PHP info link)

image

I again retried the drush command:

image

this did not add anything to the logs. I went ahead and did a sanity check and in my custom module I wrote to the error log via error_log('this is a test'); and this worked:

image

Reviewing the logs DD offers, I reviewed the mysql.err and found when I visited the config sync admin page the following errors occurred:

161204 8:09:29 InnoDB: The InnoDB memory heap is disabled
161204 8:09:29 InnoDB: Mutexes and rw_locks use GCC atomic builtins
161204 8:09:29 InnoDB: Compressed tables use zlib 1.2.5
161204 8:09:29 InnoDB: Initializing buffer pool, size = 512.0M
161204 8:09:29 InnoDB: Completed initialization of buffer pool
161204 8:09:29 InnoDB: highest supported file format is Barracuda.
161204 8:09:29 InnoDB: Waiting for the background threads to start
161204 8:09:30 Percona XtraDB (http://www.percona.com) 5.5.48-37.8 started; log sequence number 20154757606
161204 8:09:30 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
161204 8:09:30 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
161204 8:09:30 [Note] Event Scheduler: Loaded 0 events
161204 8:09:30 [Note] /Applications/DevDesktop/mysql/bin/mysqld: ready for connections.

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