Segmentation fault

Dear experts,
running my project (compiled with -g) leads to Segmentation fault at the moment of openning the event.root file.

while i recompiled it in DEBUG mode and run in valgrind I get a hint to where it might have happened. actually I got completely lost, as every line referes to the ROOT library.

If you have any usefull idea or comment to what this peice of valgrind message means, please reply.

==20365== 8 bytes in 1 blocks are still reachable in loss record 122 of 437
==20365== at 0x4019FBA: operator new(m_replacemalloc/vg_replace_malloc.c:195)
==20365== by 0x4554D42: TMessageHandler::HandleMessage(int, TObject const*) (in /dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x4571AF3: TROOT::Message(int, TObject const*) (in
/dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x4557483: TObject::Warning(char const*, char const*, …) const (in
/dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x45CED38: TObjectTable::Remove(TObject*) (in /dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x45560CE: TObject::~TObject() (in
/dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x4FAC4F7: ROOT::delete_TH2F(void*) (in
/dummy/root/.@sys/5.08.00/lib/libHist.so)
==20365== by 0x45E3246: TClass::Destructor(void*, bool) (in
/dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x4517E69: TBuffer::ReadFastArray(void**, TClass const*, int, bool, TMemberStreamer*) (in /dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x46024C5: int TStreamerInfo::ReadBuffer(TBuffer&, char** const&, int, int, int, int) (in /dummy/root/.@sys/5.08.00/lib/libCore.so)
==20365== by 0x556585F: TBranchElement::ReadLeaves(TBuffer&) (in
/dummy/root/.@sys/5.08.00/lib/libTree.so)
==20365== by 0x5553A55: TBranch::GetEntry(long long, int) (in
/dummy/root/.@sys/5.08.00/lib/libTree.so)

This seems to indicate a ownership problem in one of your class (regarding a datamember of type TH2F). One possibility is that your default constructor does not properly initialize this data member ( should be 0 in your case ).

Cheers,
Philippe