<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap: break-word;">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Ali.<br>
<br>
This is perhaps not a clear case since it involves dune and its use on mac<br>
but since the code you are using is from dune-fem it would be good<br>
to keep these mail on the dune-fem list<br>
(http://lists.dune-project.org/mailman/listinfo/dune-fem)<br>
<br>
Did I understand correctly: the code ran successfully producing the<br>
right results but terminated with the segfaults you have shown in your mail?<br>
Perhaps we can reproduce the problem (seems to be dune+alu) with<br>
some other program:<br>
could you install the dune-grid-howto and use one of the test programs there<br>
with alu to see if the same segfaults occurs. <br>
Perhaps the intergration.cc testcase?<br>
<br>
Thanks<br>
Andreas<br>
<br>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF607585"><font color="#000000" face="Tahoma" size="2"><b>From:</b> dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk@dune-project.org] on behalf of Alasdair McLeay [a.mcleay@sussex.ac.uk]<br>
<b>Sent:</b> 17 July 2012 18:08<br>
<b>To:</b> dune@dune-project.org<br>
<b>Subject:</b> [Dune] Dune on Mac OS X - Segmentation Fault<br>
</font><br>
</div>
<div></div>
<div>
<div>Hi, I recently attended the DUNE School at the University of Warwick and have since been trying to get DUNE running under Mac OS X so that I can develop some code.</div>
<div><br>
</div>
<div>I have managed to get Dune installed and am able to compile the example code we were given at the DUNE school, but they all exit with a segmentation fault after finishing the execution of main(), e.g.</div>
<div><br>
</div>
<blockquote class="webkit-indent-blockquote" style="margin: 0pt 0pt 0pt 40px; border: medium none; padding: 0px;">
<div>
<div><font class="Apple-style-span" face="Courier">$ ./intro </font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier"><SNIP></font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">DataOutput[0]::write data writestep=0 sequenceStamp=0</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">Debug: End of algorithm() </font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">Error: 0.0530314</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">EOC( 4 ) = -0.00124586</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">Debug: End of main() </font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">Segmentation fault: 11</font></div>
</div>
</blockquote>
<div><br>
</div>
<div>I've also been able to run the code in Xcode in order to debug it but the best I can do is find where the error is occurring:</div>
<div><br>
</div>
<blockquote class="webkit-indent-blockquote" style="margin: 0pt 0pt 0pt 40px; border: medium none; padding: 0px;">
EXC_BAD_ACCESS  during 'movl' at:</blockquote>
<div><br>
</div>
<blockquote class="webkit-indent-blockquote" style="margin: 0pt 0pt 0pt 40px; border: medium none; padding: 0px;">
<div><font class="Apple-style-span" face="Courier">4 start</font></div>
<div><font class="Apple-style-span" face="Courier">3 main</font></div>
<div><font class="Apple-style-span" face="Courier">2 Dune::GridPtr<Dune::ALUCubeGrid<2,2> >::~GridPtr()</font></div>
<div><font class="Apple-style-span" face="Courier">1 Dune::ALU2Grid<2,2,(ALU2Grid::ElementType)1>::~ALU2dGrid()</font></div>
<div><font class="Apple-style-span" face="Courier">0 Dune::DefaultIndexSet<DuneIndexSet<Dube::ALU2dGrid<2,2,(ALU2DGrid::ElementType)1>,Dune::EntityIterator<0,Dune::ALU2dGrid<2,2,(ALU2DGrid::ElementType)1> const, Dune::ALU2dGridLevelIterator<0,(Dune::PartitionIteratorType)4,DuneALU2dGrid<2,2,(ALU2DGrid::ElementType)1>
 const> > >::~DefaultIndexSet()</font></div>
<div><font class="Apple-style-span" face="Courier"><br>
</font></div>
</blockquote>
<div style="font-family: Helvetica;">Is anyone successfully running dune under Mac OS X?</div>
<div style="font-family: Helvetica;">Any ideas what the problem may be?</div>
<div style="font-family: Helvetica;"><br>
</div>
<div style="font-family: Helvetica;">I am using the following:</div>
<div style="font-family: Helvetica;"><br>
</div>
<blockquote class="webkit-indent-blockquote" style="margin: 0pt 0pt 0pt 40px; border: medium none; padding: 0px;">
<div>
<div><font class="Apple-style-span" face="Courier">dune-common-2.2.0</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">dune-fem-1.3.0</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">dune-geometry-2.2.0</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">dune-grid-2.2.0</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">dune-istl-2.2.0</font></div>
</div>
<div>
<div><font class="Apple-style-span" face="Courier">dune-localfunctions-2.2.0</font></div>
</div>
<div><font class="Apple-style-span" face="Courier">ALUGrid 1.5</font></div>
<div><font class="Apple-style-span" face="Courier"><br>
</font></div>
</blockquote>
Thanks,
<div>Ali</div>
</div>
</div>
</div>
</body>
</html>