Author Topic: Avast and LSP  (Read 4169 times)

0 Members and 1 Guest are viewing this topic.

CyberPK

  • Guest
Avast and LSP
« on: July 29, 2008, 05:26:11 PM »
I've build an ifs LSP.
I've noticed that using avast it doesn't work.
I've found that when the avast is enabled the WSPSelect return only after timeout.
If I disable the avast with "Arresta la protezione all'avvio" it return working ok.

Can you help me?
« Last Edit: July 30, 2008, 01:00:19 AM by CyberPK »

CyberPK

  • Guest
How debug?
« Reply #1 on: July 29, 2008, 09:05:32 PM »
I need to debug a Layered Service Provider that won't work with the avast Web Shield active, but i can't get windbg attach to the ashWebSv.
What can i do?
« Last Edit: July 30, 2008, 12:01:40 AM by CyberPK »

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11873
    • AVAST Software
Re: Avast and LSP
« Reply #2 on: July 29, 2008, 10:36:48 PM »
I'm afraid you'll have to wait for Lukor, the main WebShield developer - but if you could say something more about the LSP (what does it do, etc.), it might be easier for him to give you some useful info.

CyberPK

  • Guest
Re: Avast and LSP
« Reply #3 on: July 30, 2008, 12:06:50 AM »
My LSP is IFS.
It intercept some Winsock function like:
WSPConnect
WSPSend
WSPRead
WSPAccept
WSPSelect
and more.
I can't understand if it is a problem of my LSP because i can't attach windbg to ashWebSh.
I only know that is a problem related to Avast, because if i disable this protection, my lsp macigally return to work.

I'll remain in waiting.
« Last Edit: July 30, 2008, 01:01:18 AM by CyberPK »

Offline lukor

  • Administrator
  • Super Poster
  • ***
  • Posts: 1884
    • AVAST Software
Re: Avast and LSP
« Reply #4 on: July 30, 2008, 09:37:57 AM »
Hi,

to debug WebShield, you must disable avast self protection - in Settings / Troubleshooting.

WebShield however waits in WSPSelect only for a short time, 30 secs I think, then it ends with timeout, do some of its processing and re-accepts - select( ) again. So unless you are not seeing the accepts when they really happen - e.g. you browse - seeing these timeouts from wspselect in webshield is perfectly normal.

Cheers,
Lukas.

CyberPK

  • Guest
Re: Avast and LSP
« Reply #5 on: July 30, 2008, 11:46:26 AM »
Attaching WinDbg to ashWebsv, after the return from the wsprecv of my lsp i can see on the command output this message:

(1594.1678): C++ EH exception - code e06d7363 (first chance)

It is repeted  after every wsprecv.
The only think that change in the message is the number after the dot (1678) that is always different from precedent wsprecv.


What this message mean?
Is an error caused by the avast? Or is my lsp that is causing an error to avast? If yes what i can do?
« Last Edit: July 30, 2008, 12:47:40 PM by CyberPK »

Offline lukor

  • Administrator
  • Super Poster
  • ***
  • Posts: 1884
    • AVAST Software
Re: Avast and LSP
« Reply #6 on: July 31, 2008, 05:49:24 AM »
C++ exception has occurred means exactly what it says  ;D -- if it is not in your code, it's in webshield's. It shouldn't bother you if you don't want to handle it - which I doubt you can from the LSP and would interfere with the software your module is loaded (e.g. WebShield ). Since your module (LSP) is going to load into every process I don't think it is any good to tailor it specifically for WebShield. If there is something specific you would like to solve by this and want help understanding what's happening there - you can write me an email, but I don't think we should continue to debug here on the forum.

Cheers,
Lukas.