Jump to content

Strawberry Perl unable to run system commands when Malwarebytes is Enabled.

Recommended Posts


I was trying to use vcpkg to install a library that depended on openssl, but it kept failing to build. I narrowed down the issue to Strawberry Perl being unable to run system commands.

If you give the script the full path of the executable, it works, otherwise it fails and generates 2 dummy 0 byte files in the same folder: cmd.exe and whatever command you tried to run.

Disabling Malwarebytes fixes the issue, however attempting to add the Strawberry Perl folder or the script's folder to the allow list doesn't solve the issue.

I've also determined that ActivePerl and the perl included with msys2 work correctly.

I also saw this forum post from 6 days ago but they didn't bother troubleshooting. 


I am a paying customer of Malwarebytes Premium and rely on it for my security. I have no plans to uninstall the software, so it's important to get this fixed.


PS: Not sure if this is helpful but I had made a github issue for this before I realized it was an issue with Malwarebytes. https://github.com/StrawberryPerl/Perl-Dist-Strawberry/issues/41

Link to post
Share on other sites

  • Staff

***This is an automated reply***


Thanks for posting in the Malwarebytes for Windows Help forum.

If you are having technical issues with our Windows product, please do the following:

Malwarebytes Support Tool - Advanced Options

This feature is designed for the following reasons:

  • For use when you are on the forums and need to provide logs for assistance
  • For use when you don't need or want to create a ticket with Malwarebytes
  • For use when you want to perform local troubleshooting on your own

How to use the Advanced Options:

  1. Download Malwarebytes Support Tool
  2. Double-click mb-support-X.X.X.XXXX.exe to run the program
    • You may be prompted by User Account Control (UAC) to allow changes to be made to your computer. Click Yes to consent.
  3. Place a checkmark next to Accept License Agreement and click Next
  4. Navigate to the Advanced tab
  5. The Advanced menu page contains four categories:
    • Gather Logs: Collects troubleshooting information from the computer. As part of this process, Farbar Recovery Scan Tool (FRST) is run to perform a complete diagnosis. The information is saved to a file on the Desktop named mbst-grab-results.zip and can be added as an email attachment or uploaded to a forum post to assist with troubleshooting the issue at hand.
    • Clean: Performs an automated uninstallation of all Malwarebytes products installed to the computer and prompts to install the latest version of Malwarebytes for Windows afterwards. The Premium license key is backed up and reinstated. All user configurations and other data are removed. This process requires a reboot.
    •  Repair System: Includes various system-related repairs in case a Windows service is not functioning correctly that Malwarebytes for Windows is dependent on. It is not recommended to use any Repair System options unless instructed by a Malwarebytes Support agent.
    • Anonymously help the community by providing usage and threat statistics: Unchecking this option will prevent Malwarebytes Support Tool from sending anonymous telemetry data on usage of the program.
  6. To provide logs for review click the Gather Logs button
  7. Upon completion, click OK
  8. A file named mbst-grab-results.zip will be saved to your Desktop
  9. Please attach the file in your next reply.
  10. To uninstall all Malwarebytes Products, click the Clean button.
  11. Click the Yes button to proceed. 
  12. Save all your work and click OK when you are ready to reboot.
  13. After the reboot, you will have the option to re-install the latest version of Malwarebytes for Windows.
  14. Select Yes to install Malwarebytes.
  15. Malwarebytes for Windows will open once the installation completes successfully.













If you are having licensing issues, please do the following: 


For any of these issues:

  • Renewals
  • Refunds (including double billing)
  • Cancellations
  • Update Billing Info
  • Multiple Transactions
  • Consumer Purchases
  • Transaction Receipt

Please contact our support team at https://support.malwarebytes.com/hc/en-us/requests/new to get help

If you need help looking up your license details, please head here: Find my premium license key



Thanks in advance for your patience.

-The Malwarebytes Forum Team

Link to post
Share on other sites

I just ran SysInternals Process Monitor at the same time to see if it would help determine the cause and I noticed that MBAMService.exe seems to be having a Buffer Overflow. I'm not sure if that's related to why it generates 2 dummy files in the folder. It seems to be the existence of those dummy files that breaks it, but they get generated every time I run the script if MalwareBytes is running.


Link to post
Share on other sites

2 hours ago, HumanGamer said:

Strawberry Perl being unable to run system commands.

Please do the following so that we may take a closer look at your installation for troubleshooting:

NOTE: The tools and the information obtained is safe and not harmful to your privacy or your computer, please allow the programs to run if blocked by your system.


  • Download the Malwarebytes Support Tool
  • In your Downloads folder, open the mb-support-x.x.x.xxx.exe file
  • In the User Account Control pop-up window, click Yes to continue the installation
  • Run the MBST Support Tool
  • In the left navigation pane of the Malwarebytes Support Tool, click Advanced
  • In the Advanced Options, click Gather Logs. A status diagram displays the tool is Getting logs from your machine
  • A zip file named mbst-grab-results.zip will be saved to your desktop, please upload that file on your next reply


Link to post
Share on other sites

18 minutes ago, HumanGamer said:

Thank you for the quick response! I was not expecting that on a Sunday :)

My response is just to get the ball rolling.

Lets do 2 things first. No guarantees it will fix things.

First update Malwarebytes.



Please open Malwarebytes and go to security and exploit settings and click advanced.


Click Restore defaults and then click apply. Chose Malwarebytes and restart the computer for good measure.

Then see if it fixes the issue.



Link to post
Share on other sites

17 minutes ago, HumanGamer said:

I figured that updates always got automatically installed.

They are metered out over time.

I believe it was the reset defaults in the exploit protection is what fixed it.

It is possible you had changed those settings at one time thinking it would be more protective if you enabled some non default options.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.