Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Dec 01, 2007 4:35 pm   

[2.14] Crash when freeing thread
 
I suspected that some background threads were getting hung so I devised this test to see if I could make one hang while being shown as freed. The crash generated can be done with a smaller loop size, but even at 500 you may have to try it a few times to get the crash.

Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Enter at the command line
Code:
#LOOP 500 {#THREAD b {#SECTION c {#WAITSIGNAL a;#SIGNAL a};#SHOW done}};#SIGNAL a

4. Repeat step as needed to get a crash, this may be system speed dependent.
Code:
date/time         : 2007-12-01, 11:48:00, 194ms
operating system  : Windows XP Service Pack 2 build 2600
system language   : English
system up time    : 43 days 4 hours
program up time   : 23 seconds
processor         : AMD Athlon(tm) Processor
physical memory   : 130/383 MB (free/total)
free disk space   : (C:) 14.29 GB
display mode      : 1024x768, 32 bit
process id        : $7edc
allocated memory  : 48.85 MB
executable        : cMUD.exe
exec. date/time   : 2007-11-30 23:53
version           : 2.14.0.1
madExcept version : 3.0b
callstack crc     : $cd7826b3, $dc08e14a, $3be285be
count             : 2
exception number  : 1
exception class   : Exception
exception message : Duplicate node in free list.

thread $614c:
006860ec +098 cMUD.exe PRealStr    183  +13 DisposeFree
0068628a +01a cMUD.exe PRealStr    238   +4 PRealStrings.Clear
00d56a71 +0d5 cMUD.exe CodeExec   2398   +7 DoDefault
00d57db2 +e86 cMUD.exe CodeExec   2698 +248 HandleCom
00d59478 +610 cMUD.exe CodeExec   3128 +108 TCodeExec.InternalExecute
00d5042a +05e cMUD.exe CodeExec    434   +8 TCodeExec.Execute
00c56a5f +147 cMUD.exe CodeThread 1684  +20 TRunCodeThread.Run
00904a9c +138 cMUD.exe IdThread    360  +47 TIdThread.Execute
0047de7a +036 cMUD.exe Classes    9372   +7 ThreadProc
00405acc +028 cMUD.exe System               ThreadWrapper

Main ($910c):
7c90eb94 +000 ntdll.dll                            KiFastSystemCallRet
77d486a1 +00a USER32.dll                           GetDC
00505159 +065 cMUD.exe     Controls      4086   +6 TControl.Repaint
005050e8 +00c cMUD.exe     Controls      4074   +1 TControl.Refresh
00a05b1b +057 cMUD.exe     te_scrollbar  1325  +14 TTeScrollBar.SetMax
00a21012 +042 cMUD.exe     term          9399   +3 TTerm.set_VScrollMax
00a14fb9 +c49 cMUD.exe     term          5262 +217 TTerm.DoPaint
00a150fa +02e cMUD.exe     term          5284   +2 TTerm.Paint
0050f93e +05a cMUD.exe     Controls      8918   +6 TCustomControl.PaintWindow
0050a3ca +052 cMUD.exe     Controls      6402   +4 TWinControl.PaintHandler
0050a9f0 +04c cMUD.exe     Controls      6547   +6 TWinControl.WMPaint
0050f8cf +01b cMUD.exe     Controls      8907   +2 TCustomControl.WMPaint
0050646f +1df cMUD.exe     Controls      4645  +53 TControl.WndProc
0050a19e +18e cMUD.exe     Controls      6342  +33 TWinControl.WndProc
00a08604 +030 cMUD.exe     term           978   +8 TTerm.WndProc
00509d70 +034 cMUD.exe     Controls      6237   +3 TWinControl.MainWndProc
00480398 +014 cMUD.exe     Classes      10966   +8 StdWndProc
7c90eae0 +010 ntdll.dll                            KiUserCallbackDispatcher
77d4c090 +02c USER32.dll                           UpdateWindow
0050d271 +01d cMUD.exe     Controls      7736   +1 TWinControl.Update
00a14748 +3d8 cMUD.exe     term          5110  +65 TTerm.DoPaint
00a150fa +02e cMUD.exe     term          5284   +2 TTerm.Paint
0050f93e +05a cMUD.exe     Controls      8918   +6 TCustomControl.PaintWindow
0050a3ca +052 cMUD.exe     Controls      6402   +4 TWinControl.PaintHandler
0050a9f0 +04c cMUD.exe     Controls      6547   +6 TWinControl.WMPaint
0050f8cf +01b cMUD.exe     Controls      8907   +2 TCustomControl.WMPaint
0050646f +1df cMUD.exe     Controls      4645  +53 TControl.WndProc
0050a19e +18e cMUD.exe     Controls      6342  +33 TWinControl.WndProc
00a08604 +030 cMUD.exe     term           978   +8 TTerm.WndProc
00509d70 +034 cMUD.exe     Controls      6237   +3 TWinControl.MainWndProc
00480398 +014 cMUD.exe     Classes      10966   +8 StdWndProc
7c90eae0 +010 ntdll.dll                            KiUserCallbackDispatcher
77d4c090 +02c USER32.dll                           UpdateWindow
0050d271 +01d cMUD.exe     Controls      7736   +1 TWinControl.Update
00a151a6 +076 cMUD.exe     term          5320  +25 TTerm.SetUpdate
00c936cb +213 cMUD.exe     MAIN          1660  +35 TMUDForm.NextMUDLine
00c93a21 +019 cMUD.exe     MAIN          1721   +4 TMUDForm.DoNextLine
00cdc46d +039 cMUD.exe     MAIN         20880   +3 TMUDForm.ProcessMUDNow
00cd3f78 +0a0 cMUD.exe     MAIN         18527  +12 TMUDForm.ExecCommand
00c5559b +0d7 cMUD.exe     CodeThread    1184   +9 TRunCodeThread.DoExecCommand
0047dda1 +101 cMUD.exe     Classes       9339  +22 CheckSynchronize
0052ebcf +6df cMUD.exe     Forms         6671 +144 TApplication.WndProc
00480398 +014 cMUD.exe     Classes      10966   +8 StdWndProc
77d4bcc7 +00a USER32.dll                           DispatchMessageA
0052f324 +0ac cMUD.exe     Forms         6873  +13 TApplication.ProcessMessage
0052f36b +00f cMUD.exe     Forms         6892   +1 TApplication.HandleMessage
0052f606 +0a6 cMUD.exe     Forms         6976  +16 TApplication.Run
00dcbc28 +088 cMUD.exe     CMUD           344  +18 initialization
7c91312f +069 ntdll.dll                            RtlUnicodeStringToAnsiString
7c812907 +0b6 kernel32.dll                         GetVersionExA
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Malach
Apprentice


Joined: 03 Nov 2007
Posts: 132

PostPosted: Sun Dec 02, 2007 11:11 pm   
 
Confirmed
_________________
Intel Core2 Quad CPU @ 2.4 GHZ with Windows Vista Home Premium and 2 GB Ram
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Dec 03, 2007 6:10 pm   
 
Added to bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net