<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Le 18/05/2011 17:11, Acero Fernandez Alicia a &eacute;crit&nbsp;:
    <blockquote
      cite="mid:50C74E87FB16FB4F9356E175CA15423E052969E1@STR.ciemat.es"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
      <title>segfault with galib</title>
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EstiloCorreo18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;">Hello,<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-GB">I have to call a function
              from the objective function and something extrange happens
              because when I call
              this function the error appears and it disappears when I
              take out the function.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-GB">Could anyone help me,
              please?<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-GB">Regards</span></font></p>
      </div>
    </blockquote>
    <font color="navy" face="Arial" size="2"><span style="font-size:
        10pt; font-family: Arial; color: navy;" lang="EN-GB"><o:p> </o:p></span></font>
    <blockquote
      cite="mid:50C74E87FB16FB4F9356E175CA15423E052969E1@STR.ciemat.es"
      type="cite">
      <div class="Section1">
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
        <div>
          <div class="MsoNormal" style="text-align: center;"
            align="center"><font face="Times New Roman" size="3"><span
                style="font-size: 12pt;">
                <hr tabindex="-1" align="center" width="100%" size="2">
              </span></font></div>
          <p class="MsoNormal"><b><font face="Tahoma" size="2"><span
                  style="font-size: 10pt; font-family: Tahoma;
                  font-weight: bold;">De:</span></font></b><font
              face="Tahoma" size="2"><span style="font-size: 10pt;
                font-family: Tahoma;">
                <a class="moz-txt-link-abbreviated" href="mailto:galib-bounces@mit.edu">galib-bounces@mit.edu</a> [<a class="moz-txt-link-freetext" href="mailto:galib-bounces@mit.edu">mailto:galib-bounces@mit.edu</a>] <b><span
                    style="font-weight: bold;">En nombre de </span></b>Acero
                Fernandez Alicia<br>
                <b><span style="font-weight: bold;">Enviado el:</span></b>
                mi&eacute;rcoles, 18 de mayo
                de 2011 16:09<br>
                <b><span style="font-weight: bold;">Para:</span></b>
                <a class="moz-txt-link-abbreviated" href="mailto:galib@mit.edu">galib@mit.edu</a><br>
                <b><span style="font-weight: bold;">Asunto:</span></b>
                [galib] segfault with
                galib</span></font><o:p></o:p></p>
        </div>
        <p class="MsoNormal"><font face="Times New Roman" size="3"><span
              style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal" style="margin-bottom: 12pt;"><font
            face="Times New Roman" size="3"><span style="font-size:
              12pt;"><o:p>&nbsp;</o:p></span></font></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">Hello,</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">Could anyone help me?</span></font><span
            lang="EN-GB"> </span><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I
              am trying to use galib with a c++ code but</span></font><span
            lang="EN-GB"> </span><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-GB">I</span></font><span
            lang="EN-GB"> </span><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-GB">only</span></font><span
            lang="EN-GB"> </span><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-GB">get</span></font><span
            lang="EN-GB"> </span><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-GB">a
              segfault. I tried to analyse it with valgrind and I
              can see the following:</span></font></p>
      </div>
    </blockquote>
    <font face="Arial" size="2"><span style="font-size: 10pt;
        font-family: Arial;" lang="EN-GB"> Use of uninitialised value of
        size 8</span></font><br>
    <font face="Arial" size="2"><span style="font-size: 10pt;
        font-family: Arial;" lang="EN-GB">Invalid read of size 8</span></font><br>
    <font face="Arial" size="2"><span style="font-size: 10pt;
        font-family: Arial;" lang="EN-GB">Address 0x141 is not stack'd,
        malloc'd or (recently)
        free'd</span></font><br>
    <font face="Arial" size="2"><span style="font-size: 10pt;
        font-family: Arial;" lang="EN-GB">Process terminating with
        default action of signal 11 (SIGSEGV)<br>
        <br>
        Your function missed to allocate mem to a pointer before
        affectation ? (use new and delete)<br>
        <br>
        Regards, P.<br>
        <br>
        <br>
        <br>
        <br>
      </span></font>
    <blockquote
      cite="mid:50C74E87FB16FB4F9356E175CA15423E052969E1@STR.ciemat.es"
      type="cite">
      <div class="Section1">
        <p><o:p></o:p></p>
        <p class="MsoNormal" style="margin-bottom: 12pt;"><font
            face="Times New Roman" size="3"><span style="font-size:
              12pt;"><o:p>&nbsp;</o:p></span></font></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419== Use of
              uninitialised value of size 8</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; at 0x41D112:
              ClusterSimulator::simulate(std::vector&lt;unsigned int,
              std::allocator&lt;unsigned int&gt; &gt; const&amp;) (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42E0FF:
              Objective(GAGenome&amp;) (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x4417A3:
              GAGenome::evaluate(_GABoolean)
              const (GAGenome.C:83)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43DFC8:
              GAPopulation::DefaultEvaluator(GAPopulation&amp;)
              (GAPopulation.C:38)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43D180:
              GAPopulation::evaluate(_GABoolean)
              (GAPopulation.h:123)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43C500:
              GASimpleGA::initialize(unsigned
              int) (GASimpleGA.C:148)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x434A5B:
              GAGeneticAlgorithm::evolve(unsigned int) (GABaseGA.h:136)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42E3D3:
              pruebas(std::vector&lt;unsigned
              int, std::allocator&lt;unsigned int&gt; &gt; const&amp;)
              (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42EB1B:
              main (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419== Invalid read of
              size 8</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; at 0x41D112:
              ClusterSimulator::simulate(std::vector&lt;unsigned
              int, std::allocator&lt;unsigned int&gt; &gt; const&amp;)
              (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42E0FF:
              Objective(GAGenome&amp;) (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x4417A3:
              GAGenome::evaluate(_GABoolean)
              const (GAGenome.C:83)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43DFC8:
              GAPopulation::DefaultEvaluator(GAPopulation&amp;)
              (GAPopulation.C:38)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43D180:
              GAPopulation::evaluate(_GABoolean) (GAPopulation.h:123)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43C500:
              GASimpleGA::initialize(unsigned
              int) (GASimpleGA.C:148)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x434A5B:
              GAGeneticAlgorithm::evolve(unsigned int) (GABaseGA.h:136)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42E3D3:
              pruebas(std::vector&lt;unsigned
              int, std::allocator&lt;unsigned int&gt; &gt; const&amp;)
              (in /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42EB1B:
              main (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp; Address 0x141
              is not stack'd, malloc'd or (recently)
              free'd</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419== Process
              terminating with default action of signal 11 (SIGSEGV)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp; Access not
              within mapped region at address 0x141</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; at 0x41D112:
              ClusterSimulator::simulate(std::vector&lt;unsigned int,
              std::allocator&lt;unsigned int&gt; &gt; const&amp;) (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42E0FF:
              Objective(GAGenome&amp;) (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x4417A3:
              GAGenome::evaluate(_GABoolean)
              const (GAGenome.C:83)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43DFC8:
              GAPopulation::DefaultEvaluator(GAPopulation&amp;)
              (GAPopulation.C:38)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43D180:
              GAPopulation::evaluate(_GABoolean) (GAPopulation.h:123)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x43C500:
              GASimpleGA::initialize(unsigned
              int) (GASimpleGA.C:148)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x434A5B:
              GAGeneticAlgorithm::evolve(unsigned int) (GABaseGA.h:136)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42E3D3:
              pruebas(std::vector&lt;unsigned
              int, std::allocator&lt;unsigned int&gt; &gt; const&amp;)
              (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p><font face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial;" lang="EN-GB">==5419==&nbsp;&nbsp;&nbsp; by 0x42EB1B:
              main (in
              /home/u5077/simulador/Scheduling/Simulator/schedulers)</span></font><o:p></o:p></p>
        <p class="MsoNormal"><font face="Times New Roman" size="3"><span
              style="font-size: 12pt;">----------------------------
              Confidencialidad: Este mensaje y sus
              ficheros adjuntos se dirige exclusivamente a su
              destinatario y puede contener
              informaci&oacute;n privilegiada o confidencial. Si no es vd. el
              destinatario indicado,
              queda notificado de que la utilizaci&oacute;n, divulgaci&oacute;n y/o
              copia sin autorizaci&oacute;n
              est&aacute; prohibida en virtud de la legislaci&oacute;n vigente. Si ha
              recibido este mensaje
              por error, le rogamos que nos lo comunique inmediatamente
              respondiendo al
              mensaje y proceda a su destrucci&oacute;n. Disclaimer: This
              message and its attached
              files is intended exclusively for its recipients and may
              contain confidential
              information. If you received this e-mail in error you are
              hereby notified that
              any dissemination, copy or disclosure of this
              communication is strictly
              prohibited and may be unlawful. In this case, please
              notify us by a reply and
              delete this email and its contents immediately.
              ---------------------------- <o:p></o:p></span></font></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
galib mailing list
<a class="moz-txt-link-abbreviated" href="mailto:galib@mit.edu">galib@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/galib">http://mailman.mit.edu/mailman/listinfo/galib</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Le savoir n'est pas une marchandise,
L'Universit&eacute; n'est pas une entreprise.

L'Excellence [de Sarkozy] est un  cadavre qui fait courir
le petit peuple des chercheurs qui r&ecirc;vait &agrave; des jours meilleurs (P. Maillard, 2011)

--

Dr. Patrick Coquillard,
UMR Interactions Biotiques et Sant&eacute; des V&eacute;g&eacute;taux,
400, routes des Chappes
06 903, Sophia Antipolis

T&eacute;l/fax : #33(0) 492 386 430

<a class="moz-txt-link-freetext" href="http://www.unice.fr/coquillard">http://www.unice.fr/coquillard</a></pre>
  </body>
</html>