Icon View Incident Report

Serious Serious
Reported By: Graeme Cox
Reported On: 9/25/2008
For: Version 2.01 Build 5
# 2811 Sessions that Contain Functions that Reference Other Functions Cause AV During Dead Session Removal

I finally found the issue with incident report #2757. It revolves around one database function calling another database function.

Attached is a test application and database.

1) Setup database is C\S mode
2) run test application. it will show two columns. one from the table the other a result of the functions.
3) while running bring up task manager and kill the test application process.
4) wait for the dead session timer event.
5) Result 50% cpu, and you cannot connect anymore.

SCRIPT
BEGIN
   
   /************************************************************
   * Tables
   ************************************************************/
   
   EXECUTE IMMEDIATE 'CREATE TABLE "MyTable"
(
"Column1" INTEGER
)
VERSION 1
UNENCRYPTED
INDEX PAGE SIZE 4096
BLOB BLOCK SIZE 512
MAX ROW BUFFER SIZE 32768
MAX INDEX BUFFER SIZE 65536
MAX BLOB BUFFER SIZE 32768';
   
   
   /************************************************************
   * Views
   ************************************************************/
   
   
   /************************************************************
   * Functions
   ************************************************************/
   
   EXECUTE IMMEDIATE 'CREATE FUNCTION "MainFunction" (IN "aNumber" INTEGER)
RETURNS INTEGER
BEGIN  

  DECLARE retindex INT DEFAULT 0; 

  set retindex = CallAnotherFunction(12345);
   
  return retindex;

END
';
   
   EXECUTE IMMEDIATE 'CREATE FUNCTION "CallAnotherFunction" (IN "aNumber" INTEGER)
RETURNS INTEGER
BEGIN 
RETURN 54321;
END
';
   
   
   /************************************************************
   * Procedures
   ************************************************************/
   
END



Resolution Resolution
Fixed Problem on 9/26/2008 in version 2.02 build 1


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image