*** stack smashing detected ***: terminated


I’m running a macro analysis.C that takes the input file name and the number of files it was hadded from as input:

root ‘analysis.C+(“190607_L7_0_955.root”,955)’

This runs fine if I run it over a single file, but crashes when ran over the hadded file. The error message is the following:

*** stack smashing detected ***: terminated

I have gone through the files and they seem healthy, I have no idea what’s going on here, any clue?


ROOT Version: 6.24/00
Built for linuxx8664gcc on May 21 2021, 23:47:00
From heads/latest-stable@v6-24-00-1-ge6a04a86cb

Does analysis.C contain any C-style arrays: double Something[52]? If so, for the large file there’s at least one entry where the array size (52 in this example) is insufficient.

That was exactly the situation, thanks so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.