Placing a file with a name that is too long in the polling directory causes errors to spam
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Start by reproducing the issue with an overlong filename in the polling directory, then trace the polling and file-transfer retry path that produces the repeated open failures and packets. Done means one error is reported and the file is moved or deleted according to the user configuration.
Written by the indexing model from the issue text.
Description
Checklist (Please check before submitting)
- I reviewed the Contributing Guide.
- I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.
Describe the bug
Place a file with a name that is too long into the polling directory. Watch it crash and burn.
Interestingly enough, it looks like it still sends the metadata and CF_EOTPACKET packet repeatedly.
Sample console output:
EVS Port1 1980-012-14:32:04.62007 66/1/CF 90: CF: start class 1 tx of file 25:/ram/radio_poll/sc_rts001_enablesc. -> 22:/sc_rts001_enablesc.
OS_FileOpen_Impl():110:open(/dev/shm/osal:RAM/radio_poll/sc_rts001_enablesc.): No such file or directory
EVS Port1 1980-012-14:32:04.72042 66/1/CF 95: CF S0(25:41): failed to open file /ram/radio_poll/sc_rts001_enablesc., error=-1
EVS Port1 1980-012-14:32:04.92024 66/1/CF 90: CF: start class 1 tx of file 25:/ram/radio_poll/sc_rts001_enablesc. -> 22:/sc_rts001_enablesc.
OS_FileOpen_Impl():110:open(/dev/shm/osal:RAM/radio_poll/sc_rts001_enablesc.): No such file or directory
EVS Port1 1980-012-14:32:05.02018 66/1/CF 95: CF S0(25:42): failed to open file /ram/radio_poll/sc_rts001_enablesc., error=-1
To Reproduce
See above
Expected behavior
Report a single error and move or delete the file depending on user config.
Code snips
TBD
System observed on:
- Hardware: PC w/ docker desktop
- OS: Ubuntu 22.04
- Versions: main
Additional context
None
Reporter Info
Jacob Hageman - NASA/GSFC
- Dominant language
- C
- Stars
- 123
- Forks
- 82
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 2
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 nasa/CF
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Assert checks non-existent variable (`pt`) in `CF_CFDP_ProcessPlaybackDirectory()`May be free again A pull request for this issue was closed without being merged. Openinvalid
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Similar issues
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
389ds/389-ds-base#8251 ·
Maintainers usually reply within 1 day
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ROCm/hrx-system#3628 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
OpenPrinting/cups#1844 ·
Maintainers usually reply within 1 day