some of our users encountered spurious startup-crashes of several ROOT-based applications after moving to ROOT 6 (ROOT 5 does not show this bug).
This is with 'heads/master@v6-05-02-131-g5abce92' but probably holds for many other ROOT 6 versions.
When using iostream and std::cout in rootlogon, programs invoking a TRint crash spuriously, probably related to a static initialization issue (which valgrind does not seem to see).
Consider the following minimum example (all attached in a .tar.gz for convenience):
The "-b" is just to make startup faster, the bug can also be triggered without that - all that's needed is some cout-usage in rootlogon and in the program before TRint is instantiated.
The stacktrace ends (inside the ".x rootlogon.C" transaction) with:
There are sadly some "??" in the trace, seemingly since the JITted code does not have debug symbols (can one activate that?).
I reproduced on both OpenSUSE 13.1 and current Gentoo Linux (completely different setups: One with cmake, the other with ./configure).
If you can't reproduce, I can try to provide more information.
The attached .tar.gz contains the .rootrc, the rootlogon.C, the example code and a very simple makefile.