I think that acts like murder, assault, sexual coercion, abuse and so on can be feasibly dealt with in an anarchist society, so I'm not one to say that anarchy implies social chaos or anything like that.
However, one thing has always bothered me, and I have yet to find a clear answer (the closest thing to an answer I can find so far only deal with how crime could be handled in a society that is already anarchist). Once hierarchical institutions are broken down or at least in the process of being dismantled, surely the prison system will also be dismantled - after all, I don't think it would be anti-authoritarian to maintain a system that keeps people locked up against their will.
So if that happens, what can be done to curtail victimization perpetrated by people who are actually harmful to society, like sex offenders and serial murderers? I know that social injustice can be handled by the community, but how can we easily do so with a relatively large influx of dangerous people coming from prisons that are being dismantled? To me, it's not the same as dealing with social crime in a society that is already anarchistic.
Of course, it's possible that I'm not really thinking this through and I'm imagining a situation that isn't nearly as problematic as it seems. But I'm interested in hearing what you folks think about this issue, considering that it's not insignificant in the slightest and that I personally have yet to hear an anarchist talk about it.
it's just that as far as i can tell, we're both advocating basically the same thing. 


Can comment on articles and discussions
My thinking sort of goes to how small a problem it actually is. A relatively small proportion of prisoners are sex offenders and serial murderers while the rest are victims of a racist and classist justice system.
On to your actual question though. . .
I'm thinking that in a revolutionary situation, the prisons will see massive revolt as will. The prisoners may well have revolutionary organizations. These well probably have autonomy in the undertaking of the final affairs of the prisons as they are abolished. There is every reason to believe, good or bad, that prisoners will assure an orderly and safe release from prison, in particular if the other revolutionary working-class organizations actively engage with and have a history of solidarity with the struggle of the prisoner.