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

Backend segfaults if the starting dir isn't contained in the top level folder #1382

Closed
daikema opened this issue Jun 14, 2024 · 0 comments · Fixed by #1398
Closed

Backend segfaults if the starting dir isn't contained in the top level folder #1382

daikema opened this issue Jun 14, 2024 · 0 comments · Fixed by #1398
Assignees
Labels
critical bug critical bug which is a showstopper for release

Comments

@daikema
Copy link

daikema commented Jun 14, 2024

Describe the bug
Unexpected segfault instead of just an error message when the starting dir isn't contained in the top level folder.

To Reproduce
Steps to reproduce the behavior:

ubuntu@carta-dave:~$ carta_backend --version
4.1.0
ubuntu@carta-dave:~$ carta_backend --top_level_folder /mnt /home
[2024-06-14 10:27:36.154Z] [CARTA] [info] Writing to the log file: /home/ubuntu/.carta-beta/log/carta.log
[2024-06-14 10:27:36.155Z] [CARTA] [info] /usr/bin/carta_backend: Version 4.1.0
[2024-06-14 10:27:36.155Z] [CARTA] [critical] Starting /home must be a subdirectory of top level /mnt. Exiting carta.
Segmentation fault (core dumped)

Expected behavior
An error message, but no segfault.

Platform info (please complete the following information):

  • OS [e.g. macOS Monterey]: Ubuntu 22.04
  • Browser [e.g. chrome, safari, electron app]: N/A
  • Browser version [e.g. 22]: N/A
  • Backend branch [e.g. dev, v3b2 release]: 4.1.0
  • Frontend branch [e.g. dev, v3b2 release]: N/A

Additional context
Picked dirs here at random just to duplicate on a more "normal" box an issue originally detected on a minimalist Ubuntu 22 pod.

@kswang1029 kswang1029 added bug Something isn't working critical bug critical bug which is a showstopper for release and removed bug Something isn't working labels Nov 18, 2024
@confluence confluence self-assigned this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical bug critical bug which is a showstopper for release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants