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

Empty environment when debugging in cutter #3408

Closed
1 of 3 tasks
karliss opened this issue Jan 31, 2025 · 1 comment · Fixed by #3410
Closed
1 of 3 tasks

Empty environment when debugging in cutter #3408

karliss opened this issue Jan 31, 2025 · 1 comment · Fixed by #3410
Assignees
Labels
BUG Debug Issues related to the Debug component of Cutter

Comments

@karliss
Copy link
Member

karliss commented Jan 31, 2025

Environment information

  • Operating System: Linux
  • Cutter version: cb6035a
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • File format: ELF

Describe the bug

Debugged process has completely empty environment variable list. Doing the same thing in rizin works as expected.

To Reproduce

Steps to reproduce the behavior:

  1. open /usr/bin/env in cutter
  2. start debugging
  3. continue
  4. observe that nothing was printed

Expected behavior

Unless custom rzrun profile is configured, enviornment should be inherited from parent process - cutter.

Screenshots

Additional context

There isn't much difference in the way reopening in debug mode works in cutter and rizin. So maybe something in the way Cutter initializes rizin earlier. Will continue debugging to find out how and why the environment gets wiped.

@karliss karliss added BUG Debug Issues related to the Debug component of Cutter labels Jan 31, 2025
@karliss karliss self-assigned this Jan 31, 2025
@karliss
Copy link
Member Author

karliss commented Jan 31, 2025

Narrowed down that io->envprofile is empty in cutter, but not in rizin. Initialized at the start of rizin main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Debug Issues related to the Debug component of Cutter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant