close
Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#234 closed bug (fixed)

Hits if i close a read window.

Reported by: opiopi Owned by: tboeckel
Priority: undecided Milestone: YAM 2.7
Component: user interface Version: nightly build
Severity: major Keywords:
Cc: OS Platform:
Blocked By: Blocking:
Release Notes:

Description

I get every time if i close a read window a hit like:

Clear memory cookie at 0d6cda5c was found defective.
...

Now i read the MuGuardianAngel guide about that and follow
the mentioned hints and increase the PRESIZE and POSTSIZE.

Now i get attached hit. The Stacktrace points to
YAM_RE.c: line 4409.:

D(DBF_GUI, "cleaning up readwindow");
DoMethod(G->App, OM_REMMEMBER, rmData->readWindow);
MUI_DisposeObject(rmData->readWindow);

-> rmData->readWindow = NULL;

I not yet understand why rmData->readWindow is not valid.
the stuct rmData itself should be still valid also after
a OM_REMMEMBER and a MUI_DisposeObject(rmData->readWindow);

so we should be able to write to rmData->readWindow....

Attachments (2)

YAM-Hit-11.11.2010-1.txt_lines.txt (14.0 KB) - added by opiopi 4 years ago.
YAM_RE.c.diff (643 bytes) - added by opiopi 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by opiopi

comment:1 Changed 4 years ago by tboeckel

  • Status changed from new to pending

I am really sorry, but I cannot reproduce this issue. Although I cannot run tools like MuGuardianAngel on WinUAE, but neither with all other debugging tools nor on AmigaOS4 I get hits or crashes or anything. And especially OS4 is very picky about accessing already freed memory. If there is anything fishy I am sure anybody would have noticed this in the meantime.

Are you running some kind of "hacky" or instable patches like the well known "MasterCrashProgram" which might have a bad influence?

comment:2 follow-up: Changed 4 years ago by opiopi

  • Status changed from pending to accepted

My gcc installation seems to work again so i can compile
YAM again. I add some debug output to the file YAM_RE.c
(see attached diff file) and get the follow output in
a "@all all" log with output from the debugtools redirected
to the same console:

00:D:  YAM_RE.c:4382:doing a full cleanup
00:D:  YAM_RE.c:4406:cleaning up readwindow
00:C:  YAM_RE.c:4407:rmData = 177775668, 0x0A98A434
00:C:  YAM_RE.c:4408:rmData->readWindow = 181260232, 0x0ACDCFC8
00:C:  YAM_RE.c:4411:rmData = 177775668, 0x0A98A434
00:C:  YAM_RE.c:4412:rmData->readWindow = 181260232, 0x0ACDCFC8
00:C:  ReadWindowStatusBar.c:275:Entering m_ReadWindowStatusBar_OM_DISPOSE
00:C:   ReadWindowStatusBar.c:172:Entering RemoveAllChildren
00:C:   ReadWindowStatusBar.c:195:Leaving RemoveAllChildren
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:   ImageArea.c:468:Entering m_ImageArea_OM_DISPOSE
00:C:   ImageArea.c:478:Leaving m_ImageArea_OM_DISPOSE (result 0x00000000, 0)
00:C:  ReadWindowStatusBar.c:303:Leaving m_ReadWindowStatusBar_OM_DISPOSE (result 0x00000000, 0)
00:C:  ReadMailGroup.c:592:Entering m_ReadMailGroup_OM_DISPOSE
00:C:   YAM_RE.c:4480:Entering ClearHeaderList
00:C:   YAM_RE.c:4495:Leaving ClearHeaderList
00:C:   AllocSysObject.c:673:Entering FreeSysObject
00:C:   AllocSysObject.c:746:Leaving FreeSysObject
00:C:  ReadMailGroup.c:621:Leaving m_ReadMailGroup_OM_DISPOSE (result 0x00000000, 0)
00:C:  YAM_RE.c:4415:rmData = 177775668, 0x0A98A434


LONG READ from 0A98A43C                        PC: 0A1DAB1A
USP : 09D15F88 SR: 0010  (U0)(-)(-)  TCB: 09C1B100
Data: 09D15F40 00000000 0B11F280 0A98A434 0A668070 00000000 0A251270 20200001
----> 0A251270 - "YAM.os3.debug"  Hunk 0000 Offset 000CDFD0
Addr: 09CE3438 0A98A434 00000000 0A2B23E8 0A2533EE 09D1602C 09BF652C 08002600
Stck: 00000004 0A1DA4A7 0A98A434 80000000 00000000 01000000 FFFFFFFF 20200000
Stck: 09E15FB8 0A276D26 09C1A340 0801626C 0000012B 00000067 09C1AF90 09E15FB8
Stck: 09D16018 0A290214 0A1430F0 09E15FB8 09D16018 09E15FB8 09D15FF8 0A25542A
Stck: 0A1430F0 09E15FB8 09D16018 09E15FB8 0A2552E8 09D48C84 09D16048 0801626C
Stck: 00FD5CFC 09E15FB8 00FD30C2 09E15FB8 00000104 8042A07F 09D16044 0A98A434
Stck: 00FCF7BC 09D16048 0A276D86 0A98A434 00000001 00000000 00000001 00000000
Stck: 0A3F527A 09D4C5F8 09E15FB8 09D4C5D0 09D160B0 08000B94 0A276D26 09C1A258
Stck: 09D47766 09D47730 09C1A340 09D47C0C 09E15FB8 09C1A340 0A2B8B12 09E15FB8
Stck: 00000001 0A2B8A88 09C1AF90 09E15FB8 0A3F527A 0A2555B8 0A1430F0 09E15FB8
Stck: 0A3F527A 09E15FB8 0A2552E8 09D48C84 0A3F5272 09D48C6E 09D52D04 09E15FD4
Stck: 00000000 40000000 01000000 02000000 00800000 09E15FB8 09D52C1C 09D161BC
Stck: 00000001 10101010 00000000 0A3F5272 09E16462 09E15FF4 00000000 10101010
Stck: 0A3F527A 09C1AF90 09D161F0 09E15FB8 0B13FD04 0A3E220C 05000000 00000B0B
Stck: 46D00020 00000200 00008000 00000000 000B0009 3DEFB41D 000301FC 0B0B4624
Stck: 0B13FD04 00007FFF 0000FFFF FFFFFFFF FFFF7FFF 09D16118 FFFFFFFF FFFF7FFF
Stck: 0000FFFF 0B09583C 00000000 00000000 00000000 00000000 09D47C1E 04000000
Stck: 00400000 0A2B8B12 09E15FB8 00000001 0A2B8A88 09C1AF90 09E15FB8 09D161F0
Stck: 0A2555B8 0A1430F0 09E15FB8 09D161F0 09E15FB8 0A2552E8 09D48C84 09D16518
Stck: 08000B94 0A2B8B12 09CE0868 08000B94 0A2B8580 0A1430F0 09E15FB8 09D161F0
Stck: 0A189860 09E15FB8 80423BA6 09D1622E 00030D40 00000001 00000001 026F9D75
Stck: 02701C6F 0A18329C 0A2B5FB0 00000014 09D166C8 08000B94 00000000 026F9D5E
Stck: 00000003 04040000 000000FE FEFE0000 30352E31 322E3230 31302032 303A3135
Stck: 3A343500 FBFCFDFE FFFFFFFE FDFDFCFC FCFDFDFE FDFCFBF9 F9FBFCFD FEFF0000
Stck: 00FEFBFA FAFAFAFB FBFDFDFD FDFCFBF9 59414D2E 6F73332E 64656275 6700FCFD
Stck: FEFF0001 010000FF FEFF0002 0200FEFB FAFAFBFD FF020506 05050302 010000FF
Stck: FEFEFEFF 01030404 040301FF FDFDFF01 04050505 03020101 01010101 00000000
Stck: 01010102 02040507 06050301 FFFDFDFF 00020303 03030302 00010101 0000FEFD
Stck: FDFDFE01 02020201 00FEFDFD FE000303 010000FE FCFCFDFF 01020100 00000000
Stck: 00FFFF00 00FFFEFE FDFDFDFE FDFCFF02 05060606 0401FEFB FBFCFDFF 00020302
Stck: 01010102 02FFFBFA FBFDFEFF 01020100 FEFBF9FB FE0001FF FCFCFCFC FDFF0003
Stck: 0302FEFB FBFDFDFF 01010100 000000FC F9F9FAF9 FAFBFBFC FEFF0103 0301FEFC
Stck: FCFDFE00 03030303 01FFFDFD FEFEFCFD FF010303 04040302 01FEFBFB FBFBFD01
Stck: 04080603 00FCF9FB FCFD0005 05030100 01030200 FCF9FBFF 03050400 FCF9FAFE
Stck: FF00FFFD FDFDFE00 04060505 03FFFAFA FE010100 FFFDFC00 03050501 FFFCF9F9
Stck: FF030706 02FEFBFA FD030908 0400FAF5 F6FAFF03 0502FFFB FBFE0308 0A0803FD
Stck: F8F7FAFF 04070602 FDF9FAFE 02050501 FDFBFAFA FAFD0001 01010102 03020100
Stck: FEFDFE00 020301FD F9FAFDFF 00030301 FEFAF9FB FF040707 0400FCF8 F7FBFDFD
Stck: FDFE0102 020201FF FFFEFE02 0990E842 0FF7AFF0 08000B94 09A28500 00FFFBD2
Stck: 0000002D 0A2AFEA0 00000021 09A28568 080E9E9E 09909A1C 080ECE40 080ECE40
Stck: 080E9BDE 00000006 00000007 00000008 0A2B8A12 00000002 00000001 09CDE8BC
----> 0A1DAB1A - "YAM.os3.debug"  Hunk 0000 Offset 0005787A
----> 0A1DA4A7 - "YAM.os3.debug"  Hunk 0000 Offset 00057207
----> 0A276D26 - "YAM.os3.debug"  Hunk 0000 Offset 000F3A86
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 0A290214 - "YAM.os3.debug"  Hunk 0000 Offset 0010CF74
----> 0A25542A - "YAM.os3.debug"  Hunk 0000 Offset 000D218A
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 00FD5CFC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00006C14
----> 00FD30C2 - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00003FDA
----> 00FCF7BC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 000006D4
----> 0A276D86 - "YAM.os3.debug"  Hunk 0000 Offset 000F3AE6
----> 09D4C5F8 - "LIBS:muimaster.library"  Hunk 0000 Offset 00009300
----> 09D4C5D0 - "LIBS:muimaster.library"  Hunk 0000 Offset 000092D8
----> 0A276D26 - "YAM.os3.debug"  Hunk 0000 Offset 000F3A86
----> 09D47766 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000446E
----> 09D47730 - "LIBS:muimaster.library"  Hunk 0000 Offset 00004438
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 09D47C0C - "LIBS:muimaster.library"  Hunk 0000 Offset 00004914
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 0A2B8A88 - "YAM.os3.debug"  Hunk 0000 Offset 001357E8
----> 0A2555B8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2318
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 09D48C6E - "LIBS:muimaster.library"  Hunk 0000 Offset 00005976
----> 09D52D04 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000FA0C
----> 09D52C1C - "LIBS:muimaster.library"  Hunk 0000 Offset 0000F924
----> 09D47C1E - "LIBS:muimaster.library"  Hunk 0000 Offset 00004926
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 0A2B8A88 - "YAM.os3.debug"  Hunk 0000 Offset 001357E8
----> 0A2555B8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2318
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 09CE0868 - "YAM.os3.debug"  Hunk 0002 Offset 00000050
----> 0A2B8580 - "YAM.os3.debug"  Hunk 0000 Offset 001352E0
----> 0A189860 - "YAM.os3.debug"  Hunk 0000 Offset 000065C0
----> 0A18329C - "YAM.os3.debug"  Hunk 0000 Offset FFFFFFFC
----> 0A2B5FB0 - "YAM.os3.debug"  Hunk 0000 Offset 00132D10
----> 00FEFBFA - "ROM - wb 40.5 (24.5.93)"  Hunk 0000 Offset 000015EA
----> 00FEFDFD - "ROM - wb 40.5 (24.5.93)"  Hunk 0000 Offset 000017ED
----> 00FFFF00 - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 00000500
----> 00FFFEFE - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 000004FE
----> 00FCF9FB - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00000913
----> 0990E842 - "LIBS:mathieeedoubbas.library"  Hunk 0000 Offset 00000152
----> 0FF7AFF0 - "ROM - exec 45.20 (6.1.2002)"  Hunk 0001 Offset 00001B98
----> 09A28500 - "LIBS:mathieeedoubtrans.library"  Hunk 0000 Offset 00000010
----> 00FFFBD2 - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 000001D2
----> 0A2AFEA0 - "YAM.os3.debug"  Hunk 0000 Offset 0012CC00
----> 09A28568 - "LIBS:mathieeedoubtrans.library"  Hunk 0000 Offset 00000078
----> 080E9E9E - "LIBS:locale.library"  Hunk 0000 Offset 0000155E
----> 080E9BDE - "LIBS:locale.library"  Hunk 0000 Offset 0000129E
----> 0A2B8A12 - "YAM.os3.debug"  Hunk 0000 Offset 00135772
----> 09CDE8BC - "YAM.os3.debug"  Hunk 0001 Offset 00000004
PC-8: 1CC442A7 48780040 48780002 20464E90 DEFC001C 2EBC0A1D A4A74878 00042243
PC *: 2F290008 48781140 48790A1D 1CC442A7 48780040 48780002 20464E90 224342A9
0a1daafa :  1cc4                       move.b d4,(a6)+
0a1daafc :  42a7                       clr.l -(a7)
0a1daafe :  4878 0040                  pea.l $40.w
0a1dab02 :  4878 0002                  pea.l $2.w
0a1dab06 :  2046                       movea.l d6,a0
0a1dab08 :  4e90                       jsr (a0)
0a1dab0a :  defc 001c                  adda.w #$1c,a7
0a1dab0e :  2ebc 0a1d a4a7             move.l #$a1da4a7,(a7)
0a1dab14 :  4878 0004                  pea.l $4.w
0a1dab18 :  2243                       movea.l d3,a1
0a1dab1a : *2f29 0008                  move.l $8(a1),-(a7)
0a1dab1e :  4878 1140                  pea.l $1140.w
0a1dab22 :  4879 0a1d 1cc4             pea.l $a1d1cc4
0a1dab28 :  42a7                       clr.l -(a7)
0a1dab2a :  4878 0040                  pea.l $40.w
0a1dab2e :  4878 0002                  pea.l $2.w
0a1dab32 :  2046                       movea.l d6,a0
0a1dab34 :  4e90                       jsr (a0)
0a1dab36 :  2243                       movea.l d3,a1
0a1dab38 :  42a9 0008                  clr.l $8(a1)
Name: "Shell Process"  CLI: "YAM.os3.debug"  Hunk 0000 Offset 0005787A

00:C:  YAM_RE.c:4416:rmData->readWindow = 0, 0x00000000


LONG WRITE to  0A98A43C        data=00000000   PC: 0A1DAB38
USP : 09D15F70 SR: 0014  (U0)(-)(-)  TCB: 09C1B100
Data: 09D15F40 00000000 0B11F280 0A98A434 0A668070 00000000 0A251270 20200001
----> 0A251270 - "YAM.os3.debug"  Hunk 0000 Offset 000CDFD0
Addr: 09CE3438 0A98A434 00000000 0A2B23E8 0A2533EE 09D1602C 09BF652C 08002604
Stck: 00000002 00000040 00000000 0A1D1CC4 00001140 00000000 00000004 0A1DA4A7
Stck: 0A98A434 80000000 00000000 01000000 FFFFFFFF 20200000 09E15FB8 0A276D26
Stck: 09C1A340 0801626C 0000012B 00000067 09C1AF90 09E15FB8 09D16018 0A290214
Stck: 0A1430F0 09E15FB8 09D16018 09E15FB8 09D15FF8 0A25542A 0A1430F0 09E15FB8
Stck: 09D16018 09E15FB8 0A2552E8 09D48C84 09D16048 0801626C 00FD5CFC 09E15FB8
Stck: 00FD30C2 09E15FB8 00000104 8042A07F 09D16044 0A98A434 00FCF7BC 09D16048
Stck: 0A276D86 0A98A434 00000001 00000000 00000001 00000000 0A3F527A 09D4C5F8
Stck: 09E15FB8 09D4C5D0 09D160B0 08000B94 0A276D26 09C1A258 09D47766 09D47730
Stck: 09C1A340 09D47C0C 09E15FB8 09C1A340 0A2B8B12 09E15FB8 00000001 0A2B8A88
Stck: 09C1AF90 09E15FB8 0A3F527A 0A2555B8 0A1430F0 09E15FB8 0A3F527A 09E15FB8
Stck: 0A2552E8 09D48C84 0A3F5272 09D48C6E 09D52D04 09E15FD4 00000000 40000000
Stck: 01000000 02000000 00800000 09E15FB8 09D52C1C 09D161BC 00000001 10101010
Stck: 00000000 0A3F5272 09E16462 09E15FF4 00000000 10101010 0A3F527A 09C1AF90
Stck: 09D161F0 09E15FB8 0B13FD04 0A3E220C 05000000 00000B0B 46D00020 00000200
Stck: 00008000 00000000 000B0009 3DEFB41D 000301FC 0B0B4624 0B13FD04 00007FFF
Stck: 0000FFFF FFFFFFFF FFFF7FFF 09D16118 FFFFFFFF FFFF7FFF 0000FFFF 0B09583C
Stck: 00000000 00000000 00000000 00000000 09D47C1E 04000000 00400000 0A2B8B12
Stck: 09E15FB8 00000001 0A2B8A88 09C1AF90 09E15FB8 09D161F0 0A2555B8 0A1430F0
Stck: 09E15FB8 09D161F0 09E15FB8 0A2552E8 09D48C84 09D16518 08000B94 0A2B8B12
Stck: 09CE0868 08000B94 0A2B8580 0A1430F0 09E15FB8 09D161F0 0A189860 09E15FB8
Stck: 80423BA6 09D1622E 00030D40 00000001 00000001 026F9D75 02701C6F 0A18329C
Stck: 0A2B5FB0 00000014 09D166C8 08000B94 00000000 026F9D5E 00000003 04040000
Stck: 000000FE FEFE0000 30352E31 322E3230 31302032 303A3135 3A343500 FBFCFDFE
Stck: FFFFFFFE FDFDFCFC FCFDFDFE FDFCFBF9 F9FBFCFD FEFF0000 00FEFBFA FAFAFAFB
Stck: FBFDFDFD FDFCFBF9 59414D2E 6F73332E 64656275 6700FCFD FEFF0001 010000FF
Stck: FEFF0002 0200FEFB FAFAFBFD FF020506 05050302 010000FF FEFEFEFF 01030404
Stck: 040301FF FDFDFF01 04050505 03020101 01010101 00000000 01010102 02040507
Stck: 06050301 FFFDFDFF 00020303 03030302 00010101 0000FEFD FDFDFE01 02020201
Stck: 00FEFDFD FE000303 010000FE FCFCFDFF 01020100 00000000 00FFFF00 00FFFEFE
Stck: FDFDFDFE FDFCFF02 05060606 0401FEFB FBFCFDFF 00020302 01010102 02FFFBFA
Stck: FBFDFEFF 01020100 FEFBF9FB FE0001FF FCFCFCFC FDFF0003 0302FEFB FBFDFDFF
Stck: 01010100 000000FC F9F9FAF9 FAFBFBFC FEFF0103 0301FEFC FCFDFE00 03030303
Stck: 01FFFDFD FEFEFCFD FF010303 04040302 01FEFBFB FBFBFD01 04080603 00FCF9FB
Stck: FCFD0005 05030100 01030200 FCF9FBFF 03050400 FCF9FAFE FF00FFFD FDFDFE00
Stck: 04060505 03FFFAFA FE010100 FFFDFC00 03050501 FFFCF9F9 FF030706 02FEFBFA
Stck: FD030908 0400FAF5 F6FAFF03 0502FFFB FBFE0308 0A0803FD F8F7FAFF 04070602
Stck: FDF9FAFE 02050501 FDFBFAFA FAFD0001 01010102 03020100 FEFDFE00 020301FD
Stck: F9FAFDFF 00030301 FEFAF9FB FF040707 0400FCF8 F7FBFDFD FDFE0102 020201FF
Stck: FFFEFE02 0990E842 0FF7AFF0 08000B94 09A28500 00FFFBD2 0000002D 0A2AFEA0
Stck: 00000021 09A28568 080E9E9E 09909A1C 080ECE40 080ECE40 080E9BDE 00000006
----> 0A1DAB38 - "YAM.os3.debug"  Hunk 0000 Offset 00057898
----> 0A1D1CC4 - "YAM.os3.debug"  Hunk 0000 Offset 0004EA24
----> 0A1DA4A7 - "YAM.os3.debug"  Hunk 0000 Offset 00057207
----> 0A276D26 - "YAM.os3.debug"  Hunk 0000 Offset 000F3A86
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 0A290214 - "YAM.os3.debug"  Hunk 0000 Offset 0010CF74
----> 0A25542A - "YAM.os3.debug"  Hunk 0000 Offset 000D218A
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 00FD5CFC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00006C14
----> 00FD30C2 - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00003FDA
----> 00FCF7BC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 000006D4
----> 0A276D86 - "YAM.os3.debug"  Hunk 0000 Offset 000F3AE6
----> 09D4C5F8 - "LIBS:muimaster.library"  Hunk 0000 Offset 00009300
----> 09D4C5D0 - "LIBS:muimaster.library"  Hunk 0000 Offset 000092D8
----> 0A276D26 - "YAM.os3.debug"  Hunk 0000 Offset 000F3A86
----> 09D47766 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000446E
----> 09D47730 - "LIBS:muimaster.library"  Hunk 0000 Offset 00004438
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 09D47C0C - "LIBS:muimaster.library"  Hunk 0000 Offset 00004914
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 0A2B8A88 - "YAM.os3.debug"  Hunk 0000 Offset 001357E8
----> 0A2555B8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2318
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 09D48C6E - "LIBS:muimaster.library"  Hunk 0000 Offset 00005976
----> 09D52D04 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000FA0C
----> 09D52C1C - "LIBS:muimaster.library"  Hunk 0000 Offset 0000F924
----> 09D47C1E - "LIBS:muimaster.library"  Hunk 0000 Offset 00004926
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 0A2B8A88 - "YAM.os3.debug"  Hunk 0000 Offset 001357E8
----> 0A2555B8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2318
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 09CE0868 - "YAM.os3.debug"  Hunk 0002 Offset 00000050
----> 0A2B8580 - "YAM.os3.debug"  Hunk 0000 Offset 001352E0
----> 0A189860 - "YAM.os3.debug"  Hunk 0000 Offset 000065C0
----> 0A18329C - "YAM.os3.debug"  Hunk 0000 Offset FFFFFFFC
----> 0A2B5FB0 - "YAM.os3.debug"  Hunk 0000 Offset 00132D10
----> 00FEFBFA - "ROM - wb 40.5 (24.5.93)"  Hunk 0000 Offset 000015EA
----> 00FEFDFD - "ROM - wb 40.5 (24.5.93)"  Hunk 0000 Offset 000017ED
----> 00FFFF00 - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 00000500
----> 00FFFEFE - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 000004FE
----> 00FCF9FB - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00000913
----> 0990E842 - "LIBS:mathieeedoubbas.library"  Hunk 0000 Offset 00000152
----> 0FF7AFF0 - "ROM - exec 45.20 (6.1.2002)"  Hunk 0001 Offset 00001B98
----> 09A28500 - "LIBS:mathieeedoubtrans.library"  Hunk 0000 Offset 00000010
----> 00FFFBD2 - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 000001D2
----> 0A2AFEA0 - "YAM.os3.debug"  Hunk 0000 Offset 0012CC00
----> 09A28568 - "LIBS:mathieeedoubtrans.library"  Hunk 0000 Offset 00000078
----> 080E9E9E - "LIBS:locale.library"  Hunk 0000 Offset 0000155E
----> 080E9BDE - "LIBS:locale.library"  Hunk 0000 Offset 0000129E
PC-8: 22432F29 00084878 11404879 0A1D1CC4 42A74878 00404878 00022046 4E902243
PC *: 42A90008 DEFC001C 2EBC0A1D A38B4878 00042F03 48781143 48790A1D 1CC442A7
0a1dab18 :  2243                       movea.l d3,a1
0a1dab1a :  2f29 0008                  move.l $8(a1),-(a7)
0a1dab1e :  4878 1140                  pea.l $1140.w
0a1dab22 :  4879 0a1d 1cc4             pea.l $a1d1cc4
0a1dab28 :  42a7                       clr.l -(a7)
0a1dab2a :  4878 0040                  pea.l $40.w
0a1dab2e :  4878 0002                  pea.l $2.w
0a1dab32 :  2046                       movea.l d6,a0
0a1dab34 :  4e90                       jsr (a0)
0a1dab36 :  2243                       movea.l d3,a1
0a1dab38 : *42a9 0008                  clr.l $8(a1)
0a1dab3c :  defc 001c                  adda.w #$1c,a7
0a1dab40 :  2ebc 0a1d a38b             move.l #$a1da38b,(a7)
0a1dab46 :  4878 0004                  pea.l $4.w
0a1dab4a :  2f03                       move.l d3,-(a7)
0a1dab4c :  4878 1143                  pea.l $1143.w
0a1dab50 :  4879 0a1d 1cc4             pea.l $a1d1cc4
0a1dab56 :  42a7                       clr.l -(a7)
Name: "Shell Process"  CLI: "YAM.os3.debug"  Hunk 0000 Offset 00057898

00:C:  YAM_RE.c:4419:rmData = 177775668, 0x0A98A434


LONG READ from 0A98A43C                        PC: 0A1DAB74
USP : 09D15F88 SR: 0010  (U0)(-)(-)  TCB: 09C1B100
Data: 09D15F40 00000000 0B11F280 0A98A434 0A668070 00000000 0A251270 20200001
----> 0A251270 - "YAM.os3.debug"  Hunk 0000 Offset 000CDFD0
Addr: 09CE3438 0A98A434 00000000 0A2B23E8 0A2533EE 09D1602C 09BF652C 08002600
Stck: 00000004 0A1DA4A7 0A98A434 80000000 00000000 01000000 FFFFFFFF 20200000
Stck: 09E15FB8 0A276D26 09C1A340 0801626C 0000012B 00000067 09C1AF90 09E15FB8
Stck: 09D16018 0A290214 0A1430F0 09E15FB8 09D16018 09E15FB8 09D15FF8 0A25542A
Stck: 0A1430F0 09E15FB8 09D16018 09E15FB8 0A2552E8 09D48C84 09D16048 0801626C
Stck: 00FD5CFC 09E15FB8 00FD30C2 09E15FB8 00000104 8042A07F 09D16044 0A98A434
Stck: 00FCF7BC 09D16048 0A276D86 0A98A434 00000001 00000000 00000001 00000000
Stck: 0A3F527A 09D4C5F8 09E15FB8 09D4C5D0 09D160B0 08000B94 0A276D26 09C1A258
Stck: 09D47766 09D47730 09C1A340 09D47C0C 09E15FB8 09C1A340 0A2B8B12 09E15FB8
Stck: 00000001 0A2B8A88 09C1AF90 09E15FB8 0A3F527A 0A2555B8 0A1430F0 09E15FB8
Stck: 0A3F527A 09E15FB8 0A2552E8 09D48C84 0A3F5272 09D48C6E 09D52D04 09E15FD4
Stck: 00000000 40000000 01000000 02000000 00800000 09E15FB8 09D52C1C 09D161BC
Stck: 00000001 10101010 00000000 0A3F5272 09E16462 09E15FF4 00000000 10101010
Stck: 0A3F527A 09C1AF90 09D161F0 09E15FB8 0B13FD04 0A3E220C 05000000 00000B0B
Stck: 46D00020 00000200 00008000 00000000 000B0009 3DEFB41D 000301FC 0B0B4624
Stck: 0B13FD04 00007FFF 0000FFFF FFFFFFFF FFFF7FFF 09D16118 FFFFFFFF FFFF7FFF
Stck: 0000FFFF 0B09583C 00000000 00000000 00000000 00000000 09D47C1E 04000000
Stck: 00400000 0A2B8B12 09E15FB8 00000001 0A2B8A88 09C1AF90 09E15FB8 09D161F0
Stck: 0A2555B8 0A1430F0 09E15FB8 09D161F0 09E15FB8 0A2552E8 09D48C84 09D16518
Stck: 08000B94 0A2B8B12 09CE0868 08000B94 0A2B8580 0A1430F0 09E15FB8 09D161F0
Stck: 0A189860 09E15FB8 80423BA6 09D1622E 00030D40 00000001 00000001 026F9D75
Stck: 02701C6F 0A18329C 0A2B5FB0 00000014 09D166C8 08000B94 00000000 026F9D5E
Stck: 00000003 04040000 000000FE FEFE0000 30352E31 322E3230 31302032 303A3135
Stck: 3A343500 FBFCFDFE FFFFFFFE FDFDFCFC FCFDFDFE FDFCFBF9 F9FBFCFD FEFF0000
Stck: 00FEFBFA FAFAFAFB FBFDFDFD FDFCFBF9 59414D2E 6F73332E 64656275 6700FCFD
Stck: FEFF0001 010000FF FEFF0002 0200FEFB FAFAFBFD FF020506 05050302 010000FF
Stck: FEFEFEFF 01030404 040301FF FDFDFF01 04050505 03020101 01010101 00000000
Stck: 01010102 02040507 06050301 FFFDFDFF 00020303 03030302 00010101 0000FEFD
Stck: FDFDFE01 02020201 00FEFDFD FE000303 010000FE FCFCFDFF 01020100 00000000
Stck: 00FFFF00 00FFFEFE FDFDFDFE FDFCFF02 05060606 0401FEFB FBFCFDFF 00020302
Stck: 01010102 02FFFBFA FBFDFEFF 01020100 FEFBF9FB FE0001FF FCFCFCFC FDFF0003
Stck: 0302FEFB FBFDFDFF 01010100 000000FC F9F9FAF9 FAFBFBFC FEFF0103 0301FEFC
Stck: FCFDFE00 03030303 01FFFDFD FEFEFCFD FF010303 04040302 01FEFBFB FBFBFD01
Stck: 04080603 00FCF9FB FCFD0005 05030100 01030200 FCF9FBFF 03050400 FCF9FAFE
Stck: FF00FFFD FDFDFE00 04060505 03FFFAFA FE010100 FFFDFC00 03050501 FFFCF9F9
Stck: FF030706 02FEFBFA FD030908 0400FAF5 F6FAFF03 0502FFFB FBFE0308 0A0803FD
Stck: F8F7FAFF 04070602 FDF9FAFE 02050501 FDFBFAFA FAFD0001 01010102 03020100
Stck: FEFDFE00 020301FD F9FAFDFF 00030301 FEFAF9FB FF040707 0400FCF8 F7FBFDFD
Stck: FDFE0102 020201FF FFFEFE02 0990E842 0FF7AFF0 08000B94 09A28500 00FFFBD2
Stck: 0000002D 0A2AFEA0 00000021 09A28568 080E9E9E 09909A1C 080ECE40 080ECE40
Stck: 080E9BDE 00000006 00000007 00000008 0A2B8A12 00000002 00000001 09CDE8BC
----> 0A1DAB74 - "YAM.os3.debug"  Hunk 0000 Offset 000578D4
----> 0A1DA4A7 - "YAM.os3.debug"  Hunk 0000 Offset 00057207
----> 0A276D26 - "YAM.os3.debug"  Hunk 0000 Offset 000F3A86
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 0A290214 - "YAM.os3.debug"  Hunk 0000 Offset 0010CF74
----> 0A25542A - "YAM.os3.debug"  Hunk 0000 Offset 000D218A
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 00FD5CFC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00006C14
----> 00FD30C2 - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00003FDA
----> 00FCF7BC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 000006D4
----> 0A276D86 - "YAM.os3.debug"  Hunk 0000 Offset 000F3AE6
----> 09D4C5F8 - "LIBS:muimaster.library"  Hunk 0000 Offset 00009300
----> 09D4C5D0 - "LIBS:muimaster.library"  Hunk 0000 Offset 000092D8
----> 0A276D26 - "YAM.os3.debug"  Hunk 0000 Offset 000F3A86
----> 09D47766 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000446E
----> 09D47730 - "LIBS:muimaster.library"  Hunk 0000 Offset 00004438
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 09D47C0C - "LIBS:muimaster.library"  Hunk 0000 Offset 00004914
----> 09C1A340 - "LIBS:muimaster.library"  Hunk 0001 Offset 00000000
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 0A2B8A88 - "YAM.os3.debug"  Hunk 0000 Offset 001357E8
----> 0A2555B8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2318
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 09D48C6E - "LIBS:muimaster.library"  Hunk 0000 Offset 00005976
----> 09D52D04 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000FA0C
----> 09D52C1C - "LIBS:muimaster.library"  Hunk 0000 Offset 0000F924
----> 09D47C1E - "LIBS:muimaster.library"  Hunk 0000 Offset 00004926
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 0A2B8A88 - "YAM.os3.debug"  Hunk 0000 Offset 001357E8
----> 0A2555B8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2318
----> 0A2552E8 - "YAM.os3.debug"  Hunk 0000 Offset 000D2048
----> 09D48C84 - "LIBS:muimaster.library"  Hunk 0000 Offset 0000598C
----> 0A2B8B12 - "YAM.os3.debug"  Hunk 0000 Offset 00135872
----> 09CE0868 - "YAM.os3.debug"  Hunk 0002 Offset 00000050
----> 0A2B8580 - "YAM.os3.debug"  Hunk 0000 Offset 001352E0
----> 0A189860 - "YAM.os3.debug"  Hunk 0000 Offset 000065C0
----> 0A18329C - "YAM.os3.debug"  Hunk 0000 Offset FFFFFFFC
----> 0A2B5FB0 - "YAM.os3.debug"  Hunk 0000 Offset 00132D10
----> 00FEFBFA - "ROM - wb 40.5 (24.5.93)"  Hunk 0000 Offset 000015EA
----> 00FEFDFD - "ROM - wb 40.5 (24.5.93)"  Hunk 0000 Offset 000017ED
----> 00FFFF00 - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 00000500
----> 00FFFEFE - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 000004FE
----> 00FCF9FB - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00000913
----> 0990E842 - "LIBS:mathieeedoubbas.library"  Hunk 0000 Offset 00000152
----> 0FF7AFF0 - "ROM - exec 45.20 (6.1.2002)"  Hunk 0001 Offset 00001B98
----> 09A28500 - "LIBS:mathieeedoubtrans.library"  Hunk 0000 Offset 00000010
----> 00FFFBD2 - "ROM - ramlib 40.2 (5.3.93)"  Hunk 0000 Offset 000001D2
----> 0A2AFEA0 - "YAM.os3.debug"  Hunk 0000 Offset 0012CC00
----> 09A28568 - "LIBS:mathieeedoubtrans.library"  Hunk 0000 Offset 00000078
----> 080E9E9E - "LIBS:locale.library"  Hunk 0000 Offset 0000155E
----> 080E9BDE - "LIBS:locale.library"  Hunk 0000 Offset 0000129E
----> 0A2B8A12 - "YAM.os3.debug"  Hunk 0000 Offset 00135772
----> 09CDE8BC - "YAM.os3.debug"  Hunk 0001 Offset 00000004
PC-8: 1CC442A7 48780040 48780002 20464E90 DEFC001C 2EBC0A1D A4A74878 00042243
PC *: 2F290008 48781144 48790A1D 1CC442A7 48780040 48780002 20464E90 DEFC0020
0a1dab54 :  1cc4                       move.b d4,(a6)+
0a1dab56 :  42a7                       clr.l -(a7)
0a1dab58 :  4878 0040                  pea.l $40.w
0a1dab5c :  4878 0002                  pea.l $2.w
0a1dab60 :  2046                       movea.l d6,a0
0a1dab62 :  4e90                       jsr (a0)
0a1dab64 :  defc 001c                  adda.w #$1c,a7
0a1dab68 :  2ebc 0a1d a4a7             move.l #$a1da4a7,(a7)
0a1dab6e :  4878 0004                  pea.l $4.w
0a1dab72 :  2243                       movea.l d3,a1
0a1dab74 : *2f29 0008                  move.l $8(a1),-(a7)
0a1dab78 :  4878 1144                  pea.l $1144.w
0a1dab7c :  4879 0a1d 1cc4             pea.l $a1d1cc4
0a1dab82 :  42a7                       clr.l -(a7)
0a1dab84 :  4878 0040                  pea.l $40.w
0a1dab88 :  4878 0002                  pea.l $2.w
0a1dab8c :  2046                       movea.l d6,a0
0a1dab8e :  4e90                       jsr (a0)
0a1dab90 :  defc 0020                  adda.w #$20,a7
Name: "Shell Process"  CLI: "YAM.os3.debug"  Hunk 0000 Offset 000578D4

00:C:  YAM_RE.c:4420:rmData->readWindow = 0, 0x00000000
00:C: YAM_RE.c:4432:Leaving CleanupReadMailData (result 0x00000001, 1)
00:C:ReadWindow.c:167:Leaving CloseReadWindowFunc
00:C:MainWindow.c:61:Entering m_MainWindow_OM_SET
00:C: MainMailList.c:369:Entering m_MainMailList_MUIM_NList_Display

As you can see after the DoMethod(G->App, OM_REMMEMBER, rmData->readWindow)
call i get for every access to rmData->readWindow a hit. Two times a read hit
from SHOWVALUE() and one write hit from rmData->readWindow = NULL.

If i have more free time i could get a deeper look at this but maybe
you have an idea what is going wrong here!?

Changed 4 years ago by opiopi

comment:3 Changed 4 years ago by opiopi

About your question: i don't run any "hacky" or instable patches.
I usually use MCP too but i get the same hits with MCP disabled.
(not running). I only use the official patches like BB2 for the
tests.

comment:4 in reply to: ↑ 2 Changed 4 years ago by tboeckel

  • Owner set to tboeckel
  • Status changed from accepted to assigned

Replying to opiopi:

As you can see after the DoMethod(G->App, OM_REMMEMBER, rmData->readWindow)
call i get for every access to rmData->readWindow a hit. Two times a read hit
from SHOWVALUE() and one write hit from rmData->readWindow = NULL.

It is not the OM_REMMEMBER call, but the following OM_DISPOSE. Disposing a ReadWindow object will also dispose the embedded ReadMailGroup object and this one will free the associated struct ReadMailData. Hence any access after the OM_DISPOSE will operate on just freed memory. I will commit a fix immediately. Please reopen this ticket if that fix is no fix.

comment:5 Changed 4 years ago by tboeckel

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [5505]) * YAM_RE.c: do not access the struct ReadMailData after disposing the

ReadWindow object as this will read just free()'d memory. This closes #234.

comment:6 follow-up: Changed 4 years ago by opiopi

Sorry my fault i mean of course the OM_DISPOSE call.
But the issue seems to be fixed. At least from my own build
i get no such hits if i close a read window.

BTW: Seems OS4 is not so very picky as you thought. ;-)

comment:7 in reply to: ↑ 6 Changed 4 years ago by tboeckel

Replying to opiopi:

BTW: Seems OS4 is not so very picky as you thought. ;-)

In contrast to a plain OS3 the plain OS4 is picky. But if an access to already freed memory happens while the memory page is still alive and keeps further allocations this access cannot be detected. Try to detect an invalid memory access without any tools on OS3! Anyway, I am glad this issue is gone now.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber

  • Frank Weber(Reporter, Participant)
  • Thore Böckelmann(Owner, Participant)