PR# 12988 Watch expression << Current >> when in generic class gives internal exception then crash

Problem Report Summary
Submitter: prestoat2000
Category: Debugger
Priority: Medium
Date: 2007/06/04
Class: Bug
Severity: Serious
Number: 12988
Release: 6.0.68843
Confidential: No
Status: Suspended
Responsible: jfiat_es
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.0.7) Gecko/20060915 Firefox/1.5.0.7 Solaris 9 on SPARC
Synopsis: Watch expression << Current >> when in generic class gives internal exception then crash

Description
A watch expression << Current >> when execution is paused in a routine
of a generic class fails to evaluate with an internal exception, then
crashes when step again.
To Reproduce
Compile with attached class and .ecf file.
Click on Step by Step twice, then Step into Routine once.
Add watch expression << Current >>.
Evaluation fails with an internal exception.
Click on Step by Step.
Estudio crashes with no trace.

Note that watch expression `[Current]' when stopped in a generic class
also yields an error:

   Instance creation of class {TUPLE [ARRAYED_LIST [G#1]]} raised an error.

However, in this case stepping again just gives the same error, instead of
a crash.
Problem Report Interactions
From:jfiat_es    Date:2007/06/06    Status: Suspended    Download   
This issue is now fixed by revision rev#68909.
The crash won't happened again, however the evaluator won't be always able to create the array, since at compilation time, we don't always know the exact type of "like Current", this is known at the execution time.
We'll try to improve the debugger on this point after 6.0.
Thus, I change the status to suspended if you don't mind.

From:prestoat2000    Date:2007/06/04    Download   
Attachments for problem report #12988

Attachment: test.e     Size:156
Attachment: test.ecf     Size:1268