Modify

Opened 16 years ago

Closed 16 years ago

#1192 closed Bug (Works For Me)

Tidy.exe crashes - when long strings are assinged again?

Reported by: Bowmore Owned by: Jos
Milestone: Component: Other
Version: 3.3.1.1 Severity: None
Keywords: Tidy.exe Cc:

Description

Environment = 3.3.1.1 under WIN_XP/Service Pack 2 X86
When running Tidy on Tidy_Crash.au3 Tidy crashes. The commented out assingments to $sNew and $sExisting are identical to the 2 above. Tidy crashes still crashes if the second assingments to $sNew and $sExisting are uncommented, but if they are removed from the file Tidy runs with no problem.

The strings I'm assinging are quite long but well within AutIts limits.

I have attached 2 simple files to demonstrate the issue

Scite outout from crashing version

>"C:\Autoit3\Scite\tidy\tidy.exe" "C:\AutoIt3Data\Scripts\Bug Reports\Tidy_Crash.au3"
Tidy AutoIt3 v2.0.28.6   Copyright (c) Jos van der Zande  August 7, 2009
>Exit code: -1073741819    Time: 1.985

Scite outout from non-crashing version

>"C:\Autoit3\Scite\tidy\tidy.exe" "C:\AutoIt3Data\Scripts\Bug Reports\Tidy_No_Crash.au3"
Tidy AutoIt3 v2.0.28.6   Copyright (c) Jos van der Zande  August 7, 2009
+> Tidy AutoIt3 finished. Original copied to:"C:\AutoIt3Data\Scripts\Bug Reports\BackUp\Tidy_No_Crash_old11.au3"
>Exit code: 0    Time: 0.338

Attachments (2)

Tidy_No_Crash.au3.gz (1.0 KB ) - added by Bowmore 16 years ago.
gzipped error reproduction script Tidy_No_Crash.au3
Tidy_Crash.au3.gz (1.3 KB ) - added by Bowmore 16 years ago.
gzipped error reproduction script

Download all attachments as: .zip

Change History (5)

by Bowmore, 16 years ago

Attachment: Tidy_No_Crash.au3.gz added

gzipped error reproduction script Tidy_No_Crash.au3

by Bowmore, 16 years ago

Attachment: Tidy_Crash.au3.gz added

gzipped error reproduction script

comment:1 by Jos, 16 years ago

Owner: set to Jos
Status: newaccepted

I have downloaded both and tested it with Tidy v2.0.28.6 and it doesn't crash.
Does it crash for you each time you run Tidy?

Jos

comment:2 by Bowmore, 16 years ago

Running Tidy on Tidy_crash.au3 crashes every time for me. I've just tried it on a different laptop at home running Win XP SP3 with exactly the same result. I downloaded the files from trac to be certain that the file I had posted was displaying the problem.

I not sure if this is any help to you but I have Visual Studio 6 on this laptop which picks up the error as.

---------------------------
Microsoft Visual C++
---------------------------
Unhandled exception in Tidy.exe: 0xC0000005: Access Violation.
---------------------------
OK   
---------------------------

and the debugger indicates the error to be at the address indicated by the arrow below.

   0040EB64   mov         ecx,ebx
   0040EB66   and         ecx,3
   0040EB69   je          0040EB6D
-->0040EB6B   rep movs    byte ptr [edi],byte ptr [esi]
   0040EB6D   emms
   0040EB6F   sfence
   0040EB72   mov         eax,dword ptr [esp+10h]

This bug is not causing me any great problems, but it's always nice to track down the cause of unexplained crashes where possible.

Thanks
Bowmore

comment:3 by Jos, 16 years ago

Resolution: Works For Me
Status: acceptedclosed

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.