Re: Debugging segmentation faults

2007-03-07 Thread John Nagle
George Sakkis wrote: > On Mar 7, 4:15 pm, John Nagle <[EMAIL PROTECTED]> wrote: > > >>You're using Python on a web server to do something >>complicated. You must suffer. >> >>Are you trying to fork off a subprocess in a multithreaded >>program? That's unlikely to work. The sematics dif

Re: Debugging segmentation faults

2007-03-07 Thread George Sakkis
On Mar 7, 4:15 pm, John Nagle <[EMAIL PROTECTED]> wrote: > You're using Python on a web server to do something > complicated. You must suffer. > > Are you trying to fork off a subprocess in a multithreaded > program? That's unlikely to work. The sematics differ > from OS to OS (Solaris

Re: Debugging segmentation faults

2007-03-07 Thread John Nagle
You're using Python on a web server to do something complicated. You must suffer. Are you trying to fork off a subprocess in a multithreaded program? That's unlikely to work. The sematics differ from OS to OS (Solaris forks all the threads, most other operating systems don't; most UNIX-

Re: Debugging segmentation faults

2007-03-07 Thread SPE - Stani's Python Editor
If the error is reproducable and you can run wxPython, you could use the excellent WinPdb debugger, which ships with SPE (python editor): http://www.digitalpeers.com/pythondebugger/ ... but if you can only run your script on a remote server this won't help you. Stani -- SPE - http://pythonide.st

Debugging segmentation faults

2007-03-07 Thread George Sakkis
I have a pure python program (no C extensions) that occasionally core dumps in a non-reproducible way. The program is started by a (non- python) cgi script when a form is submitted. It involves running a bunch of other programs through subprocess in multiple threads and writing its output in severa