avast complains it is virus when threadsafe is off

For everything that's not in any way related to PureBasic. General chat etc...
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

avast complains it is virus when threadsafe is off

Post by sartic »

I was developing one app for win32 and then suddenly avast complains it is win32 buzus aem trojan.
Same source was ok until I wrote few lines more of code.
Same source whidth threadsafe on and avast say everything ok?!
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: avast complains it is virus when threadsafe is off

Post by ts-soft »

Ignore the false positive or upload it to avast
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: avast complains it is virus when threadsafe is off

Post by IdeasVacuum »

...Don't ignore it, upload it to Avast as a False Positive.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: avast complains it is virus when threadsafe is off

Post by rsts »

Don't post anti-virus problems as PB Bugs :)

cheers
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: avast complains it is virus when threadsafe is off

Post by ts-soft »

IdeasVacuum wrote:...Don't ignore it, upload it to Avast as a False Positive.
Mostly this doesn't help, you become a e-mail, is fixed with the next virusdefinition and nothing has changed :mrgreen: , the false positive is still alive
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: avast complains it is virus when threadsafe is off

Post by Rings »

moved into Offtopic , coz its definity not a bug related on PB.
SPAMINATOR NR.1
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: avast complains it is virus when threadsafe is off

Post by Rook Zimbabwe »

Thread safety is a computer programming concept applicable in the context of multi-threaded programs. A piece of code is thread-safe if it can be safely invoked by multiple threads at the same time.
You are probably trying to access some variable from multiple portions of your program? In the multi-threaded OS several operations execute at almost the same time sharing the same memory space and having access to the same variables... turning on THREADSAFE is a way to add a traffic cop, if you will, to the program.

You may have sloppy vairable names or some sort of forced OOPish scheme that actually isn't or something else... cannot tell without code :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

Re: avast complains it is virus when threadsafe is off

Post by sartic »

I use global variables. Have few procedures,... Everything was in code but after adding some code avast go berserk.
I do not mind adding threadsafe option it adds few KB to code. I do not want my users to have Avast alarm :)
ClamAv is bigger problem many false positive from my code hehe
Everytime i compiled final I have to check width ClamAv (it sits on my web host and kill my uploads if it false... :)

ps: sorry not bug but big problem (that i solved now, I hope :)
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Re: avast complains it is virus when threadsafe is off

Post by GWarner »

First things I'd check are:

1. Are you running the latest version of PureBasic?
2. Are you running the latest version of Avast?
3. Is Avast's virus database fully up to date?

I am running PureBasic v4.51 (eagerly awaiting v4.60! :))
I am running Avast v6.0.1203 (latest version)
My virus database is 110806-0 (also latest version)

And I am not getting any virus alerts about PureBasic or any of my compiled programs, thread safe or not.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: avast complains it is virus when threadsafe is off

Post by Danilo »

I am using Microsoft Security Essentials since it became free (was paid software before)
and never had any problem with it: http://www.microsoft.com/security_essentials
Virus definition updates come automatically with windows update.
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Re: avast complains it is virus when threadsafe is off

Post by GWarner »

I'd probably use that since it could replace both Avast and SpyBot S&D, but I have never been able to get it to auto update properly.

I suspect that I have some registry setting somewhere that's causing it and that the only way to fix it will be to re-install Windows, but since Avast and SpyBot both work and are both free, I'll use them rather than reinstall Windows just to get Security Essentials working.
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

Re: avast complains it is virus when threadsafe is off

Post by sartic »

Everything is updated (PB is not beta).
MSE is not configurable as Avast, but is free for buissness up to 10 computers.
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: avast complains it is virus when threadsafe is off

Post by ar-s »

Hi,
Some tips often correct the false positive problem.

Include an icon to your exe
Include the version's info before compiling
Include a data (for example a picture) to make your exe bigger..

Try that then check your prog on VirusTotal then into your avast too.
That is working almost all the time for mines.
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
Post Reply