do ou have access to valgrind?
% valgrind perl test.pl would tell you quite a lot in terms of premature frees. Tim On Mon, 17 Jul 2006, David Whysong wrote:
Hi all, I'm having a problem with part of a script that does monte-carlo statistics. I'm trying to generate a sample of randomly oriented unit vectors (in 3D space) which has a total number $npoints which is evenly divisible by $n after excluding some of the sample, based on orientation. (For those astronomers on the list: I'm trying to model radio galaxies in the unified model, excluding quasars, using a 40 degree opening angle for the obscuring torus.) I'm seeing errors of this sort: *** glibc detected *** /usr/bin/perl: free(): invalid pointer: 0x09124568 *** (or, sometimes) *** glibc detected *** malloc(): memory corruption: 0x094da180 *** A simplified version of my script which demonstrates the problem is attached. I'm not sure if I'm doing something stupid of if this is a bug in PDL. Any suggestions as to how I can make this work would be greatly appreciated.
-- Tim Jenness JAC software http://www.jach.hawaii.edu/~timj _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
