See https://sourceware.org/bugzilla/show_bug.cgi?id=22266.
Repro: https://github.com/bgamari/T14291-repro