In an autoconfig profile (only tested udev), if you reference an unavailable axis all input (including keyboard) is ignored.
At least allow keyboard to work so the setting can be diagnosed.
All input is ignored.
I tested this on my Sony DS4 over Bluetooth. What led to discovering this is that DS4 and Bluetooth on a new enough kernel (4.10+) remapped the controller. When loading RA with up to date joypad profiles it matched against the older Bluez autoconfig profile and I hit the freeze. If I remove the Bluez profile, it matches against Bluetooth and the controller mapping/input works as expected.
https://www.diffchecker.com/ck82z9z2
To really confirm this I changed a single axis in the Bluetooth config and it reintroduced the error.
Maybe similar to issue https://github.com/libretro/RetroArch/issues/4335.
Closing in favor of the older and more general issue. https://github.com/libretro/RetroArch/issues/3914
That's good anyways since it seems the freeze is no longer an issue. I set an axis to a crazy number and all input still worked fine.