Click here to get back home

Segmentation violation in Math:Pari when used in connection with Thread:Pool

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Segmentation violation in Math:Pari when used in connection with Thread:Pool Joern Wuestenfeld 02-02-2006
Posted by Joern Wuestenfeld on February 2, 2006, 4:18 am
Please log in for more thread options


I have developed a script to run jobs in parallel on a multi CPU
machine. Therefor I use the module Thread:Pool version 0.32.

After creating the pool, I loop over a list of filenames, create a
random number using Crypt:Random:makerandom version 1.25 which uses
Math:Pari version 2.010703.
I submit the job to the pool. After all jobs are submitted, I loop until
all jobs have finished by checking pool->todo for 0.
After retrieving the results for all jobs, I call the shutdown function
of the pool. And here it crashes. If I do not use the Crypt:Random
Module, everything works fine, but I need this random number as a
parameter to my job!

Has anybody observed a similar behavior before?

The problem is, that after the shutdown function some post processing of
the jobs output should be done, that requires another thread pool! But
if I do not call shutdown for the first pool, it crashes when creating a
new pool.

Any ideas?

Joern


Similar ThreadsPosted
PARI stack overflow during long Net::SFTP connection July 16, 2004, 3:20 am
Math::Pari headaches August 15, 2006, 1:50 pm
Math::Pari in turmoil September 21, 2008, 11:42 pm
Memory Leak in Math::Pari December 16, 2004, 6:21 am
Math::Pari 'factor' is wrong March 17, 2006, 1:41 pm
Building Math::Pari using Sun Studio 11 October 16, 2006, 11:46 am
math::pari on solaris 9 make failure December 8, 2004, 6:36 am
Math::Pari doesn't compile with GCC 3.4.2 in Solaris 9 sparc January 17, 2005, 5:24 pm
Newbie Desperate for Help Installing Math::Pari August 9, 2006, 10:25 pm
Math-Pari-2.010501- make - cannot exec 'cc1' September 26, 2004, 11:09 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap