Hi guys and gals, noticed a strange behaviour while working on some public key crypto routines, which I am able to reproduce as follows:
use Math::BigInt;
my $E = new Math::BigInt "0xE01AFC76F0814D";
my $D = new Math::BigInt "0x956752E5F9DC53";
my $m = new Math::BigInt 2;
$m->bmodpow($D, $E) while 1;
Now if I let this cook for a while, eventually certain
other programs will begin to segfault:
$ man perl
groff: troff: segmentation fault
ps doesn't show anything strange, like perl consuming 800MB of memory... nothing is swapping... system is not unduly slow... but if I kill or even just suspend the script, the segfaults stop happening.
I don't even understand the mechanism that could force another process to segfault, much less how to fix it. Ideas?
Thanks