Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

blktests: ./src/miniublk del -a lead Segmentation when io_uring disabled #1305

Open
yizhanglinux opened this issue Dec 16, 2024 · 3 comments

Comments

@yizhanglinux
Copy link

yizhanglinux commented Dec 16, 2024

[1]

[root@storageqe-40 blktests]# cat /proc/sys/kernel/io_uring_disabled
2
[root@storageqe-40 blktests]# ./src/miniublk del -a
queue_init: Operation not permitted
del dev 0 failed
Segmentation fault (core dumped)

[2]

Dec 16 02:49:48  systemd[1]: systemd-coredump@62-24657-0.service: Deactivated successfully.
Dec 16 02:49:48  systemd-coredump[24658]: [🡕] Process 24656 (miniublk) of user 0 dumped core.

                                                                                  Module liburing.so.2 from rpm liburing-2.5-5.x86_64
                                                                                  Stack trace of thread 24656:
                                                                                  #0  0x00000000004045c7 n/a (n/a + 0x0)
                                                                                  #1  0x000000000040266e n/a (n/a + 0x0)
                                                                                  #2  0x00007f7e605c730e __libc_start_call_main (libc.so.6 + 0x2a30e)
                                                                                  #3  0x00007f7e605c73c9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a3c9)
                                                                                  #4  0x0000000000402a65 n/a (n/a + 0x0)
                                                                                  ELF object binary architecture: AMD x86-64
Dec 16 02:49:48  systemd[1]: Started systemd-coredump@62-24657-0.service - Process Core Dump (PID 24657/UID 0).
Dec 16 02:49:48 systemd-coredump[24657]: Process 24656 (miniublk) of user 0 terminated abnormally with signal 11/SEGV, processing...
Dec 16 02:49:48  kernel: Code: 31 ed c7 44 24 34 00 00 00 00 c5 f9 ef c0 4c 89 f6 48 89 df c7 44 24 10 05 00 00 00 c5 fe 7f 44 24 14 c5 f8 77 e8 39 fa ff ff <8b> bb 1c 25 00 00 e8 6e db ff ff 48 89 df e8 66 da ff ff 48 83 c4
Dec 16 02:49:48  kernel: miniublk[24656]: segfault at 251c ip 00000000004045c7 sp 00007ffc1e78ff60 error 4 in miniublk[45c7,402000+3000] likely on CPU 2 (core 4, socket 0)
Dec 16 02:44:38 systemd[1]: systemd-coredump@61-24511-0.service: Deactivated successfully.
Dec 16 02:44:38  systemd-coredump[24512]: [🡕] Process 24510 (miniublk) of user 0 dumped core.

                                                                                  Module liburing.so.2 from rpm liburing-2.5-5.x86_64
                                                                                  Stack trace of thread 24510:
                                                                                  #0  0x00000000004045c7 n/a (n/a + 0x0)
                                                                                  #1  0x000000000040266e n/a (n/a + 0x0)
                                                                                  #2  0x00007f398f64d30e __libc_start_call_main (libc.so.6 + 0x2a30e)
                                                                                  #3  0x00007f398f64d3c9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a3c9)
                                                                                  #4  0x0000000000402a65 n/a (n/a + 0x0)
                                                                                  ELF object binary architecture: AMD x86-64
@yizhanglinux
Copy link
Author

CC @ming1

@ming1
Copy link

ming1 commented Dec 16, 2024

Hi Yi,

I remember that you can reproduce it with liburing test too, right?

Thanks,

@yizhanglinux
Copy link
Author

yizhanglinux commented Dec 16, 2024

Yes, here is part of the journalctl log

Dec 16 03:31:39 unknown: Running test poll-many.t:
Dec 16 03:31:39 unknown: Running test poll-link.t /dev/nvme0n1:
Dec 16 03:31:39 systemd[1]: systemd-coredump@47-12767-0.service: Deactivated successfully.
Dec 16 03:31:39 systemd-coredump[12768]: [🡕] Process 12765 (poll-link.t) of user 0 dumped core.

                                                                                  Stack trace of thread 12766:
                                                                                  #0  0x00007f758120f7ac __pthread_kill_implementation (libc.so.6 + 0x967ac)
                                                                                  #1  0x00007f75811b9a36 raise (libc.so.6 + 0x40a36)
                                                                                  #2  0x00007f75811a18fa abort (libc.so.6 + 0x288fa)
                                                                                  #3  0x00007f75811a181e __assert_fail_base.cold (libc.so.6 + 0x2881e)
                                                                                  #4  0x00007f75811b1f76 __assert_fail (libc.so.6 + 0x38f76)
                                                                                  #5  0x000000000040200d n/a (n/a + 0x0)
                                                                                  #6  0x0000000000000000 n/a (n/a + 0x0)
                                                                                  ELF object binary architecture: AMD x86-64
Dec 16 03:31:39 systemd[1]: Started systemd-coredump@47-12767-0.service - Process Core Dump (PID 12767/UID 0).
Dec 16 03:31:39 systemd-coredump[12767]: Process 12765 (poll-link.t) of user 0 terminated abnormally with signal 6/ABRT, processing...
Dec 16 03:31:39  unknown: Running test poll-link.t:
Dec 16 03:31:39  unknown: Running test poll-cancel-ton.t /dev/nvme0n1:
Dec 16 03:31:39  systemd[1]: systemd-coredump@46-12740-0.service: Deactivated successfully.
Dec 16 03:31:39 systemd-coredump[12741]: [🡕] Process 12739 (poll-cancel-ton) of user 0 dumped core.

                                                                                  Stack trace of thread 12739:
                                                                                  #0  0x0000000000401819 n/a (n/a + 0x0)
                                                                                  #1  0x00007fa05aeea30e __libc_start_call_main (libc.so.6 + 0x2a30e)
                                                                                  #2  0x00007fa05aeea3c9 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2a3c9)
                                                                                  #3  0x0000000000401e85 n/a (n/a + 0x0)
                                                                                  ELF object binary architecture: AMD x86-64
Dec 16 03:31:39 systemd[1]: Started systemd-coredump@46-12740-0.service - Process Core Dump (PID 12740/UID 0).
Dec 16 03:31:39 systemd-coredump[12740]: Process 12739 (poll-cancel-ton) of user 0 terminated abnormally with signal 11/SEGV, processing...
Dec 16 03:31:39 kernel: Code: e4 00 00 00 31 ff 83 c1 01 44 8d 50 01 48 63 c9 44 8b 9c 24 60 01 00 00 48 8b 84 24 a0 00 00 00 41 89 f8 41 8d 34 3a 45 89 d9 <8b> 00 41 83 e1 02 74 00 41 89 f4 41 29 c4 44 39 a4 24 fc 00 00 00
Dec 16 03:31:39  kernel: poll-cancel-ton[12739]: segfault at 0 ip 0000000000401819 sp 00007ffd2226cf90 error 4 in poll-cancel-ton.t[1819,401000+5000] likely on CPU 9 (core 1, socket 0)
Dec 16 03:31:39  unknown: Running test poll-cancel-ton.t:
Dec 16 03:31:39  unknown: Running test poll-cancel-all.t /dev/nvme0n1:
Dec 16 03:31:39  unknown: Running test poll-cancel-all.t:
Dec 16 03:31:39 unknown: Running test poll-cancel.t /dev/nvme0n1:
Dec 16 03:31:39 unknown: Running test poll-cancel.t:
Dec 16 03:31:39 unknown: Running test poll.t /dev/nvme0n1:
Dec 16 03:31:39 unknown: Running test poll.t:
Dec 16 03:31:39 unknown: Running test pipe-reuse.t /dev/nvme0n1:
Dec 16 03:31:39 unknown: Running test pipe-reuse.t:
Dec 16 03:31:39 systemd[1]: systemd-coredump@45-12656-0.service: Deactivated successfully.
Dec 16 03:31:39 systemd-coredump[12657]: [🡕] Process 12654 (pipe-eof.t) of user 0 dumped core.

                                                                                  Stack trace of thread 12654:
                                                                                  #0  0x00000000004018b3 n/a (n/a + 0x0)
                                                                                  #1  0x0000000400000003 n/a (n/a + 0x0)
                                                                                  ELF object binary architecture: AMD x86-64
Dec 16 03:31:39 systemd[1]: Started systemd-coredump@45-12656-0.service - Process Core Dump (PID 12656/UID 0).
Dec 16 03:31:39 systemd-coredump[12656]: Process 12654 (pipe-eof.t) of user 0 terminated abnormally with signal 11/SEGV, processing...
Dec 16 03:31:39 kernel: Code: 00 00 0f 84 a8 00 00 00 48 8b 94 24 88 00 00 00 8b 02 83 c0 01 89 02 8b 44 24 64 8b 94 24 e0 00 00 00 8d 48 01 48 8b 44 24 20 <8b> 30 f6 c2 02 0f 84 ba fe ff ff e9 b5 fe ff ff 0f 1f 44 00 00 48
Dec 16 03:31:39 kernel: pipe-eof.t[12654]: segfault at 0 ip 00000000004018b3 sp 00007ffddb29b620 error 4 in pipe-eof.t[18b3,401000+4000] likely on CPU 11 (core 5, socket 0)
Dec 16 03:31:39 unknown: Running test pipe-eof.t /dev/nvme0n1:
Dec 16 03:31:39 systemd[1]: systemd-coredump@44-12641-0.service: Deactivated successfully.
Dec 16 03:31:39 systemd-coredump[12642]: [🡕] Process 12639 (pipe-eof.t) of user 0 dumped core.

                                                                                  Stack trace of thread 12639:
                                                                                  #0  0x00000000004018b3 n/a (n/a + 0x0)
                                                                                  #1  0x0000000400000003 n/a (n/a + 0x0)
                                                                                  ELF object binary architecture: AMD x86-64

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants