Bug 1226427 - LTP: test case mq_timedreceive01 lead crash in glibc in 32bit compatibility mode
Summary: LTP: test case mq_timedreceive01 lead crash in glibc in 32bit compatibility mode
Status: RESOLVED DUPLICATE of bug 1218087
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Kernel (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact:
URL: https://openqa.suse.de/tests/14611379...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-17 10:15 UTC by WEI GAO
Modified: 2024-06-17 12:15 UTC (History)
0 users

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WEI GAO 2024-06-17 10:15:42 UTC
openQA test in scenario sle-15-SP6-Online-x86_64-ltp_syscalls_m32@64bit fails in
[mq_timedreceive01](https://openqa.suse.de/tests/14611379/modules/mq_timedreceive01/steps/7)

mq_timedreceive01 is a test case which use wrong input parameters check systemcall's errno.
 
This is new failed case from 93.1, compare with correct build 92.1, the kernel version not change, use same LTP version of 92.1 also can reproduce it on 93.1.
So i guess maybe some change happen on libc(between 92.1 and 93.1), but 92.1's qcow already removed so i can not get right libc version of 92.1 easily.

rpm -qf /usr/bin/ldd
glibc-2.38-150600.12.1.x86_64

uname -r
6.4.0-150600.21-default

Case log:
susetest:/opt # /opt/ltp-32/testcases/bin/mq_timedreceive01
tst_test.c:1734: TINFO: LTP version: 20240524
tst_test.c:1620: TINFO: Timeout per run is 0h 00m 30s
mq_timedreceive01.c:140: TINFO: Testing variant: vDSO or syscall with libc spec
mq_timedreceive01.c:224: TPASS: mq_timedreceive() returned 0, priority 0, length: 8192
mq_timedreceive01.c:224: TPASS: mq_timedreceive() returned 1, priority 0, length: 8192
mq_timedreceive01.c:224: TPASS: mq_timedreceive() returned 8192, priority 0, length: 8192
mq_timedreceive01.c:224: TPASS: mq_timedreceive() returned 1, priority 32767, length: 8192
/home/abuild/rpmbuild/BUILD/ltp-20240612.a05298ec4/testcases/kernel/syscalls/mq_timedreceive/../utils/mq.h:70: TINFO: receive 1/1 message
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EMSGSIZE (90)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EBADF (9)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EBADF (9)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EBADF (9)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EAGAIN/EWOULDBLOCK (11)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EINVAL (22)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EINVAL (22)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EINVAL (22)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: ETIMEDOUT (110)
mq_timedreceive01.c:197: TPASS: mq_timedreceive() failed expectedly: EINTR (4)
[  793.996096][ T1479] mq_timedreceive[1479]: segfault at f7fb7004 ip 00000000f7c99ae2 sp 00000000ff9b26e0 error 4 in libc.so.6[f7c00000+229000] lik)
[  793.999316][ T1479] Code: 00 8d b4 26 00 00 00 00 56 53 83 ec 24 65 8b 1d 14 00 00 00 89 5c 24 1c 31 db 8b 44 24 40 8b 54 24 34 8b 4c 24 3c 85 c01
tst_test.c:1678: TBROK: Test killed by SIGSEGV!

Coredump trace:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/opt/ltp-32/testcases/bin/mq_timedreceive01'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf7c99ae2 in mq_timedreceive@GLIBC_2.3.4 () from /lib/libc.so.6
--Type <RET> for more, q to quit, c to continue without paging--
Missing separate debuginfos, use: zypper install ltp-32bit-debuginfo-20240612.a05298ec4-qa.1821.1.x86_64
(gdb) bt
#0  0xf7c99ae2 in mq_timedreceive@GLIBC_2.3.4 () from /lib/libc.so.6
#1  0x565bc498 in libc_mq_timedreceive ()
#2  0x565bcd0d in do_test ()
#3  0x565c6e9a in fork_testrun ()
#4  0x565c8db8 in tst_run_tcases ()
#5  0x565bc32e in main ()
Comment 1 WEI GAO 2024-06-17 12:15:24 UTC
Duplicate with 1218087

*** This bug has been marked as a duplicate of bug 1218087 ***