Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TCL's show current command segfaults in "thick client" mode when given a non-existent tree #2688

Open
mwinkel-dev opened this issue Jan 12, 2024 · 0 comments
Labels
branch/alpha This is present on or relates to the alpha branch bug An unexpected problem or unintended behavior tool/tcl Relates to the Tree Control Language or mdstcl prompt

Comments

@mwinkel-dev
Copy link
Contributor

Affiliation
MIT PSFC

Version(s) Affected
Current alpha

Platform
Ubuntu 20 and Rocky 9.3

Describe the bug
If make a typo in a tree name when using TCL's show current command, then a segfault occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Configure a computer for mdsip operation.
  2. Ensure that $MDSPLUS_DIR is set and that source $MDSPLUS_DIR/setup.sh has been run.
  3. Configure the computer for thick-client access (e.g., export stuff_path=/tmp/stuff_trees).
  4. Run the following commands:
$ mdstcl
TCL> show current not_a_tree
Segmentation fault (core dumped)
$ 

Expected behavior
An error message should appear stating that the tree cannot be found. The mdstcl program should not segfault.

Screenshots
n/a

Additional context
This bug was found while investigating Issue #2684.

@mwinkel-dev mwinkel-dev added bug An unexpected problem or unintended behavior tool/tcl Relates to the Tree Control Language or mdstcl prompt branch/alpha This is present on or relates to the alpha branch labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch/alpha This is present on or relates to the alpha branch bug An unexpected problem or unintended behavior tool/tcl Relates to the Tree Control Language or mdstcl prompt
Projects
None yet
Development

No branches or pull requests

1 participant