[ROOT] arbitrary length limit on TFile filenames?

From: Matthew D. Langston (langston@SLAC.stanford.edu)
Date: Thu Oct 05 2000 - 19:54:06 MEST


I believe I have found a bug somewhere in ROOT that restricts the length of
TFile filenames to 31 characters or less.  Has anyone else experienced this,
or could anyone else confirm this?

We are filling and writing a single TTree to a single TFile.  When the
filename (basename + "." + extension) is more than 31 characters, then ROOT
segvios with a core dump.

For example, when we use the filename "Selected_WAB_Events_TTree_.root" for
our output TFile (which is 26 + 1 + 4 = 31 characters), then ROOT exits
normally.  However, when we use the file name
"Selected_WAB_Events_TTree_1.root", which is 27 + 1 + 4 = 32 characters in
length, then ROOT segvios with a core dump with the following error message:

 *** Break *** segmentation violation
Aborted (core dumped)

Regards, Matt

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET