Re: TChain causes segmentation violation, leaving no stack!

From: Axel Naumann <axel-naumann_at_gmx.de>
Date: Fri, 08 Jul 2005 11:53:35 +0200


Hi Lashkar,

this is most likely due to a problem with your TChain::SetBranchAddress / Notify setup. We need your code to help you.

Try starting root_exe.exe in gdb, instead of root.exe. That might give you a backtrace.

Axel.

Lashkar Mohammad Kashif wrote:
> Hi all,
>
> I'm using root v4.04/02 on Windows XP under cygwin. I've searched the RootTalk
> mails of 2004/5, but nobody seems to have had this particular problem:
>
> I chain together several files, each with 100 evts, and then extract several
> leaves from the tree. The loop runs over the first file in the chain, ie, the
> first 100 evts, and then gives segmentation violation on evt #101, ie, the
> first event of the second file. Starting with a different file doesn't make a
> difference. I can see that the violation occurs at the statement
>
> chain.GetEvent(nev);
>
> Using GetEntry() instead of GetEvent() gives the same result. Because I exit
> root normally to get back to gdb, it does not give me the stack:
>
> ................
> Getting Evt #101
>
> *** Break *** segmentation violation
> Root > Function main() busy flag cleared
>
> root [2] .q
>
> Program exited normally.
> (gdb) bt
> No stack.
> (gdb) where
> No stack.
> (gdb)
>
> Thanks for any suggestions-
> Lashkar Kashif
>
Received on Fri Jul 08 2005 - 11:53:49 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:10 MET