Comments (12)
@wangli5665 any change you could have look into it?
from ltp.
@mpw5421 Any chance running this under gdb and getting a backtrace? See: https://github.com/linux-test-project/ltp/#debugging-with-gdb
from ltp.
@metan-ucw I read the link you provided, but wasn't exactly sure how to execute that.
I ran the test manually under strace since I knew how to do that from troubleshooting other LTP testcases I opened bugs for against RedHat. The output is attached.
from ltp.
Doesn't reproduce for me on RHEL9.3. Could you try running it under valgrind? (e.g. valgrind ./irqbalance01)
from ltp.
Also, is this x86_64 or ppc64le?
from ltp.
Also, is this x86_64 or ppc64le?
It's actually s390x on LPAR. Sorry for not including that in the original comment.
Sure, valgrind output attached:
from ltp.
@mpw5421 Thanks, that looks like we have a bug in test, which fails to parse /proc/interrupts. Could you please attach also output of "cat /proc/interrupts"?
from ltp.
It appears to be enough to move named interrupts to begging of file to trigger it on x86 as well. "row" variable keeps incrementing and eventually there's a write out-of-bounds:
irqbalance01.c:129: TINFO: Found 8 CPUS, 45 IRQs
realloc(): invalid next size
tst_test.c:1653: TBROK: Test killed by SIGIOT/SIGABRT!
from ltp.
Output from cat /proc/interrupts:
from ltp.
Thanks, that confirms my suspicion.
It's a bit too late today, so this could be wrong, but I was thinking:
@@ -154,7 +154,6 @@ static void collect_irq_info(void)
if (acc != -1)
tst_brk(TBROK, "Unexpected EOL");
col = 0;
- row++;
break;
case '0' ... '9':
if (acc == -1)
@@ -167,6 +166,7 @@ static void collect_irq_info(void)
if (acc == -1 || col != 0)
tst_brk(TBROK, "Unexpected ':'");
irq_ids[row] = acc;
+ row++;
acc = -1;
break;
default:
CC @richiejp
from ltp.
To be honest I can't remember how it works and I'm not working on LTP at the moment. However it sounds plausible because the parser made a lot of assumptions about the file format.
from ltp.
v1 patch posted to ML: https://lists.linux.it/pipermail/ltp/2024-January/036666.html
from ltp.
Related Issues (20)
- memcontrol04 failures on RHEL9 (s390x - LPAR & z/VM) HOT 4
- sched test failures in RHEL8 - no rt_runtime set
- Make warning happen in getcwd01.c HOT 1
- Build failure while trying to build from source HOT 2
- Add listmount() and statmount() tests HOT 1
- Compilation error when building against linux-rolling-stable branch headers HOT 19
- A few tests not belong to syscall category HOT 5
- 20240129 release has TODO instead of description HOT 1
- How to use this on an embedded system linux HOT 1
- fsx-linux: fname filename input option needed back HOT 7
- kirk executable not present in the container HOT 3
- Move tests variants from runtest files into tests HOT 1
- tst_fd imports sys/fanotify.h HOT 4
- test_robind 1 TBROK: mkfs.f2fs /dev/block/loop44 failed HOT 1
- arm32: Test killed by SIGILL : readahead01 accept03 splice07 HOT 1
- splice07 fails on kernels <5.10 HOT 2
- Fix msync04 race HOT 3
- about :opclock_settime/speculative /4-4.c HOT 1
- power_management tests on riscv64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltp.