taro
taro

Reputation: 5832

Is it possible somehow "rescue" segmentation fault on Ruby

I have a Ruby script, which uses one external lib. Sometimes script exits with segmentation fault, when uses this lib and I must to rerun it. Is it possible to somehow rescue this error by extracting fragment, which has dangerous code to separate process or something like that?

Thanks

Upvotes: 2

Views: 1796

Answers (1)

sepp2k
sepp2k

Reputation: 370172

You can use the neversaydie gem to rescue segmentation faults.

Upvotes: 4

Related Questions