[yunqa.de] Intermittent exception, DIRegEx_API

  • From: Jim Bretti <jim@xxxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Fri, 10 Jun 2016 18:50:08 +0000

I am using version DIRegEx version 8.6.9 on Delphi 10 Seattle, and seeing
an intermittent access violation in my application.  DIRegEx_API is at the
top of the call stack.

I was able to cause this error in the DIRegEx_Workbench demo with Eurekalog
enabled.  Eurekalog output with call stack is attached.  This is very
similar to the call stack I'm seeing in my app.

In the workbench, the error seems to happen when I select the option RE:
Options -> poAutoJit, and happens immediately when I enter text into the
Match Pattern field.  AutoJit is the only setting changed, all other
options are the default settings.

It doesn't happen all the time, but I can get it happen regularly, (only if
poAutoJit is enabled).

Does this sound familiar?

Jim Bretti
ÿþEurekaLog 7.4.0.0  



Exception:

----------------------------------------------------------------------------------------------------------------

  2.2 Address: 0074D7BD

  2.5 Type   : EAccessViolation

  2.6 Message: Access violation at 
address 0074D7BD in module 
'DIRegEx_Workbench.exe'. Read of 
address 02040800.

  2.7 ID     : F8540000

  2.11 Sent  : 0





Steps to reproduce:

------------

  8.1 Text: 





Call Stack Information:

-----------------------------------------------------------------------------------------------------------------------------

|Methods |Details|Stack   |Address 
|Module               |Offset  |Unit    
         |Class       |Procedure/Method 
  |Line  |

-----------------------------------------------------------------------------------------------------------------------------

|*Exception Thread: ID=9516; Parent=0; 
Priority=0                              
                                        
     |

|Class=; Name=MAIN                      
                                        
                                        
    |

|DeadLock=0; Wait Chain=                
                                        
                                        
    |

|Comment=                               
                                        
                                        
    |

|---------------------------------------------------------------------------------------------------------------------------|

|7FFFFFFE|03     
|00000000|0074D7BD|DIRegEx_Workbench.exe|0034D7BD|DIRegEx_Api
      |            |?                  
|      |

|00000020|03     
|0028FEF4|75597895|user32.dll           
|00017895|USER32           |            
|DispatchMessageW   |      |

|00000020|03     
|0028FF04|006D684F|DIRegEx_Workbench.exe|002D684F|Vcl.Forms
        |TApplication|ProcessMessage    
 |      |

|00000020|03     
|0028FF20|006D6892|DIRegEx_Workbench.exe|002D6892|Vcl.Forms
        |TApplication|HandleMessage     
 |      |

|00000020|03     
|0028FF44|006D6BC5|DIRegEx_Workbench.exe|002D6BC5|Vcl.Forms
        |TApplication|Run               
 |      |

|00000020|04     
|0028FF74|007A31DC|DIRegEx_Workbench.exe|003A31DC|DIRegEx_Workbench|
            |Initialization     |39[7] |

|00000020|03     
|0028FF8C|758E3388|kernel32.dll         
|00013388|kernel32         |            
|BaseThreadInitThunk|      |

-----------------------------------------------------------------------------------------------------------------------------



Modules Information:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

|Handle  |Name                 
|Description                            
            |Version         |Size    
|Modified           |Path               
                                        
                                        
           |

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

|00400000|DIRegEx_Workbench.exe|        
                                        
   |1.0.0.0         |4409856 
|2016-06-10 
14:13:09|C:\Users\Jim\Components\Delphi\DIRegEx\Demos\DIRegEx_Workbench\
                                        
       |

|03E80000|dbghelp.dll          |Windows 
Image Helper                            
   |6.12.2.633      |1213200 
|2013-11-27 
14:14:38|C:\Users\Jim\Components\Delphi\EurekaLog
 7\Bin\                                 
                              |

|03FD0000|symsrv.dll           |Symbol 
Server                                  
    |6.12.2.633      |131856  
|2013-11-27 
14:14:38|C:\Users\Jim\Components\Delphi\EurekaLog
 7\Bin\                                 
                              |

|10100000|lgscroll.dll         
|Logitech Scroll Enabler (UNICODE)      
            |4.80.103.0      |38912   
|2009-07-20 05:00:00|C:\Program 
Files\Logitech\SetPoint\x86\            
                                        
                   |

|71B70000|ntmarta.dll          |Windows 
NT MARTA provider                       
   |6.1.7600.16385  |121856  
|2009-07-13 
21:16:11|C:\Windows\System32\           
                                        
                                       
|

|71BB0000|uxtheme.dll          
|Microsoft UxTheme Library              
            |6.1.7600.16385  |245760  
|2009-07-13 
21:11:24|C:\Windows\System32\           
                                        
                                       
|

|71C40000|comctl32.dll         |User 
Experience Controls Library             
      |6.10.7601.18837 |1680896 
|2015-04-24 
13:54:13|C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\|

|71E60000|wkscli.dll           
|Workstation Service Client DLL         
            |6.1.7601.17514  |47104   
|2010-11-20 
05:21:38|C:\Windows\System32\           
                                        
                                       
|

|71E70000|srvcli.dll           |Server 
Service Client DLL                      
    |6.1.7601.17514  |90112   
|2010-11-20 
05:21:28|C:\Windows\System32\           
                                        
                                       
|

|71E90000|netutils.dll         |Net 
Win32 API Helpers DLL                   
       |6.1.7601.17514  |22528   
|2010-11-20 
05:20:30|C:\Windows\System32\           
                                        
                                       
|

|71EE0000|netapi32.dll         |Net 
Win32 API DLL                           
       |6.1.7601.17887  |57344   
|2012-07-04 
17:16:56|C:\Windows\System32\           
                                        
                                       
|

|72150000|winsta.dll           
|Winstation Library                     
            |6.1.7601.18540  |157696  
|2014-07-16 
21:40:03|C:\Windows\System32\           
                                        
                                       
|

|72A50000|wtsapi32.dll         |Windows 
Remote Desktop Session Host Server SDK 
APIs|6.1.7601.17514  |40448   
|2010-11-20 
05:21:40|C:\Windows\System32\           
                                        
                                       
|

|72E60000|version.dll          |Version 
Checking and File Installation 
Libraries   |6.1.7600.16385  |21504   
|2009-07-13 
21:16:17|C:\Windows\System32\           
                                        
                                       
|

|72E80000|msvcr80.dll          
|Microsoft® C Runtime Library           
            |8.0.50727.6229  |626688  
|2014-11-18 
17:49:56|C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_d089f796442de10e\
               |

|74730000|dwmapi.dll           
|Microsoft Desktop Window Manager API   
            |6.1.7601.18917  |67584   
|2015-07-09 
13:42:54|C:\Windows\System32\           
                                        
                                       
|

|752E0000|powrprof.dll         |Power 
Profile Helper DLL                      
     |6.1.7600.16385  |145408  
|2009-07-13 
21:16:12|C:\Windows\System32\           
                                        
                                       
|

|753D0000|winspool.drv         |Windows 
Spooler Driver                          
   |6.1.7601.17514  |320000  
|2010-11-20 
05:16:52|C:\Windows\System32\           
                                        
                                       
|

|75500000|CRYPTBASE.dll        |Base 
cryptographic API DLL                   
      |6.1.7601.23418  |36352   
|2016-04-09 
01:37:37|C:\Windows\SysWOW64\           
                                        
                                       
|

|75510000|sspicli.dll          
|Security Support Provider Interface    
            |6.1.7601.23418  |96768   
|2016-04-09 
02:54:54|C:\Windows\SysWOW64\           
                                        
                                       
|

|75580000|user32.dll           
|Multi-User Windows USER API Client DLL 
            |6.1.7601.19061  |833024  
|2015-11-10 
14:37:39|C:\Windows\SysWOW64\           
                                        
                                       
|

|75680000|rpcrt4.dll           |Remote 
Procedure Call Runtime                  
    |6.1.7601.23418  |666112  
|2016-04-09 
02:54:54|C:\Windows\SysWOW64\           
                                        
                                       
|

|75780000|lpk.dll              
|Language Pack                          
            |6.1.7601.19146  |25600   
|2016-02-05 
14:50:53|C:\Windows\SysWOW64\           
                                        
                                       
|

|758D0000|kernel32.dll         |Windows 
NT BASE API Client DLL                  
   |6.1.7601.23418  |1114112 
|2016-04-09 
02:54:54|C:\Windows\SysWOW64\           
                                        
                                       
|

|759E0000|imm32.dll            
|Multi-User Windows IMM32 API Client 
DLL            |6.1.7601.17514  |119808 
 |2010-11-20 
05:08:52|C:\Windows\System32\           
                                        
                                       
|

|75AA0000|psapi.dll            |Process 
Status Helper                           
   |6.1.7600.16385  |6144    
|2009-07-13 
21:16:12|C:\Windows\SysWOW64\           
                                        
                                       
|

|75CF0000|Wldap32.dll          |Win32 
LDAP API DLL                            
     |6.1.7601.17514  |269824  
|2010-11-20 
05:21:38|C:\Windows\SysWOW64\           
                                        
                                       
|

|75F50000|msctf.dll            |MSCTF 
Server DLL                              
     |6.1.7601.18731  |828928  
|2015-01-16 
22:30:42|C:\Windows\SysWOW64\           
                                        
                                       
|

|76020000|usp10.dll            
|Uniscribe Unicode script processor     
            |1.626.7601.19054|627712  
|2015-11-03 
14:56:18|C:\Windows\SysWOW64\           
                                        
                                       
|

|760C0000|advapi32.dll         
|Advanced Windows 32 Base API           
            |6.1.7601.23418  |644096  
|2016-04-09 
02:54:42|C:\Windows\SysWOW64\           
                                        
                                       
|

|76170000|imagehlp.dll         |Windows 
NT Image Helper                         
   |6.1.7601.18288  |159232  
|2013-10-18 
21:36:59|C:\Windows\SysWOW64\           
                                        
                                       
|

|761A0000|comdlg32.dll         |Common 
Dialogs DLL                             
    |6.1.7601.17514  |485888  
|2010-11-20 
05:18:24|C:\Windows\SysWOW64\           
                                        
                                       
|

|762B0000|setupapi.dll         |Windows 
Setup API                               
   |6.1.7601.17514  |1667584 
|2010-11-20 
05:21:16|C:\Windows\SysWOW64\           
                                        
                                       
|

|76460000|oleaut32.dll         |        
                                        
   |6.1.7601.19144  |572416  
|2016-02-03 
14:49:27|C:\Windows\SysWOW64\           
                                        
                                       
|

|76510000|msvcrt.dll           |Windows 
NT CRT DLL                              
   |7.0.7601.17744  |690688  
|2011-12-16 
03:52:58|C:\Windows\SysWOW64\           
                                        
                                       
|

|765C0000|gdi32.dll            |GDI 
Client DLL                              
       |6.1.7601.23418  |312832  
|2016-04-09 
02:54:54|C:\Windows\SysWOW64\           
                                        
                                       
|

|76650000|ole32.dll            
|Microsoft OLE for Windows              
            |6.1.7601.23392  |1414144 
|2016-03-17 
18:28:21|C:\Windows\SysWOW64\           
                                        
                                       
|

|767F0000|shlwapi.dll          |Shell 
Light-weight Utility Library            
     |6.1.7601.17514  |350208  
|2010-11-20 
05:21:20|C:\Windows\SysWOW64\           
                                        
                                       
|

|768A0000|shell32.dll          |Windows 
Shell Common Dll                        
   |6.1.7601.18952  
|12875776|2015-08-06 
13:44:51|C:\Windows\SysWOW64\           
                                        
                                       
|

|774F0000|KERNELBASE.dll       |Windows 
NT BASE API Client DLL                  
   |6.1.7601.23418  |275456  
|2016-04-09 
02:54:54|C:\Windows\SysWOW64\           
                                        
                                       
|

|77690000|cfgmgr32.dll         
|Configuration Manager DLL              
            |6.1.7601.17621  |145920  
|2011-05-24 
06:39:38|C:\Windows\SysWOW64\           
                                        
                                       
|

|77760000|devobj.dll           |Device 
Information Set DLL                     
    |6.1.7601.17621  |64512   
|2011-05-24 
06:40:05|C:\Windows\SysWOW64\           
                                        
                                       
|

|777A0000|sechost.dll          |Host 
for SCM/SDDL/LSA Lookup APIs            
      |6.1.7601.18869  |92160   
|2015-05-25 
14:01:39|C:\Windows\SysWOW64\           
                                        
                                       
|

|77BC0000|ntdll.dll            |NT 
Layer DLL                               
        |6.1.7601.23418  |1314112 
|2016-04-09 
02:57:34|C:\Windows\SysWOW64\           
                                        
                                       
|

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Processes Information:

----------------------





Assembler Information:

--------------------------------------------------------------------------------

; Base Address: $74D000, Allocation 
Base: $400000, Region Size: 356352

; Allocation Protect: 
PAGE_EXECUTE_WRITECOPY, Protect: 
PAGE_EXECUTE_READ

; State: MEM_COMMIT, Type: MEM_IMAGE



;

; DIRegEx_Api.? (Line=0 - Offset=8071)

; ------------------------------------

0074D797  56            PUSH ESI

0074D798  57            PUSH EDI

0074D799  8945FC        MOV  [EBP-4], 
EAX

0074D79C  8BF2          MOV  ESI, EDX

0074D79E  33C0          XOR  EAX, EAX

0074D7A0  8BD6          MOV  EDX, ESI

0074D7A2  8B5D0C        MOV  EBX, 
[EBP+$0C]

0074D7A5  8945F8        MOV  [EBP-8], 
EAX

0074D7A8  81E2007F0000  AND  EDX, 
$00007F00

0074D7AE  8BF9          MOV  EDI, ECX

0074D7B0  33C9          XOR  ECX, ECX

0074D7B2  8955F4        MOV  [EBP-$0C], 
EDX

0074D7B5  894DF0        MOV  [EBP-$10], 
ECX

0074D7B8  33C0          XOR  EAX, EAX

0074D7BA  8B55FC        MOV  EDX, 
[EBP-4]

;

; Line=0 - Offset=8109

; --------------------

0074D7BD  8B12          MOV  EDX, [EDX] 
    ; <-- EXCEPTION

0074D7BF  85D2          TEST EDX, EDX

0074D7C1  7407          JZ   +7         
    ; ($0074D7CA) DIRegEx_Api.? 
(Line=0)

0074D7C3  8BC2          MOV  EAX, EDX

0074D7C5  E9B8030000    JMP  +$03B8     
    ; ($0074DB82) DIRegEx_Api.? 
(Line=0)

0074D7CA  81FF8B000000  CMP  EDI, 
$0000008B

0074D7D0  7509          JNZ  +9         
    ; ($0074D7DB) DIRegEx_Api.? 
(Line=0)

0074D7D2  8B4D10        MOV  ECX, 
[EBP+$10]

0074D7D5  83C118        ADD  ECX, $18

0074D7D8  894D10        MOV  [EBP+$10], 
ECX

0074D7DB  81FB8B000000  CMP  EBX, 
$0000008B

0074D7E1  7509          JNZ  +9         
    ; ($0074D7EC) DIRegEx_Api.? 
(Line=0)

0074D7E3  8B5508        MOV  EDX, 
[EBP+8]

0074D7E6  83C218        ADD  EDX, $18

0074D7E9  895508        MOV  [EBP+8], 
EDX

0074D7EC  83FF04        CMP  EDI, 4

0074D7EF  7C1D          JL   +$1D       
    ; ($0074D80E) DIRegEx_Api.? 
(Line=0)



Registers:

-----------------------------

EAX: 00000000   EDI: 00000001

EBX: 00000040   ESI: 00000020

ECX: 00000000   EBP: 0028EF58

EDX: 02040800   ESP: 0028EF3C

EIP: 0074D7BD   FLG: 00210246

EXP: 0074D7BD   STK: 0028EF3C



Stack:               Memory Dump:

------------------   
---------------------------------------------------------------------------

03500D84: 00000000   0074D7BD: 8B 12 85 
D2 74 07 8B C2 E9 B8 03 00 00 81 FF 8B  
....t...........

03500D80: 00000000   0074D7CD: 00 00 00 
75 09 8B 4D 10 83 C1 18 89 4D 10 81 FB  
...u..M.....M...

03500D7C: 03705258   0074D7DD: 8B 00 00 
00 75 09 8B 55 08 83 C2 18 89 55 08 83  
....u..U.....U..

03500D78: 00000044   0074D7ED: FF 04 7C 
1D 83 FF 07 7F 18 83 C7 F8 C1 E7 02 83  
..|.............

03500D74: 00000000   0074D7FD: C7 18 89 
7D 10 BF 8B 00 00 00 C7 45 F0 01 00 00  
...}.......E....

03500D70: 00000040   0074D80D: 00 83 FB 
04 7C 1B 83 FB 07 7F 16 83 C3 F8 B8 01  
....|...........

03500D6C: FFFFFFFF   0074D81D: 00 00 00 
C1 E3 02 83 C3 18 89 5D 08 BB 8B 00 00  
..........].....

03500D68: 0075377A   0074D82D: 00 81 E6 
FF 80 FF FF 83 FE 20 0F 8C 7E 02 00 00  
......... ..~...

03500D64: 0028EFA4   0074D83D: 83 FE 2F 
0F 8F 75 02 00 00 F6 45 F5 01 74 24 83  
../..u....E..t$.

03500D60: 02040800   0074D84D: FB 3F 7F 
1F 3B FB 75 1B 83 FE 21 7C 05 83 FE 24  
.?..;.u...!|...$

03500D5C: 00000000   0074D85D: 7E 11 83 
FE 29 7C 05 83 FE 2C 7E 07 33 C0 E9 12  
~...)|...,~.3...

03500D58: 00000000   0074D86D: 03 00 00 
83 FE 28 7C 0A C7 45 F8 01 00 00 00 83  
.....(|..E......

03500D54: 00000000   0074D87D: EE 08 F6 
C3 40 74 52 8B D6 83 EA 21 74 0B 4A 74  
....@tR....!t.Jt

03500D50: 02040800   0074D88D: 12 4A 74 
18 4A 74 1E EB 23 33 C9 8A 4D 08 89 4D  
.Jt.Jt..#3..M..M

03500D4C: 0028F17C   0074D89D: 08 EB 19 
0F BE 55 08 89 55 08 EB 10 0F B7 4D 08  
.....U..U.....M.

03500D48: 00000000   0074D8AD: 89 4D 08 
EB 07 0F BF 55 08 89 55 08 83 7D F0 00  
.M.....U..U..}..







Other related posts: