Closed bub7734 closed 5 years ago
Upon further experimentation, All of the following will cause the segfault in response to the HELP prompt of "Commands SET Subtopic?":
C CO COM COMM COMMA COMMAN COMMAND
Any deviation from those, i.e. "COMMX" or "COMMANDS", will no segfault but simply return the expected message of "Help for COMMX is not available".
Got it. This doesn't happen on Windows, but it does on Linux. Will fix soon.
Thanks, Mark.
And, of course, I see the pattern now. The "additional information available" options shows five options all prefixed with "command_". When issuing an ambiguous match, the segfault occurs. Must be in the code performing matching where multiple matches occur.
Indeed it was in the code which determines that an ambiguous match occurs.
Context
Many (perhaps all) simulators will crash with a Bus Error under FreeBSD when the "help set" command is issued followed by exactly "command" in response to the follow-on "Commands SET Subtopic?" prompt from the HELP function.
the output of "sim> SHOW VERSION" while running the simulator which is having the issue
Version information: (Git pull for this build occurred on 15-jul-2019)
how you built the simulator or that you're using prebuilt binaries
Build information: Simh is being built out-of-the-box with no code changes or makefile adjustments. No build failures
the simulator configuration file (or commands) which were used when the problem occurred.
No simulator configuration file is being used when the failure occurs. "Help set" is the first command issued. The failure will happen any time the help sequence is issued.
I've tested a number of simulators, including pdp10, pdp11, hp2100, isys8010. All fail identically. I believe all simulators will fail, and this fault would be in common code rather than sim-specific code.