<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi David and Holger, 
<div class=""><br class="">
</div>
<div class="">yeah ive used gdb long ago with root, but could you help me with using gdb with rivet now?</div>
<div class=""> </div>
<div class="">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. </div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Cheers</div>
<div class="">Raghav</div>
</div>
</div>
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Aug 4, 2016, at 4:04 PM, David Bjergaard <<a href="mailto:david.bjergaard@gmail.com" class="">david.bjergaard@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">
<div class="">Hi Raghav,</div>
<div class=""><br class="">
</div>
<div class="">It looks like Holger found the typo. A few tips:</div>
<div class="">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</div>
<div class="">2. Gdb is your friend when it comes to debugging segfaults </div>
<div class=""><br class="">
</div>
<div class="">Shameless plug for a resource I wrote: </div>
<div class=""><a href="http://www.phy.duke.edu/~dmb60/the-guide" class="">www.phy.duke.edu/~dmb60/the-guide</a></div>
<div class=""><br class="">
</div>
<div class="">There are links to lots of HEP software resources and, specific to you gdb, tutorials. </div>
<div class=""><br class="">
</div>
<div class="">Good luck!</div>
<div class=""><br class="">
    David</div>
<div class=""><br class="">
On Aug 4, 2016, at 9:55 AM, Holger Schulz <<a href="mailto:holger.schulz@durham.ac.uk" class="">holger.schulz@durham.ac.uk</a>> wrote:<br class="">
<br class="">
</div>
<blockquote type="cite" class="">
<div class="">
<p class="">Hi Raghav,</p>
<p class="">that looks roughly correct to me, maybe this is the culprit:<br class="">
</p>
<br class="">
<div class="moz-cite-prefix">On 04/08/16 14:08, Raghav Kunnawalkam Elayavalli wrote:<br class="">
</div>
<blockquote cite="mid:609305A8-B1B4-4C19-B4A5-DA1E5E7C9CC7@cern.ch" type="cite" class="">
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>for(int j = 0; j<_NJES_pt;
<font color="#ff0000" class="">++i</font>){</div>
</blockquote>
++j  maybe?<br class="">
<br class="">
Holger<br class="">
</div>
</blockquote>
<blockquote type="cite" class="">
<div class=""><span class="">_______________________________________________</span><br class="">
<span class="">Rivet mailing list</span><br class="">
<span class=""><a href="mailto:Rivet@projects.hepforge.org" class="">Rivet@projects.hepforge.org</a></span><br class="">
<span class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="">https://www.hepforge.org/lists/listinfo/rivet</a></span></div>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>