NetTalk Central

Author Topic: Memory Block Free'd Twice Error Part 2  (Read 3787 times)

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Memory Block Free'd Twice Error Part 2
« on: May 21, 2014, 05:51:21 PM »
Hi Bruce,

A client got the memory block error today but there was no GPF or Exception error log, only a C80LOG.txt file that contained:

Error: memory block free'd twice
01373EBF  0001:00082EBF ClaRUN.dll
00D7ECDB  0001:0097DCDB klws.exe
00595113  0001:00194113 klws.exe
013B0F9F  0001:000BFF9F ClaRUN.dll
013B0CC5  0001:000BFCC5 ClaRUN.dll
----------------------------------

How can I debug this further?

Regards,
Trent

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Memory Block Free'd Twice Error Part 2
« Reply #1 on: May 21, 2014, 09:27:43 PM »
>> How can I debug this further?

with difficulty I imagine.

However, I'd probably start by turning on the "log to disk" functionality. That way you'd at least be able to see the last few incoming requests, and from there see if you can spot a pattern. You'd need to get a few GPF's to make this useful.

If you can spot a trend - like for example if there's a request to generate a report, or some specific form, then you can start looking at the code around that procedure. Better yet you might be able to figure out how to create the GPF "on demand".

Cheers
Bruce

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Memory Block Free'd Twice Error Part 2
« Reply #2 on: May 25, 2014, 05:36:09 PM »
Hi Bruce,

Here is some extra debug information for when this error message appears:

Code: [Select]
memory block free'd twice
Process PID=768  Image: C:\Program Files\LCP_PROD\kwiklook\WebServer\klws.exe
Thread 3  Handle=000005F8  TID=3968

Stack frame: 0559FD84

Call Stack:
0040FBC0  ABFILE.CLW:985 - FILEMANAGER.INIT(FILE,ERRORCLASS)
00CDB1FB  klws_BC0.CLW:479 - HIDE:ACCESS:DEBUGLOG.USEFILE(BYTE)
00CDB1C4  klws_BC0.CLW:476 - HIDE:ACCESS:DEBUGLOG.USEFILE(BYTE)
005951EA  klws003.clw:41 - R$OPENFILES
0059532F  klws003.clw:26 - DEBUG(STRING)
00592A14  klws002.clw:623 - P_WEB.NOTIFYDELETESESSION
00D7ED05  NetWeb.Clw:2813 - NETWEBSERVERWORKER.PROCESSREQUEST(STRING)
00595113  klws002.clw:65 - WebHandler
013B0F9F - ThreadLaunch_EH::Run(void)

Clarion modules:
012F0000  08.00:9759  C:\Program Files\LCP_PROD\kwiklook\WebServer\ClaRUN.dll
00320000  08.00:9759  C:\Program Files\LCP_PROD\kwiklook\WebServer\ClaASC.dll
02350000  08.00:9661  C:\Program Files\LCP_PROD\kwiklook\WebServer\claDF.dll
00340000  08.00:9759  C:\Program Files\LCP_PROD\kwiklook\WebServer\ClaDOS.dll
02330000  08.00:9661  C:\Program Files\LCP_PROD\kwiklook\WebServer\ClaMEM.dll
00360000  08.00:9759  C:\Program Files\LCP_PROD\kwiklook\WebServer\ClaMSS.dll
13000000  08.00:8778  C:\Program Files\LCP_PROD\kwiklook\WebServer\CLAnet.dll
003B0000  08.00:9759  C:\Program Files\LCP_PROD\kwiklook\WebServer\ClaTPS.dll
13200000  08.00:8778  C:\Program Files\LCP_PROD\kwiklook\WebServer\CLAWE.dll
003D0000  08.00:8421  C:\Program Files\LCP_PROD\kwiklook\WebServer\im4x80x.dll
00400000  08.00:9759  C:\Program Files\LCP_PROD\kwiklook\WebServer\klws.exe

Thread stack:
0559FD80: E0 79 39 05  A0 FD 59 05  C0 FB 40 00  74 64 F1 00
0559FD90: E0 79 39 05  74 64 F1 00  E0 79 39 05  78 E2 12 06
0559FDA0: D0 FD 59 05  FB B1 CD 00  5C 84 82 7C  94 94 E8 00
0559FDB0: 05 00 00 00  F5 F3 3A AC  79 39 05 88  79 39 05 64
0559FDC0: 79 39 05 40  79 39 05 E0  79 39 05 05  78 E2 12 06
0559FDD0: 00 FE 59 05  C4 B1 CD 00  5C 84 82 7C  94 94 E8 00
0559FDE0: 02 00 00 00  42 05 00 AC  79 39 05 88  79 39 05 64
0559FDF0: 79 39 05 40  79 39 05 E0  79 39 05 02  78 E2 12 06
0559FE00: 1C FE 59 05  EA 51 59 00  0E 6D E4 77  E8 03 00 00
0559FE10: 54 01 3A 05  1C FE 59 05  50 FE 59 05  50 FE 59 05
0559FE20: 2F 53 59 00  00 00 00 00  C4 5C E1 00  20 00 00 00
0559FE30: A4 FE 59 E0  A9 1A 08 20  00 00 00 F8  52 17 06 54
0559FE40: 01 3A 05 E0  79 39 05 C4  E9 3D 05 00  50 FE 59 05
0559FE50: A4 FE 59 05  14 2A 59 00  DC FF 59 05  2F 59 FA 04
0559FE60: A4 FE 59 05  78 FE 59 05  F0 D7 E2 00  00 00 00 00
0559FE70: C4 5C E1 00  08 00 FA 04  14 BF 39 05  BC FD 39 05
0559FE80: CC 3A 40 05  5C C8 39 05  EC FD 39 05  F0 C8 40 05
0559FE90: 80 C0 39 05  B0 C8 39 05  08 00 FA 04  A4 FE 59 05
0559FEA0: FC FE 59 05  D8 FE 59 05  05 ED D7 00  DC FF 59 05
0559FEB0: C5 0C 3B 01  D8 FE 59 05  CC FE 59 05  F0 D7 E2 00
0559FEC0: 5C 84 82 7C  00 00 00 00  08 00 FA 04  C0 C5 17 06
0559FED0: 5D 01 00 00  08 00 FA 04  FC FE 59 05  13 51 59 00
0559FEE0: 64 FF 59 05  64 FF 59 05  70 95 05 05  5D 01 00 00
0559FEF0: 78 82 17 06  08 00 FA 04  FC FE 59 05  18 FF 59 05
0559FF00: 9F 0F 3B 01  F4 6A 42 01  96 8F 40 01  64 FF 59 05
0559FF10: 47 FF 59 05  B7 FA 3A 01  EC FF 59 05  C5 0C 3B 01
0559FF20: DC FF 59 05  DC FF 59 05  B1 8F 40 01  64 FF 59 05
0559FF30: 64 FF 59 05  00 00 00 00  20 05 7B 03  C5 0C 3B 01
0559FF40: 64 FF 59 05  00 00 00 00  A0 FF 59 05  EC FF 59 05
0559FF50: 64 FF 59 05  20 05 7B 03  5C 84 82 7C  88 FF 59 05
0559FF60: 20 05 7B 03  F4 6A 42 01  00 00 00 00  04 00 00 00
0559FF70: 74 6B 42 01  20 05 7B 03  90 B4 41 01  A4 B4 41 01
0559FF80: C0 B4 41 01  B4 B4 41 01  DC B4 41 01  D0 B4 41 01
0559FF90: 00 00 00 00  64 0D 3B 01  00 00 00 00  20 05 7B 03
0559FFA0: 00 00 00 00  14 B0 00 00  00 00 00 00  00 00 00 00
0559FFB0: 4E 52 C6 15  7B 07 00 00  06 00 00 00  4F 48 E6 77
0559FFC0: 20 05 7B 03  00 00 00 00  00 00 00 00  20 05 7B 03
0559FFD0: 00 00 00 00  C4 FF 59 05  40 3D 83 80  FF FF FF FF
0559FFE0: 78 1A E6 77  58 48 E6 77  00 00 00 00  00 00 00 00
0559FFF0: 00 00 00 00  D4 0C 3B 01  20 05 7B 03  00 00 00 00

Regards,
Trent