When did markets cause famine? We are living in an age of wasted food because we have so much cheap crap (as well as high-quality) available. People are too fat because there's no barrier to over-consumption.
Whereas a socialist system causes famines due to central planning leads to poor decision making.
How would socialism have dealt with the first scenario? My understanding is there simply wasn't enough food to go around, and no economic system can fix that. Capitalism at least provides a profit motive to solve the problem (eventually).
The Bengal famine was a top down project specifically designed to profit. There is no "free market capitalism" in that scenario.
Whereas a socialist system causes famines due to central planning leads to poor decision making.