Exception: wrong instance allocation


I have developed a client-server ruby program using DRb. The client
and server interact for some time without errors, but eventually I see
an exception that reads “wrong instance allocation”. The stack trace
shows the exception is raised right after calling new() to instantiate
an object. The exception does not always appear in the same place –
it happens on a variety of classes. I do not see any pattern to this

Can anybody help me with this? Has anybody else seen this?

Thank you.