Issue Details (XML | Word | Printable)

Key: CORE-1930
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vlad Khorsun
Reporter: Vlad Khorsun
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Possible AV in engine if procedure was altered to have no outputs and dependent procedures was not recompiled

Created: 10/Jun/08 06:03 AM   Updated: 25/Apr/11 01:57 PM
Component/s: Engine
Affects Version/s: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.5 Initial, 2.1.0, 2.0.4, 2.1.1
Fix Version/s: 2.5 Alpha 1, 2.0.5, 2.1.2

Time Tracking:
Not Specified

Issue Links:
Relate
 

Planning Status: Unspecified


 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vlad Khorsun added a comment - 10/Jun/08 06:07 AM
Test case :

create or alter procedure sp1 returns (x int)
as
begin
  suspend;
end

create or alter procedure sp2
as
declare x int;
begin
  select x from sp1 into :x;
end

create or alter procedure sp3
as
begin
  execute procedure sp2;
end

commit

-- this is wrong but engine still didn't track procedure's fields dependencies
create or alter procedure sp1
as
begin
  exit;
end

commit

-- disconnect and connect again

create or alter procedure sp3
as
begin
  execute procedure sp2;
end

commit

Vlad Khorsun added a comment - 10/Jun/08 06:10 AM
FB 2.1 on ODS 11.1 and higher raised error on commit :

Invalid token.
invalid request BLR at offset 32.
Procedure SP1 is not selectable (it does not contain a SUSPEND statement).

but on older ODS it crashes