The problem arises because the destructor for the shared object is being called from each thread that has a copy of it.
One way to avoid that is to add your own destructor method and defer destruction until the called by the last thread that has a copy.
In reply to Re^3: Attempt to free non-existent shared string 'io_socket_type', Perl interpreter: 0x84972e0 during global destruction.
by BrowserUk
in thread Attempt to free non-existent shared string 'io_socket_type', Perl interpreter: 0x84972e0 during global destruction.
by madhurikl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |