teensy_size.exe : Access is denied.

ig-or

Active member
Hello. Just a small question:
I got new teensy 4.1 today, load Arduino and teensyduino, but cannot build peobram on Windows 10. Getting following message:


Code:
Opening Teensy Loader...
fork/exec C:\Users\isandler\programs\arduino\hardware\teensy/../tools/teensy_size.exe: Access is denied.
Error compiling for board Teensy 4.1.

trying to reinstall all the things in different locations, same result. Finally I noticed Carbon Black antivirus software was complaining:

Capture.JPG

Does somebody saw same issue? What could be done? Probably simple solution would be to switch to linux?
 
It is a simple - very simple - .exe file - not seen it reported as matching the description of 'Malware' before. It came out with T_4.0 in some fashion and had some updates, but not reported here or elsewhere as a problem.

Assuming since all is NEW that TeensyDuino 1.55 was installed? If not try that - the EXE has some change IIRC that might not trip the detection.

If using 1.55 - if possible submit the EXE with request for better eval that it is not an infectious agent.
> and maybe do a second unzip install - put on TD 1.54 and take the Teensy_size from there? It will have somewhat different EXE without the recent change that was made. That might not get caught as bad, though some small edits to the numbers presented will be off.
 
I'm using 1.55 version.
teensy_size.exe attached.. maybe it could be possible to check if it is OK. Will fight Carbon Black antivirus then. And probably switch to Linux anyway.
 

Attachments

  • teensy_size.zip
    8.2 KB · Views: 82
Tried Ubuntu Linux 20.04, everything installed correctly. When I select "examples/Blink" application and push "verify", it starts compiling, then "teensy" window opens but arduino tells me

Code:
Arduino: 1.8.16 (Linux), TD: 1.55, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"











/home/igor/Downloads/arduino-1.8.16/arduino-builder -dump-prefs -logger=machine -hardware /home/igor/Downloads/arduino-1.8.16/hardware -tools /home/igor/Downloads/arduino-1.8.16/tools-builder -tools /home/igor/Downloads/arduino-1.8.16/hardware/tools/avr -built-in-libraries /home/igor/Downloads/arduino-1.8.16/libraries -libraries /home/igor/Arduino/libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10816 -build-path /tmp/arduino_build_845691 -warnings=none -build-cache /tmp/arduino_cache_358760 -verbose /home/igor/Downloads/arduino-1.8.16/examples/Teensy/Tutorial2/UsingVariable/UsingVariable.pde
/home/igor/Downloads/arduino-1.8.16/arduino-builder -compile -logger=machine -hardware /home/igor/Downloads/arduino-1.8.16/hardware -tools /home/igor/Downloads/arduino-1.8.16/tools-builder -tools /home/igor/Downloads/arduino-1.8.16/hardware/tools/avr -built-in-libraries /home/igor/Downloads/arduino-1.8.16/libraries -libraries /home/igor/Arduino/libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10816 -build-path /tmp/arduino_build_845691 -warnings=none -build-cache /tmp/arduino_cache_358760 -verbose /home/igor/Downloads/arduino-1.8.16/examples/Teensy/Tutorial2/UsingVariable/UsingVariable.pde
Using board 'teensy41' from platform in folder: /home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr
Using core 'teensy4' from platform in folder: /home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr
Detecting libraries used...
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_845691/sketch/UsingVariable.pde.cpp -o /dev/null
Generating function prototypes...
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_845691/sketch/UsingVariable.pde.cpp -o /tmp/arduino_build_845691/preproc/ctags_target_for_gcc_minus_e.cpp
/home/igor/Downloads/arduino-1.8.16/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_845691/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/precompile_helper /home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_845691 /home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_845691/pch/Arduino.h -o /tmp/arduino_build_845691/pch/Arduino.h.gch
Using previously compiled file: /tmp/arduino_build_845691/pch/Arduino.h.gch
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=155 -DARDUINO=10816 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/tmp/arduino_build_845691/pch -I/home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr/cores/teensy4 /tmp/arduino_build_845691/sketch/UsingVariable.pde.cpp -o /tmp/arduino_build_845691/sketch/UsingVariable.pde.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /tmp/arduino_cache_358760/core/core_c2c4de23571db61e611d76fa31dbb9ba.a
Linking everything together...
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-gcc -O2 -Wl,--gc-sections,--relax -T/home/igor/Downloads/arduino-1.8.16/hardware/teensy/avr/cores/teensy4/imxrt1062_t41.ld -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o /tmp/arduino_build_845691/UsingVariable.pde.elf /tmp/arduino_build_845691/sketch/UsingVariable.pde.cpp.o /tmp/arduino_build_845691/../arduino_cache_358760/core/core_c2c4de23571db61e611d76fa31dbb9ba.a -L/tmp/arduino_build_845691 -larm_cortexM7lfsp_math -lm -lstdc++
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/arduino_build_845691/UsingVariable.pde.elf /tmp/arduino_build_845691/UsingVariable.pde.eep
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/arm/bin/arm-none-eabi-objcopy -O ihex -R .eeprom /tmp/arduino_build_845691/UsingVariable.pde.elf /tmp/arduino_build_845691/UsingVariable.pde.hex
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/teensy_secure encrypthex TEENSY41 /tmp/arduino_build_845691/UsingVariable.pde.hex
No key .pem file found, skipping .ehex encryption
/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/teensy_post_compile -file=UsingVariable.pde -path=/tmp/arduino_build_845691 -tools=/home/igor/Downloads/arduino-1.8.16/hardware/teensy/../tools/ -board=TEENSY41
Opening Teensy Loader...
Unable find Teensy Loader.  (p)  Is the Teensy Loader application running?
quitexit status 1
Error compiling for board Teensy 4.1.


Teensy information window:

Code:
12:59:37.103 (loader): Teensy Loader 1.55, begin program
12:59:37.113 (loader): Unable to listen for remote control
12:59:37.113 (loader): initialized, showing main window
13:01:03.836 (loader): Verbose Info event
 
I'm using 1.55 version.
teensy_size.exe attached.. maybe it could be possible to check if it is OK. Will fight Carbon Black antivirus then. And probably switch to Linux anyway.

Downloaded the zip and extracted

Both tools here saw it as BUG free : Windows Defender and MalwareBytes

Did a compare of the TD 1.55 version here and it matches

Before I could Run it under Windows - given it came from download zip - it had to be 'Un Blocked', but then it ran

Don't see any reason to suggest it is anything but a false positive from 'Carbon Black'

If you can override that detection, or report it to them as 'known good' they might clean up their over zealous detection.
 
teensy_size.exe attached.. maybe it could be possible to check if it is OK.

Yes, confirmed, this file is ok. It is an exact match to the original copy created on my Linux machine.

I build all of Teensy's Windows software by cross compiling from Linux. The files are them copied to Windows machines for testing. This file I used for comparison is the original build still on my Linux machine.


Will fight Carbon Black antivirus then.

Yup. Anti-virus false positives are sadly a pretty common occurrence. Please report it to them.
 
Back
Top