Looks like the join has just come apart? If so, push it back together, rebuild, ride, simples.
You also have no way of telling how that bike was treated in the few years before you bought it...
It is a strange failure but it is a 3-4 year old rear trials rim after all!