#656 Variables display corrupted by carriage returns in values

v0.5.x
closed-fixed
Debugger (177)
5
2016-05-12
2013-01-31
No

If any in-scope variable value contains a literal carriage return (\r) character, the display in the Debugger Variables window is corrupted. The variable with the embedded carriage return is hidden, and some unrelated variables in the display may also be hidden.

If, later in the program execution, the embedded carriage return disappears from the variable value, the Variables window display returns to normal.

Single-stepping through the following simple test case reliably reproduces the bug; here the variable $var1 is hidden when its value contains a carriage return, and so is the unrelated variable $var2:

my $var1 = "This is a variable.";
my $var2 = "This is an unrelated variable.";

print "$var1\n$var2\n";

$var1 = "A carriage return \r is embedded.";

print "$var1\n$var2\n";

$var1 = "No more carriage return!";

print "$var1\n$var2\n";

Discussion

  • Simone Cumar

    Simone Cumar - 2013-11-25

    I confirm almost the same behaviour. The EPIC plugin also throws an Exception and stops showing variables.
    The message showed up is:
    «An internal error occurred during: "child count update".
    java.lang.ArrayIndexOutOfBoundsException»

    I can also confirm that if the carriage return is deleted all works again.

     
    • Jan Ploski

      Jan Ploski - 2013-11-25

      This problem is not reproducible in EPIC 0.6.53 under Linux. Consider upgrading.

       
      • Simone Cumar

        Simone Cumar - 2013-11-25

        Moving from stable to testing repos resolved the problem. Thanks.

         
  • Simone Cumar

    Simone Cumar - 2013-11-25
     
    Last edit: Simone Cumar 2013-11-25
  • Oliver Trosien

    Oliver Trosien - 2016-05-12
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks