<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have an application and traffic generator which
work on Windows 200 and XP.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>When I do the same tests on Windows 2003 it stops
working with out generating a erl_crash.dump. The only indication to the
</FONT></DIV>
<DIV><FONT face=Arial size=2>problem is from the windows event viewer which
gives the following result:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><U>Windows Event viewer:</U></FONT></DIV>
<DIV><FONT face=Arial size=2><EM>Event Type: Information<BR>Event
Source: Application Error<BR>Event Category: (100)<BR>Event
ID: 1004<BR>Date: 2007/07/23<BR>Time: 08:09:10
PM<BR>User: N/A<BR>Computer: DFG-SRV<BR>Description:<BR>Reporting
queued error: faulting application erl.exe, version 0.0.0.0, faulting module
beam.dll, version 0.0.0.0, fault address 0x0003c4d5.</EM></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><EM>For more information, see Help and Support
Center at </EM><A
href="http://go.microsoft.com/fwlink/events.asp"><EM>http://go.microsoft.com/fwlink/events.asp</EM></A><EM>.<BR>Data:<BR>0000:
41 70 70 6c 69 63 61 74 Applicat<BR>0008: 69 6f 6e 20 46 61 69
6c ion Fail<BR>0010: 75 72 65 20 20 65 72 6c ure
erl<BR>0018: 2e 65 78 65 20 30 2e 30 .exe 0.0<BR>0020: 2e 30 2e 30
20 69 6e 20 .0.0 in <BR>0028: 62 65 61 6d 2e 64 6c 6c
beam.dll<BR>0030: 20 30 2e 30 2e 30 2e 30 0.0.0.0<BR>0038: 20
61 74 20 6f 66 66 73 at offs<BR>0040: 65 74 20 30 30 30 33
63 et 0003c<BR>0048: 34 64
35
4d5 </EM></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I then downloaded the source ad recompiled for
win32 with debugging as per directions in the Readme file. Copied new
executables and dlls to The Windows 2003 server.</FONT></DIV>
<DIV><FONT face=Arial size=2>And ran the test again, with the following
result:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM><U>Test 1:<BR></U>bin\erl.exe -sname maxman
-setcookie maxman -config data/maxman.config +P 65536 -env ERL_MAX_PORTS 5000
-env ERL_MAX_ETS_TABLES 3000 -env ERL_FULLSWEEP_AFTER 0 -yaws embedded true
-mnesia dir '"c:/Program Files/ecs/MaxMan/data"'</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM><U>Error
1:<BR></U>Type: Access violation
<BR>File: external.c<BR>Fuction:
dec_term<BR>Line 935: next = (Eterm *) (*objp); </EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM><U>Test 2:<BR></U>bin\erl.exe -sname maxman
-setcookie maxman -config data/maxman.config +P 65536 -env ERL_MAX_PORTS 5000
-env ERL_MAX_ETS_TABLES 3000 -yaws embedded true -mnesia dir '"c:/Program
Files/ecs/MaxMan/data"'</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM><U>Error
2:<BR></U>Type: Access violation
<BR>File: external.c<BR>Fuction:
dec_term<BR>Line 935: next = (Eterm *) (*objp); <BR></EM></FONT></DIV>
<DIV><FONT face=Arial size=2><U>Test Box Info:<BR></U>OS Name Microsoft(R)
Windows(R) Server 2003, Enterprise Edition<BR>Version 5.2.3790 Build
3790<BR>OS Manufacturer Microsoft Corporation<BR>System
Name DFG-SRV<BR>System Model 662/1066T-M2<BR>System
Type X86-based PC<BR>Processor x86 Family 15 Model 6 Stepping 5
GenuineIntel ~2998 Mhz<BR>Processor x86 Family 15 Model 6 Stepping 5
GenuineIntel ~2999 Mhz<BR>Hardware Abstraction Layer Version = "5.2.3790.0
(srv03_rtm.030324-2048)"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><U>Erlang Runtime:<BR></U>"Erlang (BEAM) emulator
version 5.5.5 [source] [async-threads:0] [type-assertions] [debug-compiled]
[lock-checking]\n"<BR></FONT></DIV>
<DIV><FONT face=Arial size=2><U>Summary:</U></FONT></DIV>
<DIV><FONT face=Arial size=2>- Test 1 runs longer before it gives the
access violation.</FONT></DIV>
<DIV><FONT face=Arial size=2>- This happens when I send continuous stream of
data via the TCP/IP</FONT></DIV>
<DIV><FONT face=Arial size=2>- If no data is send via TCP/IP the application
runs with out any problems.</FONT></DIV>
<DIV><FONT face=Arial size=2>- I have noticed the erl.exe process allocates
memory but never release memory when viewing the process on the Task
Manager.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>!! The same application and test cases works on My
other XP test box with out any problems (24H continuous) !!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I do not know the internals of the memory
allocations in erlang. Can somebody explain it to me so that I can try and find
what is causing it?</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Any suggestions?</FONT></DIV>
<DIV> </DIV>
<DIV>It looks like erlang is not 2003 friendly!</DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Jan Jacobs</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>