I want to use the command kill -15 myprog
in order to exit the program gracefully but when i use strace to see the trace i saw always this output killed by SIGSEGV
does it mean an orrur occured ? and at which level and what are the reasons of that ?
here is what i saw with strace -- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=0, si_uid=0} ---
that it tries to end the program but after that i got --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xcdab7de0} ---
.
And before killing the program with strace i saw that it tries to read the time in an infinite loop clock_gettime(CLOCK_MONOTONIC, {tv_sec=91, tv_nsec=28973100}) = 0 clock_gettime(CLOCK_MONOTONIC, {tv_sec=91, tv_nsec=30093500}) = 0 clock_gettime(CLOCK_MONOTONIC, {tv_sec=91, tv_nsec=31405300}) = 0 gettid() = 337 write(1017, "F", 1) = 1 rt_sigprocmask(SIG_SETMASK, [PIPE], ~[ILL TRAP BUS FPE KILL SEGV STOP SYS], 8) = 0
could it be the cause ?
Thanks in advance.