Author pitrou
Recipients ezio.melotti, lambertv, ncoghlan, neologix, pitrou, vstinner
Date 2013-08-27.18:44:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> As for the status code, it looks like a bash bug:

Your script gives different results here (on Ubuntu):

$ ulimit -c
$ ./python 
6: False
$ ulimit -c unlimited
$ ./python 
6: False

That's because Ubuntu overrides the core file pattern:

$ cat /proc/sys/kernel/core_pattern 
|/usr/share/apport/apport %p %s %c

If I ask for a regular core file, the script works:

$ sudo sh -c "echo core.%p > /proc/sys/kernel/core_pattern"
$ ./python 
134: True

Which means the test really threatens to be unreliable (other systems may install similar mechanisms by default).
Date User Action Args
2013-08-27 18:44:12pitrousetrecipients: + pitrou, ncoghlan, vstinner, ezio.melotti, neologix, lambertv
2013-08-27 18:44:12pitrousetmessageid: <>
2013-08-27 18:44:12pitroulinkissue18623 messages
2013-08-27 18:44:12pitroucreate