[LTP] [PATCH v3 3/3] lib: moves test infrastructure states into a shared context structure
Li Wang
liwang@redhat.com
Sat Jun 14 12:36:15 CEST 2025
Hi Avinesh,
Thanks for reporting this failure, after a deep look I think it's because
some parent process is misusing the tst_reinit() function, causing it
to not find the correct magic number and eventually break like below.
We can correct the behavior of these tests to use tst_checkpoint_init()
correctly before calling any CHECKPOINT macros.
I will send a patch to fix all of that.
On Fri, Jun 13, 2025 at 11:01 PM Avinesh Kumar <akumar@suse.de> wrote:
> Hi Li,
>
> This seems to be causing a regression with connectors/pec test:
>
> susetest:~/ltp/testcases/kernel/connectors/pec # ./cn_pec.sh
> cn_pec 1 TINFO: Running: cn_pec.sh
> cn_pec 1 TINFO: Tested kernel: Linux susetest 6.14.6-2-default #1 SMP
> PREEMPT_DYNAMIC Tue May 13 09:56:22 UTC 2025 (ad69173) x86_64 x86_64 x86_64
> GNU/Linux
> cn_pec 1 TINFO: Using /tmp/LTP_cn_pec.djtsC3Zcsz as tmpdir (tmpfs
> filesystem)
> cn_pec 1 TINFO: timeout per run is 0h 5m 0s
> cn_pec 1 TINFO: Test process events connector
> cn_pec 1 TINFO: Testing fork event (nevents=10)
> tst_test.c:199: TDEBUG: mmap((nil), 4096, PROT_READ | PROT_WRITE(3), 1, 4,
> 0)
> tst_test.c:203: TBROK: Invalid shared memory region (bad magic)
> tst_test.c:199: TDEBUG: mmap((nil), 4096, PROT_READ | PROT_WRITE(3), 1, 3,
> 0)
> tst_test.c:203: TBROK: Invalid shared memory region (bad magic)
> tst_test.c:199: TDEBUG: mmap((nil), 4096, PROT_READ | PROT_WRITE(3), 1, 3,
> 0)
> tst_test.c:203: TBROK: Invalid shared memory region (bad magic)
> cn_pec 1 TBROK: tst_checkpoint wait 10000 0 failed
> cn_pec 1 TINFO: SELinux enabled in enforcing mode, this may affect test
> results
> cn_pec 1 TINFO: it can be disabled with TST_DISABLE_SELINUX=1 (requires
> super/root)
> cn_pec 1 TINFO: loaded SELinux profiles: none
>
> Summary:
> passed 0
> failed 0
> broken 1
> skipped 0
> warnings 0
>
--
Regards,
Li Wang
More information about the ltp
mailing list