in reply to Re^3: ithreads picks fight with LWP::Agent; everybody loses (Works for me!)
in thread ithreads picks fight with LWP::Agent; everybody loses
Thanks for the code and for your help. You raise a couple of points.
First, the premature thread termination -- yeah, I spotted that. In the real code this failure script is based off of, I do indeed take care to make sure all threads have finished before termination, so I was quite certain that wasn't the source of my trouble and left it out of this code. (Besides, on my server, the code seg faults before it ever becomes an issue.) Sorry, I should have made that clearer.
Second, your code. I had to tweak it slightly to run (had to set stack size to 4*4096, and s/uleep/usleep/), but once it ran, it gave me a more or less instant seg fault, though in much less detail than I'm seeing in my own code:
Started: 0 Ended: 0 Segmentation faultThough the "instant segfault" feature should prove valuable to my debugging, since it beats waiting for my own code to finally get around to deciding to die.
(Whoops, I just realized I never specified that. In both my failure script and the real code, the crash isn't instantaneous; it runs a little while first. Sorry, that was relevant and should have been mentioned in my initial posting.)
Finally, thanks for the 1.67 recommendation; I'll definitely give that a try.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: ithreads picks fight with LWP::Agent; everybody loses (Works for me!)
by BrowserUk (Patriarch) on Feb 27, 2008 at 07:52 UTC |