Cling segmentation violation

Hello,

What to do in case of a error like this in CLING, which is not solved even by restarting the Root session:

TCanvas *b = new TCanvas(“t”, “t”)

*** Break *** segmentation violation

Cheers,
Viesturs

Hi Viesturs,
what ROOT version do you use? On which platform? I am not able to obtain any cling crash in ROOT 6.06 with the command you gave.

It is ROOT 6.02/05
SL6

You missed a semi colon.

a semicolon cannot be a problem at CLING
In situations like this is there something that we can check and reset at gROOT for example?

[quote]which is not solved even by restarting the Root session:
TCanvas *b = new TCanvas(“t”, “t”)
*** Break *** segmentation violation
[/quote]This is likely to be an installation problem (mix of old and new version of ROOT).

Make sure that your $ROOTSYS, LD_LIBRARY_PATH and PATH all point to the same version of ROOT and do not point to any other versions.

If this is already the case, then running using valgring might provide us with more information:valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp root.exe -l -q -e 'TCanvas *b = new TCanvas("t", "t")'

Cheers,
Philippe.