Re: Segmentation faults using threads

2007-02-14 Thread John Nagle
Mathias wrote: >> >> What module are you using for SSH? >> >> What's in your program that isn't pure Python? >> The problem is probably in some non-Python component; you shouldn't >> be able to force a memory protection error from within Python code. >> > > It looks like the error could be

Re: Segmentation faults using threads

2007-02-14 Thread Mathias
> > What module are you using for SSH? > > What's in your program that isn't pure Python? > The problem is probably in some non-Python component; you shouldn't > be able to force a memory protection error from within Python code. > It looks like the error could be in scipy/Numeric, when

Re: Segmentation faults using threads

2007-02-13 Thread Hendrik van Rooyen
"Mathias" <[EMAIL PROTECTED]> wrote: > Does someone have experience with threading in python - are there > non-threadsafe functions I should know about? how do your threads communicate with one another - are there any globals that are accessed from different threads? strange this - you should

Re: Segmentation faults using threads

2007-02-13 Thread Mathias
PS: setting sys.setcheckinterval(1) reduces the probablilty of a failure as well, but definetely at a performance cost. -- http://mail.python.org/mailman/listinfo/python-list

Re: Segmentation faults using threads

2007-02-13 Thread Mathias
John Nagle wrote: > Daniel Nogradi wrote: >>> I use the thread module (not threading) for a client/server app where I >>> distribute large amounts of pickled data over ssh tunnels. > > What module are you using for SSH? > > What's in your program that isn't pure Python? > The problem is p

Re: Segmentation faults using threads

2007-02-13 Thread John Nagle
Daniel Nogradi wrote: >> I use the thread module (not threading) for a client/server app where I >> distribute large amounts of pickled data over ssh tunnels. What module are you using for SSH? What's in your program that isn't pure Python? The problem is probably in some non-Python com

Re: Segmentation faults using threads

2007-02-13 Thread Mathias
> Hi, it would be helpful if you posted a minimalistic code snippet > which showed the problem you describe. > > Daniel I wish I could! If I knew exactly where the effect takes place I could probably circumvent it. All I know know is that it happens under high load and with a lot of waitstates

Re: Segmentation faults using threads

2007-02-13 Thread Daniel Nogradi
> I use the thread module (not threading) for a client/server app where I > distribute large amounts of pickled data over ssh tunnels. > Now I get regular Segmentation Faults during high load episodes. I use a > semaphore to have pickle/unpickle run nonthreaded, but I still get > frequent nondeterm