Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cling] crash / compilation exception after undo #10178

Closed
ferdymercury opened this issue Mar 21, 2022 · 3 comments
Closed

[cling] crash / compilation exception after undo #10178

ferdymercury opened this issue Mar 21, 2022 · 3 comments

Comments

@ferdymercury
Copy link
Collaborator

Describe the bug

I get a crash with ROOT after a (stupid) test of undo sequences.

Expected behavior

No crash.

To Reproduce

root -l
root [0] int x
(int) 0
root [1] .undo
root [2] x
(int) 0
root [3] .undo
root [4] .undo
root [5] x
input_line_13:2:3: error: use of undeclared identifier 'x'
 (x)
  ^
Error in <HandleInterpreterException>: Error evaluating expression (x).
Execution of your code was aborted.
root [6] x
input_line_15:2:3: error: use of undeclared identifier 'x'
 (x)
  ^
Error in <HandleInterpreterException>: Error evaluating expression (x).
Execution of your code was aborted.
root [7] int x
(int) 0
root [8] int x
(int) 0
root [9] x
(int) 0
root [10] x
(int) 0
root [11] x
(int) 0
root [12] x
(int) 0
root [13] .undo
root [14] x
(int) 0
root [15] .undo 5
root [16] x
input_line_24:2:3: error: use of undeclared identifier 'x'
 (x)
  ^
terminate called after throwing an instance of 'cling::CompilationException'
  what():  Error evaluating expression (x)

Setup

   ------------------------------------------------------------------
  | Welcome to ROOT 6.27/01                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jan 12 2022, 10:17:19                 |
  | From heads/master@v6-25-01-2870-gdac9b6398d                      |
  | With c++ (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0                     |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------
@couet
Copy link
Member

couet commented Mar 21, 2022

Your sequence is a bit long :-) but i see the same on MacOS

@jalopezg-git
Copy link
Collaborator

Removing the 6.28/00 milestone; it's low priority, thus postponing.

@ferdymercury
Copy link
Collaborator Author

This works now fine on 6.28/04, it no longer crashes.

root -l
root [0] int x
(int) 0
root [1] .undo
root [2] x
(int) 0
root [3] .undo
root [4] .undo
root [5] x
input_line_12:2:3: error: use of undeclared identifier 'x'
 (x)
  ^
Error in <HandleInterpreterException>: Error evaluating expression (x)
Execution of your code was aborted.
root [6] x
input_line_14:2:3: error: use of undeclared identifier 'x'
 (x)
  ^
Error in <HandleInterpreterException>: Error evaluating expression (x)
Execution of your code was aborted.
root [7] int x
(int) 0
root [8] int x
(int) 0
root [9] x
(int) 0
root [10] x
(int) 0
root [11] x
(int) 0
root [12] x
(int) 0
root [13] .undo
root [14] x
(int) 0
root [15] .undo 5
root [16] x
input_line_23:2:3: error: use of undeclared identifier 'x'
 (x)
  ^
Error in <HandleInterpreterException>: Error evaluating expression (x)
Execution of your code was aborted.
root [17] .q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants