<div dir="ltr"><div><div>It happens with the first call.<br><br></div>I set a breakpoint just before and it is not empty. I have tried to attach a screen capture of my space. <br><br></div>Yes I thought I may have changed something but I have copied the directory twice from the original download in which it builds correctly. I cloned this with git and there are no changes. <br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 3:23 PM, Cyril Mory <span dir="ltr"><<a 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>
    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><br>
      Regards,<br>
      Cyril<div><div class="h5"><br>
      <br>
      On 09/16/2014 04:07 PM, Padraig Looney wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote 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 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><br>
                  <br>
                  <div>On 09/09/2014 12:05 PM, Padraig Looney wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <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 href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><span><font color="#888888">
</font></span></pre>
                <span><font color="#888888"> </font></span></blockquote>
              <span><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 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 cols="72">-- 
--
Cyril Mory, Post-doc
CREATIS
Leon Berard cancer treatment center
28 rue Laënnec
69373 Lyon cedex 08 FRANCE

Mobile: <a href="tel:%2B33%206%2069%2046%2073%2079" value="+33669467379" target="_blank">+33 6 69 46 73 79</a></pre>
  </div></div></div>

</blockquote></div><br></div>