ec: Install reports installed/ok when the client thread did not start
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 83/100
Research direction
Read src/quest/combat/ec.cpp around InstallAt and inspect how pthread_create failure affects the returned install result. Add or use a host test that simulates thread start failure and checks the returned result; done means it reports partial with the failure reason when the thread did not start. The issue notes that this module has no row in src/quest/combat/combat_install.cpp in the referenced release.
Written by the indexing model from the issue text.
Description
Found by a code-smell sweep over the kept combat code and verified by reading the code on the release.
Evidence at 1ab81980e (release/v6.20.0)
src/quest/combat/ec.cpp,InstallAt(about lines 766 to 779): whenpthread_createfails the install logscombat_ec_installwithresult: partial,reason: thread_not_startedand the consequence "nothing is sent: the EC client is idle". It then computesfullfromg_listOn, the log gate, the observer and the settings, which do not include the thread, and returnsInstallLine(full ? "installed" : "partial", full ? "ok" : ...). With the other four parts up and the thread not started, the module reportsinstalled/okalthough it does nothing.- The module has no row in the combat install table (
src/quest/combat/combat_install.cpp), so this cannot happen in this build today. It becomes live when the row is added.
Not shown
- That
pthread_createfails on a headset in practice.
Falsifier
A host test that makes the thread start fail (for example a thread-start seam that returns an error) and reads the install result: installed / ok is the defect.
Work
- Test first: an install whose thread did not start reports
partialwith the reason, in the returned result and not only in the earlier record. - Include the thread in
full.
- Dominant language
- C++
- Stars
- 3
- Forks
- 5
- Avg merge
- 4h 37m
- Merged PRs (30d)
- 524
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EchoTools/nevr-runtime
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
EchoTools/nevr-runtime#2909 ·
Maintainers usually reply within 1 day
-
build: the generated defaults header is written 0600, so a seat outside nevr-build cannot read itOpenbacklog
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
EchoTools/nevr-runtime#2901 · 1 comment ·
Maintainers usually reply within 1 day
-
backlog
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EchoTools/nevr-runtime#2897 ·
Maintainers usually reply within 1 day
-
backlog bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
EchoTools/nevr-runtime#2896 ·
Maintainers usually reply within 1 day
All issues in EchoTools/nevr-runtime
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day
-
good first issue help wanted phase:0 priority:P3 type:task
Difficulty 2/5 1-3 hours Newbie friendliness 67/100