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

Memory leaks froze my pc #856

Closed
TheYellowArchitect opened this issue Nov 30, 2023 · 6 comments
Closed

Memory leaks froze my pc #856

TheYellowArchitect opened this issue Nov 30, 2023 · 6 comments

Comments

@TheYellowArchitect
Copy link

TheYellowArchitect commented Nov 30, 2023

I wanted to give a try at #486
I just wanted to search through this repo for that command option, hoping its an easy task (I am a newbie with linux)
I built according to the guide at README.md but couldn't find how to execute that local binary (where is that binary?)

Anyway, I ran the unit tests at tests/run_all_tests.sh (or was it assert.sh) anyway, first time it ran succesfully, then I ran it again, and it froze. Hard. Like, no input, no mouse no keyboard, had to reboot manually... Please remove these tests if they are reproducible, they can harm someone's computer.

P.S. I probably ran them with sudo rights since my user is sudo by default (yes, I recognize it's bad practice)

@andmarti1424
Copy link
Owner

Hello. Why you say there is a leak? Did you run sc-im with Valgrind or other tool and saw this?

@TheYellowArchitect
Copy link
Author

TheYellowArchitect commented Dec 5, 2023

Because I have run plenty of wild/random software, and my linux has never behaved this way before. Never before have I experienced input freeze (something which is normal in Windows with certain unoptimized programs)
Even if I run an infinite loop in bash, I can just kill the window (dwm), it wouldn't corrupt my entire pc (and on reboot it said something about RAM)

Here is the argument for memory leak, without the usage of any software: It completed the first time without issues, and since unit tests are supposed to be deterministic, it doesn't make sense for the 2nd time to cause issues. This means the state of the computer changed, and this can be true only if the memory was changed, hence my assumption for memory leak. If it wasn't a memory leak, with the same input, there should be the same output ;)

@andmarti1424
Copy link
Owner

I run all these tests with valgrind without any memory leaks in the log shown. please rerun those tests with valgrind and report back. if there is a memory leak you should see it in the log. thanks.

@TheYellowArchitect
Copy link
Author

TheYellowArchitect commented Dec 7, 2023

It sounds like a case of "it works on my machine"
I refuse to run that script again, as it was harmful to my hardware. Solving a bug by risking my entire computer + the time I have spent on configuring it is just not worth it.

If you wish, close this issue, I only wanted to report this bug.

@luna-in-space
Copy link

luna-in-space commented Dec 7, 2023 via email

@andmarti1424
Copy link
Owner

I agree with @luna-in-space. @TheYellowArchitect if you happen to run these with valgrind, please share the log. thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants