NetTalk Central

Author Topic: Memory Block Free'd Twice Error  (Read 10884 times)

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Memory Block Free'd Twice Error
« on: May 18, 2014, 06:19:03 PM »
Hi Bruce,

I've receiving this error message in the WebHandler.DeleteSession method which is causing my WebServer to crash all the time. There is code in the DeleteSession embed to cleanup some In-Memory tables and update the UserLogin MS SQL table:

Code: [Select]
  debug('Clean Up IMDD Files by SessionID')
  start(CleanupIMDD, 25000, clip(p_web.SessionID), 'ALL') ! This just loops through each In-Memory table, finds records that are related to the SessionID, adds the record ID's to a queue, loops through the queue and deletes the In-Memory rows that match

  debug('Update User Login Record for log off')
  p_web.OpenFile(UserLogin)
  ULG:SessionID = p_web.GSV('ULG_SessionID')
  p_web.SetSqlTimeout(UserLogin,net:on)
  If not access:UserLogin.tryfetch(ULG:KeySessionID)
    p_web.SetSqlTimeout(UserLogin,net:off)
    ULG:EndDate = today()
    ULG:EndTime = clock()
    ULG:EndMethod = 'Logoff'
    p_web.SetSqlTimeout(UserLogin,net:on)
    access:UserLogin.update()
    p_web.SetSqlTimeout(UserLogin,net:off)
  ELSE
    p_web.SetSqlTimeout(UserLogin,net:off)
  end!if
  USR:SysID = p_web.GSV('UserID')
  p_web.SetSqlTimeout(User,net:on)
  If not access:User.tryfetch(USR:KeySysID)
    p_web.SetSqlTimeout(User,net:off)
    USR:SessionID = 0
    USR:ComputerName = ''
    USR:SessionDate = 0
    USR:SessionTime = 0
    p_web.SetSqlTimeout(User,net:on)
    access:User.update()
    p_web.SetSqlTimeout(User,net:off)
  ELSE
    p_web.SetSqlTimeout(User,net:off)
  end!if
  p_web.CloseFile(UserLogin)

In the debug I see something like this:

[1672] [Net] [1] NetWebServer._GarbageCollector - SessionID = wpZUvNmXJ9fW0ZGjN2SBWfmKRvxdPH has expired.
[1672] [Net] [1] NetWebServer._GarbageCollector - SessionID = XVe404gW8qMsdqxA9rm3TPHSVwNPps has expired.
[1672] [Net] [1] NetWebServer._GarbageCollector - SessionID = NEW0ZvHhFgrWejFF0rnxDwlfHKExDG has expired.
[1672] [Net] [3] _NetAll._LoggingSetup - Initialisation
[1672] [Net] [3] _NetAll._LoggingSetup - Initialisation
[1672] [Net] [4] _NetAll._LoggingSetup - Initialisation
[1672] [Net] [4] _NetAll._LoggingSetup - Initialisation
[1672] [Net] [5] _NetAll._LoggingSetup - Initialisation
[1672] [Net] [5] _NetAll._LoggingSetup - Initialisation
[1672] [KLWS] 10:44:20 Clean Up IMDD Files by SessionID
[1672] [KLWS] 10:44:20 Update User Login Record for log off
[1672] [KLWS] 10:44:20 Clean Up IMDD Files by SessionID
[1672] [KLWS] 10:44:20 Clean Up IMDD Files by SessionID

And then the crash happens. I don't see the debug that is in the 'CleanupIMDD' procedure at all.

Do you have any ideas why this is happening?

Regards,
Trent

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Memory Block Free'd Twice Error
« Reply #1 on: May 18, 2014, 11:01:58 PM »
Hi Trent,

Ideally your code should be in NotifyDeleteSession, not DeleteSession method.

Also, you do not have access to the SessionQueue at this point. So your line;
ULG:SessionID = p_web.GSV('ULG_SessionID')
should be
ULG:SessionID = p_web.SessionId

also
  USR:SysID = p_web.GSV('UserID')
needs to contain the Session value as the key, not the UserID. Since the UserID is unknown at this point.

If ULG and USR are memory tables, then I don't think you need to wrap the code in a Sql Timeout call.

Cheers
Bruce

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error
« Reply #2 on: May 18, 2014, 11:11:43 PM »
Hi Bruce,

Sorry I didn't notice those mistakes! I've moved the code to the NotifyDeleteSession and changed it to:

Code: [Select]
  debug('Clean Up IMDD Files by SessionID')
  start(CleanupIMDD, 25000, clip(p_web.SessionID), 'ALL')

  debug('Update User Login Record for log off')
  p_web.OpenFile(UserLogin)
  p_web.OpenFile(User)
  ULG:SessionID = clip(p_web.SessionID)
  p_web.SetSqlTimeout(UserLogin,net:on)
  If not access:UserLogin.tryfetch(ULG:KeySessionID)
    p_web.SetSqlTimeout(UserLogin,net:off)
    ULG:EndDate = today()
    ULG:EndTime = clock()
    ULG:EndMethod = 'Logoff'
    p_web.SetSqlTimeout(UserLogin,net:on)
    access:UserLogin.update()
    p_web.SetSqlTimeout(UserLogin,net:off)
  ELSE
    p_web.SetSqlTimeout(UserLogin,net:off)
  end!if
  if ULG:StaffID
    USR:SysID = ULG:StaffID
    p_web.SetSqlTimeout(User,net:on)
    If not access:User.tryfetch(USR:KeySysID)
      p_web.SetSqlTimeout(User,net:off)
      USR:SessionID = 0
      USR:ComputerName = ''
      USR:SessionDate = 0
      USR:SessionTime = 0
      p_web.SetSqlTimeout(User,net:on)
      access:User.update()
      p_web.SetSqlTimeout(User,net:off)
    ELSE
      p_web.SetSqlTimeout(User,net:off)
    end!if
  end!If
  p_web.CloseFile(UserLogin)
  p_web.CloseFile(User)

The User and UserLogin are MS SQL tables. Will let you know how this goes tomorrow.

Regards,
Trent

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error
« Reply #3 on: May 20, 2014, 02:24:02 AM »
Hi Bruce,

I'm still getting the memory error and also a GPF that seems to be coming from xFiles even though I don't use any xFiles objects in my WebServer. Maybe this is something in NT8?

Here is the GPF:

Code: [Select]
Program : D:\FutureIT\kwiklook\WebServer\klws.exe
Version : 5.0.0.243
At : 16:05:22 on 2014/05/20
Workstation: : AUCLYKWIK01
User Name: : futureit
Reported error : EXCEPTION_ACCESS_VIOLATION - Error writing data at : 08162CE8h
Windows : Win 2008 R2-, Terminal Server 6.1.7600
Clarion : 0.801
Thread : 3 Field : 0 Event : 0 Keycode : 0
Error at address : 08162CE8h  no module
Stack Trace
??? 00E9E3A0h Line ?=4900 no proc Src=xFiles.clw
??? 0040CE85h Line=493 Proc=FUNCTIONCALLED_@_FILECALLBACKINTERFACE_@_FILEMANAGER@F21FILECALLBACKINTERFACEl6PARAMSRscRsc  Src=ABFILE.CLW
??? 01680840h Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 00F09848h Line ?=4900 no proc Src=xFiles.clw
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 0051D29Fh Line=2923 Proc=klws_FC1$$$__detach_thread  Src=klws_FC1.CLW
[01] 01628C4Dh no line number Proc=9exp_array__remove@FUii  Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
[02] 0161DAF0h no line number Proc=call_dtors@FP15UNIT_DESCRIPTORUc  Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 01694A01h Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 0100E15Ah Line ?=4900 no proc Src=xFiles.clw
??? 01000000h Line ?=4900 no proc Src=xFiles.clw
??? 01694ABCh Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 01676F2Ah Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
[03] 0161D8A4h no line number Proc=__detach@FP15UNIT_DESCRIPTORP6THREADi  Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 01676F45h Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 00F26000h Line ?=4900 no proc Src=xFiles.clw
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 00595152h Line=3642 Proc=WebHandler Src=klws002.clw
??? 016949DCh Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 01676F2Ah Line ?=26 no proc Src=wxeh.cpp Module=D:\FutureIT\kwiklook\WebServer\ClaRUN.dll 8.0.9759
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
??? 00E15A48h Line ?=4900 no proc Src=xFiles.clw
[04] 77999F02h no debug info, Module=C:\Windows\SysWOW64\ntdll.dll 6.1.7600.16385 (win7_rtm.090713-1255)
[05] 77999ED5h no debug info, Module=C:\Windows\SysWOW64\ntdll.dll 6.1.7600.16385 (win7_rtm.090713-1255)

Line 4900 in xFiles.clw is:

xFileBase.Construct  PROCEDURE
  CODE
  self.AppName = 'xFiles' <<This line here

Any ideas?

Regards,
Trent
« Last Edit: May 20, 2014, 09:55:47 PM by trent »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Memory Block Free'd Twice Error
« Reply #4 on: May 20, 2014, 03:06:07 AM »
Hi Trent,

Couple of hints from that GPF Report;

the GPF is on Thread 3. So this is presumably when the thread is either being constructed or disposed. (was ther more in the log? The lines starting with [n] (where n is a number) are the interesting ones, the ones starting with ??? are less interesting.

the most common reason for a GPF when having xFiles is that you haven't set the settings on the Multi-DLL tab of the xFiles global extension correctly - in the Data DLL or this app. (or possibly in one of the other apps in your suite.)

Cheers
Bruce



trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error
« Reply #5 on: May 20, 2014, 02:15:18 PM »
Ok well...

The WebServer is just a single exe, not multi-dll.

Line 493 of ABFile.clw is the FileManager.FileCallBackInterface.FunctionCalled method.

Line 2923 of klws_FC1.clw is the end of the file.

Line 3642 of the WebHandler module is the end of the file.

The xFiles template options have 'Free Queues before loading' - could this be freeing something twice?

There was no more in the log, BUT there was another log for the stack trace that was gobble-dee-gook to me:

Code: [Select]
Exception occurred at address 00254E0B
Exception code C0000005: Access Violation
Process PID=3128  Image: D:\FutureIT\kwiklook\WebServer\klws.exe
Thread 3  Handle=00000758  TID=3096

Exception parameters:
00000000
0000034C

EAX=08240948    EBX=0000000E    ECX=076A8A28    EDX=00281004
ESI=013F3320    EDI=00000000    EBP=10C3F1D4    ESP=10C3F114
EIP=00254E0B    FLG=00010283

Call Stack:
00254E0B
0161D8A4
779BA516
779BA3B8
76137363
0043FDA7
00D1536C
004417ED
0161709D
779A6AC9

Clarion modules:
01560000  08.00:9759  D:\FutureIT\kwiklook\WebServer\ClaRUN.dll
00020000  08.00:9759  D:\FutureIT\kwiklook\WebServer\ClaASC.dll
02350000  08.00:9661  D:\FutureIT\kwiklook\WebServer\claDF.dll
00230000  08.00:9759  D:\FutureIT\kwiklook\WebServer\ClaDOS.dll
02330000  08.00:9661  D:\FutureIT\kwiklook\WebServer\ClaMEM.dll
00250000  08.00:9759  D:\FutureIT\kwiklook\WebServer\ClaMSS.dll
00400000  08.00:9759  D:\FutureIT\kwiklook\WebServer\klws.exe

Thread stack:
10C3F110: 20 33 3F 01  00 01 00 00  50 2A 3F 01  D4 F1 C3 10
10C3F120: 34 F1 C3 10  01 00 00 00  04 10 28 00  00 00 00 00
10C3F130: 20 33 3F 01  00 00 01 00  A0 58 26 00  CE 00 08 01
10C3F140: 73 3D 25 00  00 01 00 00  A0 46 28 00  D4 F1 C3 10
10C3F150: 64 F1 C3 10  D0 48 28 00  04 10 28 00  3E F2 C3 10
10C3F160: 50 2A 3F 01  84 58 26 00  04 10 28 00  3E F2 C3 10
10C3F170: D0 48 28 00  AA 5D 26 00  04 10 28 00  3E F2 C3 10
10C3F180: A8 44 28 00  D4 5D 26 00  FB DA 61 01  CC F3 C3 10
10C3F190: A4 D8 61 01  D4 F1 C3 10  AC F1 C3 10  11 4A 69 01
10C3F1A0: 04 10 28 00  3E F2 C3 10  04 10 28 00  00 50 28 14
10C3F1B0: 00 00 00 04  10 28 00 11  00 00 00 11  2A DA 61 01
10C3F1C0: BC 4A 69 01  2A 6F 67 01  3E F2 C3 10  DC ED C3 10
10C3F1D0: 2C EE C3 10  38 F3 C3 10  A4 D8 61 01  CC F3 C3 10
10C3F1E0: CC F3 C3 10  45 6F 67 01  3E F2 C3 10  20 05 3F 04
10C3F1F0: 00 50 28 00  3E F2 C3 10  A4 D8 61 01  3E F2 C3 10
10C3F200: 04 10 28 00  01 00 00 00  38 F3 C3 10  20 F2 C3 10
10C3F210: 20 05 3F 04  00 F0 FF FF  01 00 00 00  04 10 28 00
10C3F220: 30 74 4A 01  90 F2 20 05  3F 04 04 10  28 00 3E F2
10C3F230: C3 10 3E F2  C3 10 01 00  00 00 64 DA  61 01 BC 4A
10C3F240: 69 01 CC F1  C3 10 04 00  00 00 3C 4B  69 01 20 05
10C3F250: 3F 04 78 93  68 01 8C 93  68 01 A8 93  68 01 9C 93
10C3F260: 68 01 C4 93  68 01 B8 93  68 01 00 00  00 00 64 DA
10C3F270: 61 01 04 10  28 00 11 01  C0 74 4A 01  00 00 00 00
10C3F280: 00 00 00 00  01 00 00 00  EC F2 C3 10  00 00 3F 04
10C3F290: EC F2 C3 10  09 41 61 01  38 F3 C3 10  D9 EE 61 01
10C3F2A0: 20 05 3F 04  00 F0 FF FF  00 00 00 00  20 05 3F 04
10C3F2B0: DD D7 61 01  01 00 00 00  04 10 28 00  38 F3 C3 10
10C3F2C0: D4 F2 C3 10  01 00 00 00  00 F0 FF FF  00 00 00 00
10C3F2D0: 04 10 28 00  00 00 00 00  05 00 00 00  EC F2 C3 10
10C3F2E0: 20 05 3F 04  20 05 3F 04  01 00 00 00  00 00 00 00
10C3F2F0: FF FF FF FF  01 D5 61 01  01 00 00 00  2C F3 C3 10
10C3F300: 38 F3 C3 10  18 F3 C3 10  04 10 28 00  00 00 00 00
10C3F310: 01 00 00 00  00 00 25 00  2D 19 25 00  60 99 99 77
10C3F320: 00 00 25 00  00 00 00 00  01 00 00 00  E0 97 47 01
10C3F330: 01 00 00 00  50 98 47 01  DC F3 C3 10  16 A5 9B 77
10C3F340: 40 19 25 00  00 00 25 00  00 00 00 00  01 00 00 00
10C3F350: 90 6D C0 63  C0 20 A6 77  00 21 A6 77  00 00 00 00
10C3F360: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F370: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F380: 00 00 00 00  24 00 00 00  01 00 00 00  00 00 00 00
10C3F390: 00 00 00 00  30 00 00 00  FF FF FF FF  FF FF FF FF
10C3F3A0: F7 A4 9B 77  00 00 00 00  54 00 56 00  28 1E 46 01
10C3F3B0: 50 98 47 01  00 E0 FD FF  E0 97 47 01  40 19 25 00
10C3F3C0: 00 30 FA FF  50 F3 C3 10  00 00 00 00  8C F5 C3 10
10C3F3D0: E5 0A 9D 77  A4 23 9B 04  01 00 00 00  F0 F3 C3 10
10C3F3E0: B8 A3 9B 77  00 FE C3 10  B2 34 DF 00  00 00 00 00
10C3F3F0: 04 F4 C3 10  63 73 13 76  00 00 00 00  B0 F3 E8 77
10C3F400: FF FF FF FF  18 F5 C3 10  A7 FD 43 00  00 00 00 00
10C3F410: 72 FE C3 10  00 00 00 00  3C 49 EB 00  04 3F F1 00
10C3F420: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F430: 00 00 00 00  00 00 00 00  00 00 00 00  6F 12 83 C0
10C3F440: CA A1 E9 3F  B0 F6 C3 10  00 00 00 00  00 00 00 00
10C3F450: B0 F6 C3 10  00 00 00 00  60 F6 C3 10  00 00 00 00
10C3F460: 00 00 00 00  60 F6 C3 10  00 00 00 00  04 3F F1 00
10C3F470: 00 00 00 00  00 00 00 00  04 3F F1 00  00 00 00 00
10C3F480: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F490: 00 00 00 00  00 00 00 00  00 00 00 00  FF FF FF FF
10C3F4A0: 04 3F F1 00  00 00 00 00  00 00 00 00  B0 F6 C3 10
10C3F4B0: 00 00 00 00  00 00 00 00  00 00 00 00  D0 0E 93 07
10C3F4C0: 00 00 00 00  00 00 00 00  00 00 00 00  F1 61 58 00
10C3F4D0: 74 30 01 00  00 00 00 00  05 00 00 C0  04 3F F1 00
10C3F4E0: 00 00 00 00  00 00 00 00  08 00 F5 07  D0 86 76 10
10C3F4F0: 30 A8 5A 07  00 00 00 00  00 00 00 00  08 C9 A2 07
10C3F500: FD 00 00 C0  60 F6 C3 10  00 00 00 00  00 00 00 00
10C3F510: 10 2E DF 00  18 F5 C3 10  30 F5 C3 10  6C 53 D1 00
10C3F520: 04 3F F1 00  00 00 00 00  04 3F F1 00  10 2E DF 00
10C3F530: 48 F5 C3 10  ED 17 44 00  00 00 00 00  9C 17 44 00
10C3F540: 00 00 00 00  7E FE C3 10  74 F5 C3 10  9D 70 61 01
10C3F550: 00 FE C3 10  BC 4A 69 01  72 FE C3 10  73 6F 67 01
10C3F560: 72 FE C3 10  00 FE C3 10  00 00 00 00  00 00 00 00
10C3F570: 00 00 00 00  98 F5 C3 10  C9 6A 9A 77  60 F6 C3 10
10C3F580: 14 FE C3 10  B0 F6 C3 10  34 F6 C3 10  14 FE C3 10
10C3F590: DD 6A 9A 77  14 FE C3 10  48 F6 C3 10  9B 6A 9A 77
10C3F5A0: 60 F6 C3 10  14 FE C3 10  B0 F6 C3 10  34 F6 C3 10
10C3F5B0: 45 6F 67 01  00 00 00 00  60 F6 C3 10  14 FE C3 10
10C3F5C0: 3D 6A 9A 77  60 F6 C3 10  14 FE C3 10  B0 F6 C3 10
10C3F5D0: 34 F6 C3 10  45 6F 67 01  50 2A 3F 01  60 F6 C3 10
10C3F5E0: 5C 3A 00 08  47 00 47 00  45 00 44 00  46 00 52 00
10C3F5F0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F600: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F610: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F620: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F630: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 C4 10
10C3F640: 00 70 C3 10  00 00 00 00  B8 FD C3 10  0F 01 97 77
10C3F650: 60 F6 C3 01  B0 F6 C3 10  60 F6 C3 10  B0 F6 C3 10
10C3F660: 05 00 00 C0  00 00 00 00  00 00 00 00  E8 2C 16 08
10C3F670: 02 00 00 00  08 00 00 00  E8 2C 16 08  00 00 00 00
10C3F680: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F690: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F6A0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F6B0: 3F 00 01 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F6C0: 00 00 00 00  00 00 00 00  00 00 00 00  7F 02 00 00
10C3F6D0: 20 00 00 00  FF FF 00 00  5F 06 D8 00  23 00 00 00
10C3F6E0: E7 83 90 05  2B 00 00 00  00 00 00 00  00 00 00 00
10C3F6F0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F700: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F710: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F720: 00 80 00 40  00 00 00 00  00 00 00 AC  0B 40 00 D0
10C3F730: 82 E1 7F 7D  4B A9 FB 3F  60 90 2A 08  2B 00 00 00
10C3F740: 53 00 00 00  2B 00 00 00  2B 00 00 00  50 2A 3F 01
10C3F750: 5C 3A 00 08  E8 A1 29 08  14 00 00 00  00 00 00 00
10C3F760: 70 BD 20 08  EC FF C3 10  D5 9E 99 77  23 00 00 00
10C3F770: 02 02 01 00  DC FF C3 10  2B 00 00 00  7F 02 20 00
10C3F780: 00 00 00 00  5F 06 D8 00  23 00 00 00  E7 83 90 05
10C3F790: 2B 00 00 00  80 1F 00 00  FF FF 00 00  00 00 00 00
10C3F7A0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F7B0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F7C0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F7D0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F7E0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F7F0: 00 00 00 80  00 40 00 00  00 00 00 00  00 00 00 00
10C3F800: 00 00 00 AC  0B 40 00 00  00 00 00 00  00 D0 82 E1
10C3F810: 7F 7D 4B A9  FB 3F 00 00  00 00 00 00  00 00 00 00
10C3F820: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F830: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F840: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F850: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F860: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F870: 00 00 00 00  00 00 00 00  00 00 00 00  53 00 2C 00
10C3F880: 45 00 52 00  52 00 4F 00  52 00 2C 00  4C 00 4F 00
10C3F890: 47 00 47 00  45 00 44 00  46 00 52 00  00 00 00 00
10C3F8A0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F8B0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F8C0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F8D0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F8E0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F8F0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F900: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F910: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F920: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F930: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F940: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F950: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F960: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3F970: 00 00 00 00  00 00 00 00  00 00 00 00  34 FD FF FF
10C3F980: E4 02 00 00  34 FD FF FF  CC 02 00 00  19 00 00 00
10C3F990: 00 00 00 00  91 58 25 00  4D 8C 62 01  50 2A 3F 01
10C3F9A0: 00 00 00 00  B8 FD C3 10  BC F9 C3 10  5C 3A 00 08
10C3F9B0: 28 8A 6A 07  00 00 00 00  14 00 00 00  70 93 25 00
10C3F9C0: 78 D1 0D 12  2C 3B 25 00  20 33 3F 01  78 D1 0D 12
10C3F9D0: 78 D1 0D 12  78 D1 0D 12  78 D1 0D 12  20 33 3F 01
10C3F9E0: 78 D1 0D 12  25 10 26 00  78 D1 0D 12  78 D1 0D 12
10C3F9F0: B8 FD C3 10  08 FA C3 10  19 05 93 07  78 D1 0D 12
10C3FA00: 16 00 00 00  78 D1 0D 12  78 D1 0D 12  7C 09 26 00
10C3FA10: 00 00 00 00  68 00 00 00  00 00 00 00  A5 DA 26 00
10C3FA20: 78 D1 0D 12  44 C1 79 10  B8 FD C3 10  40 FA C3 10
10C3FA30: 00 00 00 00  00 00 00 00  68 00 00 00  78 D1 0D 12
10C3FA40: 44 C1 79 10  B8 FD C3 10  B8 5A 27 00  68 00 00 00
10C3FA50: 44 C1 79 10  00 00 00 00  68 00 00 00  78 D1 0D 12
10C3FA60: 1E 8B 27 00  00 00 00 00  7D FB C3 10  44 C1 79 10
10C3FA70: 44 FB C3 10  44 C1 79 10  FD FF FF FF  00 00 00 00
10C3FA80: 00 00 C7 01  14 FB C3 10  6C 5C 65 04  D0 42 65 04
10C3FA90: 01 00 00 00  62 1E 00 00  1C FB C3 10  00 00 00 00
10C3FAA0: 00 00 00 00  90 1E 15 02  44 FB C3 10  24 FB C3 10
10C3FAB0: 18 FB C3 10  68 00 00 00  A0 E3 E9 00  00 00 00 00
10C3FAC0: 00 00 00 00  68 00 00 00  7D FB C3 10  68 00 00 00
10C3FAD0: 08 A0 AD 07  0C FB C3 10  85 CE 40 00  99 15 93 07
10C3FAE0: 00 01 00 00  99 16 93 07  51 00 00 00  40 08 68 01
10C3FAF0: 00 00 00 00  7D FB C3 10  68 00 00 00  00 A0 AD 01
10C3FB00: 7D FB C3 10  00 00 00 00  08 A0 AD 07  00 00 00 00
10C3FB10: 21 1D 57 01  00 00 00 00  00 00 00 00  00 00 00 00
10C3FB20: 78 D1 0D 12  00 00 00 00  59 1F 57 01  88 15 93 07
10C3FB30: 01 00 00 00  44 C1 79 10  6A 22 57 01  7D FB C3 10
10C3FB40: 44 C1 79 10  01 00 00 00  7D FB C3 10  8B 1B 57 01
10C3FB50: 68 00 00 00  44 C1 79 10  38 FC C3 10  44 C1 79 10
10C3FB60: 68 00 00 00  00 00 00 00  00 88 15 93  07 44 C1 79
10C3FB70: 10 68 00 00  00 38 FC C3  10 38 FC C3  10 00 00 00
10C3FB80: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3FB90: 00 00 00 00  00 00 00 00  00 44 C1 79  10 01 00 00
10C3FBA0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3FBB0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3FBC0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3FBD0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3FBE0: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
10C3FBF0: 00 00 00 00  00 00 00 00  00 00 00 68  00 00 00 00
10C3FC00: A1 18 57 01  0E 00 00 00  68 00 00 00  00 00 00 00
10C3FC10: 38 FC C3 10  44 C1 79 10  0D 18 57 01  48 98 F0 00
10C3FC20: 00 00 00 00  44 C1 79 10  01 00 00 00  F1 0E 57 01
10C3FC30: 68 00 00 00  44 C1 79 10  01 00 00 00  48 5A E1 00
10C3FC40: 72 FE C3 10  9F D2 51 00  24 D1 79 10  88 D0 79 10
10C3FC50: 9C CF 79 10  B0 CE 79 10  14 CE 79 10  78 CD 79 10
10C3FC60: 74 CB 79 10  E8 C9 79 10  4C C9 79 10  B0 C8 79 10
10C3FC70: EC C7 79 10  50 C7 79 10  B4 C6 79 10  18 C6 79 10
10C3FC80: 44 C1 79 10  80 C0 79 10  A4 BE 79 10  30 BE 79 10
10C3FC90: 94 BD 79 10  D0 BC 79 10  0C BC 79 10  48 BB 79 10
10C3FCA0: FC BA 79 10  B0 BA 79 10  14 BA 79 10  28 B9 79 10
10C3FCB0: 8C B8 79 10  A0 B7 79 10  64 B6 79 10  A0 B5 79 10
10C3FCC0: DC B4 79 10  F0 B3 79 10  DC B2 79 10  40 B2 79 10
10C3FCD0: 54 B1 79 10  90 B0 79 10  64 AE 79 10  A0 AD 79 10
10C3FCE0: 2C AD 79 10  F0 AB 79 10  2C AB 79 10  40 AA 79 10
10C3FCF0: 04 A9 79 10  C8 A7 79 10  2C A7 79 10  E0 A6 79 10
10C3FD00: 1C A6 79 10  58 A5 79 10  94 A4 79 10  D0 A3 79 10
10C3FD10: CC A1 79 10  08 A1 79 10  1C A0 79 10  80 9F 79 10
10C3FD20: E4 9E 79 10  48 9E 79 10  84 9D 79 10  98 9C 79 10
10C3FD30: D4 9B 79 10  E8 9A 79 10  24 9A 79 10  88 99 79 10
10C3FD40: C8 98 79 10  08 98 79 10  6C 97 79 10  80 96 79 10
10C3FD50: E4 95 79 10  48 95 79 10  AC 94 79 10  EC 93 79 10
10C3FD60: 00 93 79 10  C4 91 79 10  88 90 79 10  9C 8F 79 10
10C3FD70: 00 8F 79 10  64 8E 79 10  28 8D 79 10  8C 8C 79 10
10C3FD80: F0 8B 79 10  2C 8B 79 10  90 8A 79 10  CC 89 79 10
10C3FD90: 80 89 79 10  BC 88 79 10  20 88 79 10  FC 82 79 10
10C3FDA0: E8 81 79 10  D4 80 79 10  30 7E 79 10  54 7C 79 10
10C3FDB0: B8 7B 79 10  A4 7A 79 10  08 FE C3 10  F0 DA 61 01
10C3FDC0: C4 FF C3 10  A4 D8 61 01  08 FE C3 10  E0 FD C3 10
10C3FDD0: 01 4A 69 01  48 5A E1 00  72 FE C3 10  48 5A E1 00
10C3FDE0: C4 FF C3 05  00 00 00 48  5A E1 00 01  00 00 00 01
10C3FDF0: 2A DA 61 01  BC 4A 69 01  2A 6F 67 01  72 FE C3 10
10C3FE00: 60 F6 C3 10  B0 F6 C3 10  94 FF C3 10  A4 D8 61 01
10C3FE10: C4 FF C3 10  C4 FF C3 10  45 6F 67 01  72 FE C3 10
10C3FE20: 20 05 3F 04  00 60 F2 00  72 FE C3 10  A4 D8 61 01
10C3FE30: 72 FE C3 10  48 5A E1 00  00 00 00 00  94 FF C3 10
10C3FE40: 54 FE C3 10  20 05 3F 04  00 F0 FF FF  00 00 00 00
10C3FE50: 48 5A E1 00  CC FE C3 10  6C FE 20 05  3F 04 48 5A
10C3FE60: E1 00 72 FE  C3 10 72 FE  C3 10 00 00  00 00 64 DA
10C3FE70: 61 01 BC 4A  69 01 00 FE  C3 10 04 00  00 00 3C 4B
10C3FE80: 69 01 20 05  3F 04 78 93  68 01 8C 93  68 01 A8 93
10C3FE90: 68 01 9C 93  68 01 C4 93  68 01 B8 93  68 01 00 00
10C3FEA0: 00 00 64 DA  61 01 48 5A  E1 00 01 00  52 51 59 00
10C3FEB0: 34 FF C3 10  34 FF C3 10  00 00 00 00  00 00 00 00
10C3FEC0: 48 AB 41 11  08 00 E7 07  CC FE C3 10  E8 FE C3 10
10C3FED0: 33 EF 61 01  DC 49 69 01  2A 6F 67 01  94 FF C3 10
10C3FEE0: BE D6 61 01  DD D7 61 01  00 00 00 00  20 05 3F 04
10C3FEF0: 94 FF C3 10  08 FF C3 10  00 00 00 00  00 F0 FF FF
10C3FF00: 5B C1 15 76  48 5A E1 00  67 EF 61 01  0A 00 00 00
10C3FF10: 4F 40 1D 76  79 73 92 87  20 05 3F 04  5B C1 15 76
10C3FF20: 34 D5 61 01  48 5A E1 00  45 D5 61 01  00 00 00 00
10C3FF30: 01 00 00 00  48 5A E1 00  57 D4 61 01  00 00 00 00
10C3FF40: C4 F1 61 01  00 00 00 00  70 FF C3 10  94 FF C3 10
10C3FF50: 64 FF C3 10  20 05 3F 04  00 00 00 00  D9 2D 14 75
10C3FF60: 20 05 3F 04  FF EC 61 01  00 00 00 00  20 05 3F 04
10C3FF70: 00 00 00 00  14 B0 00 00  00 00 00 00  00 00 00 00
10C3FF80: C5 B0 9A 05  0E 04 00 00  3C 02 00 00  77 36 13 76
10C3FF90: 20 05 3F 04  D4 FF C3 10  02 9F 99 77  20 05 3F 04
10C3FFA0: 98 61 C0 63  00 00 00 00  00 00 00 00  20 05 3F 04
10C3FFB0: 00 00 00 00  00 00 00 00  00 00 00 00  A0 FF C3 10
10C3FFC0: 00 00 00 00  E4 FF C3 10  E5 0A 9D 77  1C 5B 9B 04
10C3FFD0: 00 00 00 00  EC FF C3 10  D5 9E 99 77  68 EC 61 01
10C3FFE0: 20 05 3F 04  FF FF FF FF  CD 76 A2 77  00 00 00 00
10C3FFF0: 00 00 00 00  68 EC 61 01  20 05 3F 04  00 00 00 00

Regards,
Trent
« Last Edit: May 20, 2014, 09:55:26 PM by trent »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Memory Block Free'd Twice Error
« Reply #6 on: May 20, 2014, 09:34:31 PM »
copy the debug runtime binary from \clarion\bin\debug into the app folder and then get the GPF again. That may flesh out the report below.

Does the GPF happen immediately with the first request, or does it take a specific request to cause it?

cheers
Bruce

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error
« Reply #7 on: May 20, 2014, 09:54:47 PM »
Hi Bruce,

It takes a while for the GPF to happen, definitely not on first request.

Copying debug files now and will post when it happens again.

Regards,
Trent

Mark Sarson

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error
« Reply #8 on: January 15, 2016, 04:09:21 AM »
Hi Trent

I would be very interested in knowing if this problem was solved as I am having similar issues with my web server at the moment. Random crashes and lockups. I had put this down to problems with the IMDD, but am unable to prove this.

Kind regards

Mark

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Memory Block Free'd Twice Error
« Reply #9 on: January 15, 2016, 05:31:07 AM »
Hi Mark,

what backend are you using?

Mark Sarson

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error
« Reply #10 on: January 15, 2016, 06:42:55 AM »
Hi Kevin

Topspeed at the moment, but moving to SQL when I can get the crashes out of the way.