in reply to Re: Threaded recursive program seg faults
in thread Threaded recursive program seg faults

The list of web pages to download is generated on the fly by examaning the current web page's data. This way only one web site address becomes available at a time.

In this situation I am thinking that a parallel attempt would fail.

Thoughts?

Another question: is there any way I can find out why it is seg faulting? Perhaps it is the threads, perhaps it's something to do with the code... I've acutally had a few successfully completed runs of the code without fault, but when ran again on the same initial URL it fails.

  • Comment on Re: Threaded recursive program seg faults

Replies are listed 'Best First'.
Re: Re: Threaded recursive program seg faults
by kschwab (Vicar) on Jul 29, 2001 at 22:44 UTC
    Read the README.threads link from my earlier node. Specifically:
    Debugging Use the -DS command-line option to turn on debugging of the multi-threading code. Under Linux, that also turns on a quick hack I did to grab a bit of extra information from segfaults. If you have a fancier gdb/threads setup than I do then you'll have to delete the lines in perl.c which say #if defined(DEBUGGING) && defined(USE_THREADS) && defined(__linux_ +_) DEBUG_S(signal(SIGSEGV, (void(*)(int))catch_sigsegv);); #endif