OOM in civicrm-core/install/civicrm.php when user does not have proper database permissions
The specific circumstances under which I encountered this bug was Drupal 8, but I don't see anything Drupal-specific in the bug.
- Drupal 8 with CiviCRM 5.15
- Drupal db user only has SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, TRIGGER
- Activate civicrm plugin with
drush en civicrm
Result: civicrm-core/install/civicrm.php runs out of memory, even with the PHP memory limit set to -1.
Commenting out line 185 of civicrm-core/install/civicrm.php prevents the OOM and shows the actual error (missing permissions).