Who is known what is this bug?

I assume this is the same problem: Illegal pointer to class object back 0x0 165

Notes:

  1. Always try to precompile your macro using ACLiC, in order to find source code problems, e.g. try something like (inspect all reported warnings and errors):
    root [0] .L YourRootMacro.cxx++
  2. You can “debug” many problems using “valgrind”. See, for example: Segmentation Fault depending on linux distribution