segmentation violation in expert mode

Asked by Kasinath Das

Hi ma5 team,
     I was trying to do an analysis in expert mode with version 1.3 with a root file. I got the following segmentation violation error.

    * SampleAnalyzer for MadAnalysis 5 - Welcome.
    * Initializing all components
      - version: 1.3 (2016/03/01)
      - general: everything is default.
      - extracting the list of event samples...
      - analyzer 'kasianalysis'
BEGIN Initialization
Analysis written by Kasinath Das
END Initialization
    * Running over files ...
    * 1/3 /media/kasinath/HD1/MyWorks/Third_generation_diquark_2/pp_ttbar_decayed/multi_run_root_files/pp_ttbar_2jets_decayed_1_2.root
        => file size: 3.95 Go
WARNING: the input file has been produced with ROOT version 1053423 whereas the loaded ROOT libs are related to the version 53423
        => sample format: Delphes-ROOT file produced by Delphes.
        => progress: [> ]
 *** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007f126645ba0c in __libc_waitpid (pid=4800, stat_loc=stat_loc
entry=0x7ffd3ae72a00, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1 0x00007f12663e1232 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2 0x00007f1267483cf3 in TUnixSystem::StackTrace() () from /home/kasinath/Program/root/lib/libCore.so
#3 0x00007f12674859fc in TUnixSystem::DispatchSignals(ESignals) () from /home/kasinath/Program/root/lib/libCore.so
#4 <signal handler called>
#5 0x000000000040de9c in MA5::kasianalysis::Execute(MA5::SampleFormat&, MA5::EventFormat const&) ()
#6 0x00000000004069b8 in main ()
===========================================================

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5 0x000000000040de9c in MA5::kasianalysis::Execute(MA5::SampleFormat&, MA5::EventFormat const&) ()
#6 0x00000000004069b8 in main ()
===========================================================

Segmentation fault (core dumped)

Here are the links for the rootfile and my analysis codes.

https://drive.google.com/open?id=0BxiStRYi68bLMURZS0IyaE5UZkE
https://drive.google.com/open?id=0BxiStRYi68bLNVpmYVgzS2FpVXM
https://drive.google.com/open?id=0BxiStRYi68bLYnNBcTlLamhMbTA
https://drive.google.com/open?id=0BxiStRYi68bLRnk1OVFtdG44ZHM

Please help me to resolve the issue.

Thanking you,
Kasinath

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Kasinath Das
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi,

Could you please try to generate the root file with madanalysis v1.4 or v1.5 beta and let us now whether the problem persists?

Regards,

Benjamin

On 23 Nov 2016, at 08:27 , Kasinath Das <email address hidden> wrote:

> New question #404319 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/404319
>
> Hi ma5 team,
> I was trying to do an analysis in expert mode with version 1.3 with a root file. I got the following segmentation violation error.
>
>
> * SampleAnalyzer for MadAnalysis 5 - Welcome.
> * Initializing all components
> - version: 1.3 (2016/03/01)
> - general: everything is default.
> - extracting the list of event samples...
> - analyzer 'kasianalysis'
> BEGIN Initialization
> Analysis written by Kasinath Das
> END Initialization
> * Running over files ...
> * 1/3 /media/kasinath/HD1/MyWorks/Third_generation_diquark_2/pp_ttbar_decayed/multi_run_root_files/pp_ttbar_2jets_decayed_1_2.root
> => file size: 3.95 Go
> WARNING: the input file has been produced with ROOT version 1053423 whereas the loaded ROOT libs are related to the version 53423
> => sample format: Delphes-ROOT file produced by Delphes.
> => progress: [> ]
> *** Break *** segmentation violation
>
>
>
> ===========================================================
> There was a crash.
> This is the entire stack trace of all threads:
> ===========================================================
> #0 0x00007f126645ba0c in __libc_waitpid (pid=4800, stat_loc=stat_loc
> entry=0x7ffd3ae72a00, options=options
> entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
> #1 0x00007f12663e1232 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
> #2 0x00007f1267483cf3 in TUnixSystem::StackTrace() () from /home/kasinath/Program/root/lib/libCore.so
> #3 0x00007f12674859fc in TUnixSystem::DispatchSignals(ESignals) () from /home/kasinath/Program/root/lib/libCore.so
> #4 <signal handler called>
> #5 0x000000000040de9c in MA5::kasianalysis::Execute(MA5::SampleFormat&, MA5::EventFormat const&) ()
> #6 0x00000000004069b8 in main ()
> ===========================================================
>
>
> The lines below might hint at the cause of the crash.
> If they do not help you then please submit a bug report at
> http://root.cern.ch/bugs. Please post the ENTIRE stack trace
> from above as an attachment in addition to anything else
> that might help us fixing this issue.
> ===========================================================
> #5 0x000000000040de9c in MA5::kasianalysis::Execute(MA5::SampleFormat&, MA5::EventFormat const&) ()
> #6 0x00000000004069b8 in main ()
> ===========================================================
>
>
> Segmentation fault (core dumped)
>
>
>
>
>
>
>
> Here are the links for the rootfile and my analysis codes.
>
> https://drive.google.com/open?id=0BxiStRYi68bLMURZS0IyaE5UZkE
> https://drive.google.com/open?id=0BxiStRYi68bLNVpmYVgzS2FpVXM
> https://drive.google.com/open?id=0BxiStRYi68bLYnNBcTlLamhMbTA
> https://drive.google.com/open?id=0BxiStRYi68bLRnk1OVFtdG44ZHM
>
>
> Please help me to resolve the issue.
>
>
> Thanking you,
> Kasinath
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Kasinath Das (kasinath-das91) said :
#2

Hi Benjamin,
      Thank you very much for the reply.

 I could find that the error was because I was trying to find out the PT of the leading jet. The program was giving the segmentation violation error at the moment it gets an event with no jets.

I just added a cut to select the events with atlest one jet. After that the code is working fine.

Thank you,
Kasinath