Hi,
We are facing some problem while calling perl from C with multiple threads.
We created two threads and then created one perl interpretor instance each in that thread's context (C-> perl XSUB calls).
After that, we tried calling one common perl subroutine from both the threads with its own perl interpretor instance.
We are getting some strange results. Sometimes it's dumping. Some times it's giving error like
"Modification of a read-only value attempted at test.pl line 3".
However, if you see the code, 3rd line is open brace only.
package pkg1;
sub testsub
{
my ($Data) = $_[0];
# some computation goes here.
}
Basically the local stack contents getting modified it seems.
We've not compiled the perl with -DMULTIPLICITY option.
Environment HP-UX 11.x
Can any one suggest something.
Thanks,
Poornachandran SM