-
Notifications
You must be signed in to change notification settings - Fork 44
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
Crash after medusa run some time #200
Comments
Hmm.. A crash should have an attached error log no matter how it occurs in medusa. Is there no other output that followed? If so, I would suspect this may be indicative something on your OS had killed the process (maybe due to resource starvation)? Can you post the version of medusa you're using, a full output log, the specs of the machine/VM running it, and your |
full console log: OS: Apple M1 Pro, 13.0.1 (22A400) Last about 21 minutes and this process be killed.
Just run the official rep code, ERC20Test.sol example. How long this example will last normally? |
@yuliyu123 hi! can you please check in the "Console" macOS application () to see if there are any logs related to the crash? If so, can you provide them here? |
hi elopez, no useful log in the "Console" application, maybe killed by the system, and it always crash after run about 20 minutes. Maybe it's not compatible with M1 mac? |
@yuliyu123 M1 should be supported fine from what I understand. Did you install medusa by building from source, or did you get a binary from the releases page? If you are using a binary, did you download the native one for M1 ( Could you also check in "Activity Monitor" while medusa is running and see if you notice a pattern in resource usage (e.g. medusa using increasing amounts of memory until it fails, or something like that?) This would help to tell if what we're seeing is a memory leak somewhere. |
yeah, the CPU and memory resource occupation ratio is very high when running the fuzz test cases. I installed it by building from source. Binary format: CPU status:
|
@yuliyu123 coming back to this since it seems like medusa might have a memory management issue. Do you have the code that caused this to occur? Was it your submission for the secureum workshop? |
I just used this tool to learn fuzz test, and run this repo ERC20Test.sol example. It seems this tool has a memory management issue before. |
Maybe we can use flame graph to analyze the memory usage. |
Closed by #290 |
After executing medusa a period of time, the binary process always crash, see logs below:
⇾ fuzz: elapsed: 20m51s, calls: 48852587 (39261/sec), seq/s: 392, resets/s: 7, coverage: 6 [1] 63153 killed medusa fuzz --target contracts/ERC20Test.sol --deployment-order MyToken
The text was updated successfully, but these errors were encountered: