Hadd problems

Dear all,
i was using without problems hadd to sum ROOT files with histograms.
Now i’ve added some other directories with new histograms and i can’t no more add files. I get segmentation violation errors and abort due to *** glibc detected *** free(): invalid next size (fast): 0x12afcfd8 *** errors.
I’m using 5.08.00b on lxplus and root files i’m trying to add are under
/tmp/bellomo/Zmumu of lxplus240.
If you try to add a couple of them no problem, but adding sequentially to a target file

target = file1 + file2
targe += file3
target += file4

gives the avove errors.
Any hints please ? All my analysis is blocked for this isssue …
Many thanks,
Max

Could you move to a ROOT version >=5.14 (eg 5.17/04).
I do not see any problems merging all your files with these versions.

Rene

Hi Rene,
i’m still getting the error with 5.17.04.
I see a
*** glibc detected *** free(): invalid next size (fast): 0x12afcfd8 *** errors.
with subsequent Abort. hadd starts to next sum in iteration and continues
smootly to the end but going throught other errors like this.
Can you please tell me the procedure you do to merge files ?
I’m doing

target = file1+file2
target += file3
target += file4
target += file5

Is it maybe better to do like

hadd target file1 file2 … file100 ?

Cheers,
Max

Because your files have very long names I did

hadd -f /tmp/result.root \ file1.root \ file2.root \ .. fileN.root
Rene

Ok it’s fine also for me now.
Thanks for your prompt replies (as usual :slight_smile:) !!!

Cheers,
Max

Hi,

I have the same problem but none of the solutions proposed works for me. I’m using root 5.18/00a. I can not even add two individual files although they were produced in identical way and can be read standalon.

Files can be found in:
lxplus213:/tmp/jfernan2/DQM

Error is again:
*** glibc detected *** free(): invalid next size (fast): 0x087eea90 ***
Abort

Thanks in advance,
Javi

Hi,

I have the same problem but none of the solutions proposed works for me. I’m using root 5.18/00a. I can not even add two individual files although they were produced in identical way and can be read standalon.

Files can be found in:
lxplus213:/tmp/jfernan2/DQM

Error is again:
*** glibc detected *** free(): invalid next size (fast): 0x087eea90 ***
Abort

Thanks in advance,
Javi

we will investigate this problem.

Rene

Thanks to Philippe, this problem is now solved in the SVN trunk.
The problem was in TH1::Merge (used by hadd) that did not support so far merging of histograms with bins labels set (but not all labels set).

Rene

Thanks Rene!
Which version will implement this fix? Is there any patch I could apply to my current version and finally merge these ones?

Javi

Hi,

You can see the change at root.cern.ch/viewcvs/trunk/hist/ … 8&r2=24108
and download a patch at
root.cern.ch/viewcvs/trunk/hist/ … view=patch

Cheers,
Philippe.