I'm trying to debug a segmentation fault (11) from drush. I have xdebug installed. The command it's giving the error is the pm-disable.

$ drush dis "module" --debug --verbose: ...

Calling hook drush_pm_disable [11.17 sec, 84.08 MB] [debug] Segmentation fault: 11

I think the issue is when it is calculating the dependencies, as I was also getting this on features/create, but disabling the dependencies checkbox in the features settings makes the features/create work well.

  • Don't forget this is a Q+A site...do you have a question? – Clive Jun 17 '14 at 19:58
  • Forgot to add the question mark somewhere. The issue is the segmentation fault. How can I find out what is the problem? – user20594 Jun 17 '14 at 23:28

If the question is how to debug drush, you could use your IDE in the commands file you've got the command in pm.inc most probably, and use xdebug with the idkey, i.e.


See debuging drush with xdebug for more information

Also related: Can Xdebug be triggered by Drush commands?

| improve this answer | |
  • I really wanted to give up points but I don't have enough reputation. The question was how can I debug this via drush and find out why am I getting this Segmentation Fault – user20594 Jun 17 '14 at 23:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy