Crash when writing big TObjString in a TFile

Dear all,

I have a problem writing a big TObjString into a TFile. When the TObjString is bigger than a certain limit (32k) ROOT crashes.

How to reproduce :

  1. copy the script and the input file to your computer
  2. run the script
  3. see the crash

If you delete the last line of the input file, then ROOT doesn’t crash.

Am I doing something wrong or is it an official limit ?

Thanks in advance for your help.
Barth
testFile.C (684 Bytes)
input.txt (32 KB)

Hi,

This problem seems to be due to the way you string compressed (or do not), for example disabling the compression works around the issue: TFile f("test.output.root","recreate","",0);

Cheers,
Philippe.

Thanks for the reply. I have deactivated the compression and it works fine now.

Best regards,
Barth