|
[Rivet] segfault while declaring arrays of histogramsRaghav Kunnawalkam Elayavalli raghav.k.e at cern.chFri Aug 5 13:44:18 BST 2016
Hi David and Holger, yeah ive used gdb long ago with root, but could you help me with using gdb with rivet now? As it happens, im struggling with another crazy run-time seg fault (which ive had two of my colleagues look at without any success in debugging it) at the moment and would really appreciate any help. Cheers Raghav On Aug 4, 2016, at 4:04 PM, David Bjergaard <david.bjergaard at gmail.com<mailto:david.bjergaard at gmail.com>> wrote: Hi Raghav, It looks like Holger found the typo. A few tips: 1. C++ is multi-paradigm, but I tend to prefer using C++ data structures over C since they tend to throw meaningful exceptions where C just blows up 2. Gdb is your friend when it comes to debugging segfaults Shameless plug for a resource I wrote: www.phy.duke.edu/~dmb60/the-guide<http://www.phy.duke.edu/~dmb60/the-guide> There are links to lots of HEP software resources and, specific to you gdb, tutorials. Good luck! David On Aug 4, 2016, at 9:55 AM, Holger Schulz <holger.schulz at durham.ac.uk<mailto:holger.schulz at durham.ac.uk>> wrote: Hi Raghav, that looks roughly correct to me, maybe this is the culprit: On 04/08/16 14:08, Raghav Kunnawalkam Elayavalli wrote: for(int j = 0; j<_NJES_pt; ++i){ ++j maybe? Holger _______________________________________________ Rivet mailing list Rivet at projects.hepforge.org<mailto:Rivet at projects.hepforge.org> https://www.hepforge.org/lists/listinfo/rivet -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160805/cfae0695/attachment.html>
More information about the Rivet mailing list |