Re: Python randomly exits with Linux OS error -9 or -15

2012-04-10 Thread Paul Rubin
Janis writes: > I have confirmed that the signal involved is SIGKILL and, yes, > apparently OS is simply running out of memory. This is the notorious OOM killer, sigh. There are some links from http://en.wikipedia.org/wiki/OOM_Killer -- http://mail.python.org/mailman/listinfo/python-list

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-10 Thread Janis
I have confirmed that the signal involved is SIGKILL and, yes, apparently OS is simply running out of memory. Thank you all, again! Best Regards, Janis -- http://mail.python.org/mailman/listinfo/python-list

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Cameron Simpson
On 09Apr2012 12:02, Janis wrote: | Thank you all for the help! I will need to think a bit about the other | suggestions. | | But, Alan, as to this: | > > How do you get -9 and -15? Exit status is supposed to be between 0 and | > > 127. | | I have the following code that has caught these: | | p

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Dan Stromberg
You might try running your Python process with: strace -f -s 1024 -o /tmp/script.strace python /path/to/script.py Then you (perhaps with a C programmer) can likely track down what happened right before the crash by examining the system call tracer near the end of the file. http://stromberg.dns

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Martin P. Hellwig
On 09/04/2012 11:01, Janis wrote: My experience is that these kind of behaviors are observed when (from most to least likeliness): - Your kernel barfs on a limit, e.g. space/inodes/processes/memory/etc. - You have a linked library mismatch - You have bit rot on your system - You have a faulty l

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Janis
Thank you all for the help! I will need to think a bit about the other suggestions. But, Alan, as to this: > > How do you get -9 and -15? Exit status is supposed to be between 0 and > > 127. I have the following code that has caught these: p = subprocess.Popen([Config.PYTHON_EXE,'Load.py',"%s"

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Adam Skutt
On Apr 9, 6:01 am, Janis wrote: > Hello! > > I have this problem with my script exiting randomly with Linux OS > status code -9 (most often) or -15 (also sometimes, but much more > rarely). As far as I understand -9 corresponds to Bad file descriptor > and -15 Block device required. > As Alain al

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Adam Skutt
On Apr 9, 6:47 am, Alain Ketterlin wrote: > Janis writes: > > I have this problem with my script exiting randomly with Linux OS > > status code -9 (most often) or -15 (also sometimes, but much more > > rarely). As far as I understand -9 corresponds to Bad file descriptor > > and -15 Block device

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Emile van Sebille
On 4/9/2012 3:47 AM Alain Ketterlin said... Janis writes: I have this problem with my script exiting randomly with Linux OS status code -9 (most often) or -15 (also sometimes, but much more rarely). My guess is that your script hits a limit, e.g., number of open files, or stack-size, or...

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Alain Ketterlin
Janis writes: > I have this problem with my script exiting randomly with Linux OS > status code -9 (most often) or -15 (also sometimes, but much more > rarely). As far as I understand -9 corresponds to Bad file descriptor > and -15 Block device required. How do you get -9 and -15? Exit status is

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Andrew Berg
On 4/9/2012 5:01 AM, Janis wrote: > I have this problem with my script exiting randomly with Linux OS > status code -9 (most often) or -15 (also sometimes, but much more > rarely). As far as I understand -9 corresponds to Bad file descriptor > and -15 Block device required. > > 1) Is there a way h

Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Janis
Hello! I have this problem with my script exiting randomly with Linux OS status code -9 (most often) or -15 (also sometimes, but much more rarely). As far as I understand -9 corresponds to Bad file descriptor and -15 Block device required. 1) Is there a way how I could find out what exactly cause