You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MicrOS uses ELF executable format and by some testing we found out that list of arguments passed to program has some problems.
There is additional paramater that should not be passed to executable, and this causes checking for any params for programs less intuitive.
Currently program without a single parameter added will have 3 params passed as command line arguments (I'm not sure if I listed them correctly, will edit information after I confirm these):
Name of executable
Drive this executable is running in
Something additional, that I cannot remember right now.
So if someone passes option let it be -option, then this option in commandline argument list (argv) will be available at 4th place (index 3), instead of 2 (index 1) which is the expected behaviour.
Debugging of process manager creation of new processes and elf format tests and some checking is required to make sure there's no other issue.
Process Manager adds from itself at least one argument for process. This also will need to be adjusted, but is not really part of this issue.
The text was updated successfully, but these errors were encountered:
MinusPL
changed the title
Problems with ELF executables
Problems with ELF executable argument list
Jun 22, 2022
MicrOS uses ELF executable format and by some testing we found out that list of arguments passed to program has some problems.
There is additional paramater that should not be passed to executable, and this causes checking for any params for programs less intuitive.
Currently program without a single parameter added will have 3 params passed as command line arguments (I'm not sure if I listed them correctly, will edit information after I confirm these):
So if someone passes option let it be -option, then this option in commandline argument list (argv) will be available at 4th place (index 3), instead of 2 (index 1) which is the expected behaviour.
Debugging of process manager creation of new processes and elf format tests and some checking is required to make sure there's no other issue.
Process Manager adds from itself at least one argument for process. This also will need to be adjusted, but is not really part of this issue.
The text was updated successfully, but these errors were encountered: