<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Padraig,<br>
    <br>
    Does the segfault happen at the first call of
    geometry->AddProjection(...) or later ?<br>
    <br>
    My guess is that, for some reason, geometry is not initialized. Can
    you make sure it is by setting a breakpoint just before ?<br>
    You should also make sure that all variables involved in this call,
    ie "sid", "sdd", "angle", "isox" and "isoy" have reasonable values
    before the call. <br>
    <br>
    It is probably not a good question, yet I have to ask : did you
    modify something in the file
    examples/FirstReconstruction/FirstReconstruction.cxx ? <br>
    <div class="moz-cite-prefix"><br>
      Regards,<br>
      Cyril<br>
      <br>
      On 09/16/2014 04:07 PM, Padraig Looney wrote:<br>
    </div>
    <blockquote
cite="mid:CAEvY7i87hyQFxEYB7_zK-o5FwV4utkTQg-qbsYpQR1skcd6NSw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Thanks Cyril, <br>
        </div>
        <div><br>
          Following your advice I have tracked the seg fault down to
          line 36 in FirstReconstruction<br>
          <br>
          geometry->AddProjection(sid,<br>
                                      sdd,<br>
                                      angle,<br>
                                      isox,<br>
                                      isoy);<br>
              }<br>
          <br>
        </div>
        I realised that I managed to build the examples with RTK fine
        and the same example runs without a seg fault in the build
        directory. <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Sep 9, 2014 at 11:32 AM, Cyril
          Mory <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:cyril.mory@creatis.insa-lyon.fr"
              target="_blank">cyril.mory@creatis.insa-lyon.fr</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF"> Hi Padraig,<br>
              <br>
              With so little information, there isn't much we can do to
              help you.<br>
              I usually track segfaults by compiling in Debug mode (by
              setting "CMAKE_BUILD_TYPE" to "Debug"), then running the
              program in debug in QT Creator (any decent IDE will do
              just fine, and should stop when the segfault occurs,
              allowing you to trace it back)<br>
              <br>
              Good luck,<br>
              Cyril
              <div>
                <div class="h5"><br>
                  <br>
                  <div>On 09/09/2014 12:05 PM, Padraig Looney wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div>When I try to run the "FirstReconstruction"
                        example I am getting a segmentation fault. <br>
                        <br>
                      </div>
                      The following is the output from gdb<br>
                      <div><br>
                        Program received signal SIGSEGV, Segmentation
                        fault.<br>
                        0x00000000004952d7 in typeinfo for
                        rtk::ProjectionGeometry<3u> ()<br>
                        <br>
                        <br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Rtk-users mailing list
<a moz-do-not-send="true" href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a>
<a moz-do-not-send="true" href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="HOEnZb"><font color="#888888"> <br>
                  <pre cols="72">-- 
--
Cyril Mory, Post-doc
CREATIS
Leon Berard cancer treatment center
28 rue Laënnec
69373 Lyon cedex 08 FRANCE

Mobile: <a moz-do-not-send="true" href="tel:%2B33%206%2069%2046%2073%2079" value="+33669467379" target="_blank">+33 6 69 46 73 79</a></pre>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
--
Cyril Mory, Post-doc
CREATIS
Leon Berard cancer treatment center
28 rue Laënnec
69373 Lyon cedex 08 FRANCE

Mobile: +33 6 69 46 73 79</pre>
  </body>
</html>