On 2017-08-20 23:50, Carlos E. R. wrote:
On 2017-08-20 20:35, Per Jessen wrote:
That code of yours, could you post it? So as not to wait days for another fault and see if my modification works ;-)
Sure -
Ok, testing. Compare when the code is run as user or as root TIME PID UID GID SIG PRESENT EXE Mon 2017-08-21 12:57:03 CEST 14936 1000 100 11 * /home/cer/bin/C/a.out Mon 2017-08-21 13:00:18 CEST 15165 0 0 11 * /home/cer/bin/C/a.out Mon 2017-08-21 13:01:10 CEST 15187 1000 100 11 * /home/cer/bin/C/a.out 1: no ulimit. 2 ulimit -c 0, run as root. 3 ulimit -c 0, run as user. I had to look at the header, the '0' is not the size. -rw-r-----+ 1 root root 14K Aug 21 12:57 core.a\x2eout.1000.3d0b1afec7d64446b590db4abf002a53.14936.1503313023000000.xz -rw-r-----+ 1 root root 14K Aug 21 13:01 core.a\x2eout.1000.3d0b1afec7d64446b590db4abf002a53.15187.1503313270000000.xz -rw-r-----+ 1 root root 22M Aug 21 03:36 core.kodi\x2ebin.1000.3d0b1afec7d64446b590db4abf002a53.9568.1503279207000000.xz Using -H -c 0 makes no difference. Now trying David Haller idea of "echo 0 > /proc/self/coredump_filter" cer@Isengard:~/bin/C> ./script ./script: line 3: 15338 Segmentation fault (core dumped) /home/cer/bin/C/a.out cer@Isengard:~/bin/C> cat script #!/bin/bash echo 0 > /proc/self/coredump_filter /home/cer/bin/C/a.out cer@Isengard:~/bin/C> So, doesn't work, either. Why? -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)