Hi, On Thu, Apr 04, 2019 at 11:49:48AM +0200, Kurt Kanzenbach wrote: > The setcpu_buf is unconditionally freed at the end of the program. However, > there are code paths in which it is not allocated: > > $ sudo ./cyclicdeadline > Using all CPUS > /sys/kernel/debug/sched_features: Success > interval: 600:1000 > Tested at 5us of 600us > deadline thread 2963 > thread[2963] runtime=600us deadline=1000us > main thread 2962 > fail 2 0 > T: 0 ( 2963) I:1000 C: 1268 Min: 7 Act: 55 Avg: 56 Max: 256 > [1] 2961 segmentation fault sudo ./cyclicdeadline > > Fix it by adding the NULL check. free(3) is actually NULL safe. So, that's not the problem. We're debugging it. Thanks, Kurt
Attachment:
signature.asc
Description: PGP signature