On the wikitext below, the named ref seems to have an empty dsr that crashed on 51be9c5e1f296e0ce55af639f2fc3cc7953a9409 but currently worked around on master. But, you can reproduce a different crasher by passing the '--dump dom:pre-dsr' or any other dom dumping command.
<poem>foo<ref name="x">''bar''</ref><ref name="x" /></poem>