Problem:
There are at least two issues maybe more in contrib module land showing an infinite loop issue with menu_get_item() or any API that may call it inside of an implementation of hook_url_inbound_alter.
XML Sitemap - #1788284: XML Sitemap Menu gets stuck in a loop, in very specific case
Sub-pathauto - #1790508: Site unavailable after module update
Resolution:
TBD
Comments
Comment #1
Anonymous (not verified) commentedIs this still an issue in D8?
Comment #2
dawehnerhook_url_inbound_alter has always been a problematic hook and could cause all sort of problems.
I would actually say that the best way to deal with it is to add recursion protection into your own hook_urL_inbound_alter so you are safe.
Comment #3
Anonymous (not verified) commentedThat might work around a major bug in Drupal core but this needs resolved in menu_get_item().
Comment #12
quietone commentedmenu_get_item was removed from Drupal 8 in #2177031: Remove menu_get_item() and every use of it. in Feb 2014. The problematic hook referred to in #3 hook_url_inbound_alter was removed in #1862024: Remove all references to hook_url_inbound_alter as it is no longer invoked in Dec 2012. That makes this no longer relevant to Drupal 8+ and since the hook and menu_get_item are in Drupal 7, changing version to Drupal 7.