[ROOT] hadd.C macro crashes w/ 2 levels of dirs

From: Sven A. Schmidt (sven.schmidt@koch-schmidt.de)
Date: Tue Feb 13 2001 - 17:19:57 MET


Hi,

I encountered a problem using the hadd.C macro from the tutorials. I've been using it successfully for a while now with root files that have one level of subdirectories. I now added another level and it crashes with a segmentation violation.

I tried to have a look at the core file, but the exception handling hides the problem. Adding all kinds of printf's make the thing crash a lot sooner, which I believe indicates memory being overwritten.

A candidate for this seemed to be the line
char *base = (char*)strstr(...)
which I replaced with a TString version. But that didn't help.

Did anyone experience the same problem, having a fix for it possibly?

Cheers,
Sven



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET