|
Bugzilla – Full Text Bug Listing |
| Summary: | Illegal instruction in mariadb on VisionFive2 | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Tumbleweed | Reporter: | Felix Niederwanger <felix.niederwanger> |
| Component: | Kernel | Assignee: | openSUSE Kernel Bugs <kernel-bugs> |
| Status: | RESOLVED DUPLICATE | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | mbrugger, schwab, tiwai |
| Version: | Current | ||
| Target Milestone: | --- | ||
| Hardware: | RISC-V | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | coredump | ||
|
Description
Felix Niederwanger
2024-02-07 19:58:56 UTC
After some investigation, it looks like that the issue could come from a yet incomplete implementation of the timer in the kernel [1, 2]. I could trace the SIGILL back to the RDCYCLE instruction in gdb: > #0 0x0000002aab7bea4e in my_timer_init () > #1 0x0000002aab126d0e in mysqld_main(int, char**) () > #2 0x0000003ff7655668 in __libc_start_call_main () from /lib64/lp64d/libc.so.6 > #3 0x0000003ff7655710 in __libc_start_main_impl () from /lib64/lp64d/libc.so.6 > #4 0x0000002aab0ed890 in _start () > > 0x0000002aab7bea4e <my_timer_init+52> rdcycle a5 This pseudoinstructions is part of the Zicntr extension [3] and by first look it looks like a rather basic extension that should be supported (subjunctive!). So, I think the issue arises from a yet incomplete implementation of the timer function in the kernel, but this assessment is coming from someone without real expertise in the RISC-V domain. Perhaps someone else could have a look and confirm/deny my hypothesis? Thanks! [1] https://rvspace.org/en/project/JH7110_Upstream_Plan [2] https://lore.kernel.org/all/20231219145402.7879-3-xingyu.wu@starfivetech.com/ [3] https://riscv.org/wp-content/uploads/2019/12/riscv-spec-20191213.pdf Works fine with latest tumblweed, please see https://bugzilla.suse.com/show_bug.cgi?id=1222395 *** This bug has been marked as a duplicate of bug 1222395 *** |