PR# 19617 FUNCTION.item crashes in finalized mode

Problem Report Summary
Submitter: gobobe
Category: Compiler
Priority: High
Date: 2020/02/26
Class: Bug
Severity: Serious
Number: 19617
Release: 19.12.10.3842
Confidential: No
Status: Analyzed
Responsible:
Environment: win
Synopsis: FUNCTION.item crashes in finalized mode

Description
The following code works fine in workbench mode, but crashes when calling `action.item` in finalized mode:

~~~~~~~~~~~~~~~
	execute
		local
			b: BOOLEAN
		do
			create values.make (19)
			values.put (2, "gobo")
			action := agent values.item
			b := g
		end

	action: FUNCTION [STRING, INTEGER]

	values: HASH_TABLE [INTEGER, STRING]

	g: BOOLEAN
		do
			Result := action.item (["gobo"]) /= 0
		end
~~~~~~~~~~~~~~~
-------------------------------------------------------------------------------
Class / Object      Routine                Nature of exception           Effect
-------------------------------------------------------------------------------
AA                            root's creation        Segmentation violation:      
<0000024E88181588>                         Operating system signal.      Exit
-------------------------------------------------------------------------------
AA                            root's creation                                     
<0000024E88181588>                         Routine failure.              Exit
-------------------------------------------------------------------------------
~~~~~~~~~~~~~~~

It works fine when I replace the agent creation by:

~~~~~~~~~~~~~~~
action := agent (s: STRING): INTEGER do Result := values.item (s) end
~~~~~~~~~~~~~~~

--
Eric Bezault
To Reproduce

										
Problem Report Interactions
From:alexk_es    Date:2020/02/27    Status: Analyzed    Download   

											
											
											
From:gobobe    Date:2020/02/26    Status: Open    Download   

											
											
											
From:gobobe    Date:2020/02/26    Status: Open    Download   

											
											
											
From:gobobe    Date:2020/02/26    Status: Open    Download