in reply to Re^6: Parallel Modules ?
in thread Parallel Modules ?
I'm guessing that you are trying to use a single instance of some object across multiple threads.
It'd be a hell of a lot easier to help you if you posted the actual code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Parallel Modules ?
by Gary Yang (Acolyte) on Dec 01, 2011 at 00:50 UTC | |
I found the root cause of the problem. use encoding "utf8" caused the segmentation fault. I removed it. Problem is gone. However, I got "corrupted double-linked list" at run time. It does not always happen. Sometimes the program works fine. Sometimes, I got "corrupted double-linked list". Program died when it happened. Below are the messages. I have no clue what causes it. Any idea?
Here is my system info: uname -a Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux perl -v This is perl, v5.8.8 built for x86_64-linux-thread-multi Copyright 1987-2006, Larry Wall Modules I used
| [reply] [d/l] [select] |
by BrowserUk (Patriarch) on Dec 01, 2011 at 01:07 UTC | |
I have no clue what causes it. Any idea? Not a clue I'm afraid. I don't use gcc/linux. The first thing I would do were I you, is install a recent copy of Perl and relevant libraries, and then try your code there. From memory, 5.8.8 wasn't a bad release of perl as far a threading was concerned, but an aweful lot of bugs have been detected and fixed in the intervening nearly 6 years. If you are lucky, the problem will have just 'gone away'. If not, you will at least stand some chance of getting any bug reports you raise taken seriously. Then you need to start stripping away large chunks of your program, whilst maintaining the same error, until you have something small and independent of your own setup and data that demonstrates the problem, so that people can reproduce your problem on their systems. But trying it on the newest releases -- of perl and all involved modules -- should be your first priority. You could also try describing your program requirements here and see if someone can't come up with a working solution you could use. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |