zude has asked for the wisdom of the Perl Monks concerning the following question:
Now if I let this cook for a while, eventually certain other programs will begin to segfault: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;
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.$ man perl groff: troff: segmentation fault
I don't even understand the mechanism that could force another process to segfault, much less how to fix it. Ideas?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Math::BigInt weirdness
by Abigail-II (Bishop) on May 10, 2004 at 21:59 UTC | |
|
Re: Math::BigInt weirdness
by hv (Prior) on May 11, 2004 at 01:45 UTC | |
|
Re: Math::BigInt weirdness
by Joost (Canon) on May 10, 2004 at 22:01 UTC | |
by zude (Scribe) on May 11, 2004 at 00:54 UTC |