Article ID: 289472 - View products that this article applies to.
This article was previously published under Q289472
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 352142 (SHILOH_bugs)
The SQLAgent process may terminate with with following error messages:
2001-01-14 19:21:11 - ! [LOG] Exception 5 caught at line 335 of file ..\src\job.c. SQLServerAgent initiating self-termination
2001-01-14 19:21:29 - +  SQLServerAgent terminated (forcefully)
SQLAgent creates a memory structure to support the xp_sqlagent_enum_jobs action. With SQL Server 2000 the structure is 588 bytes plus 4 bytes for overhead. However, an incorrect CAST to a LPTSTR, instead of a LPBYTE, results in an incorrect 4 byte shift.
When the (number of created jobs on the system * 588) + 4 = NT Page boundary the incorrect 4 byte cast results in the exception.
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/290211/EN-US/ )INF: How to Obtain the Latest SQL Server 2000 Service Pack
HotfixNOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 1.
The English version of this fix should have the following file attributes or later:
NOTE: This fix addresses the same correction in both the SQLAgent.exe and the Xpstar.dll file. The fix must be applied to the system in tandem to correct the issue.
File name Platform -------------------- s80254i.exe INTEL
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.
Make sure that the number of jobs present on the system is not 613, 2661, 4709 or any other calculation that falls on an NT page boundary.
Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.