public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Question about kernel/syscall/signal/signal06.c
@ 2019-07-17  9:21 Hongzhi, Song
  2019-07-17  9:46 ` Cyril Hrubis
  0 siblings, 1 reply; 7+ messages in thread
From: Hongzhi, Song @ 2019-07-17  9:21 UTC (permalink / raw)
  To: ltp

Hi Wang,

Sorry for bother you.

I find signal06 fails on qemux86-64 when qemu has a small number cores, 
e.g. "qemu -smp 1/2/4/6".

ERROR INFO:

signal06??? 0? TINFO? :? loop = 23
signal06??? 1? TFAIL? :? signal06.c:87: Bug Reproduced!

But if boot qemu with "-smp 16", the case has great chance to pass.


I have two questions about this case:

1. I don't know why multi-core will affect the case.

2. On failure situation, what does break the "while loop" shown in below 
code.

 ??? while (D == VALUE && loop < LOOPS) {
 ??????? /* sys_tkill(pid, SIGHUP); asm to avoid save/reload
 ???????? * fp regs around c call */
 ??????? asm ("" : : "a"(__NR_tkill), "D"(pid), "S"(SIGHUP));
 ??????? asm ("syscall" : : : "ax");

 ??????? loop++;
 ??? }

 ??? ...

 ??? if (loop == LOOPS) {
 ??????? tst_resm(TPASS, "%s call succeeded", TCID);
 ??? } else {
 >>> tst_resm(TFAIL, "Bug Reproduced!");
 ??????? tst_exit();
 ??? }


Thanks.

--Hongzhi


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-08-07 10:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-17  9:21 [LTP] Question about kernel/syscall/signal/signal06.c Hongzhi, Song
2019-07-17  9:46 ` Cyril Hrubis
2019-07-19  8:13   ` Hongzhi, Song
2019-07-19  8:44     ` Li Wang
2019-07-22  1:56       ` Hongzhi, Song
2019-07-24  9:56         ` Li Wang
2019-08-07 10:15         ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox