[dune-fem] [Dune] Dune on Mac OS X - Segmentation Fault

Alasdair McLeay a.mcleay at sussex.ac.uk
Wed Jul 18 17:38:38 CEST 2012


I've reverted to dune 2.1.0 and dune-fem 1.2.1 and am now able to compile dune-fem-howto (it didn't compile with dune 2.2).

The examples I've tried in dune-fem-howto so far run without memory exceptions, so I'm guessing the issue could be with dune-fem 1.3.

(unfortunately dune-fem-school requires dune-fem v1.3 but hopefully I'll be able to figure out what I need from the dune-fem-howto examples).

I've written an installer script for Mac OS X so please let me know if anyone wants a copy.

Thanks,
Ali


On 18 Jul 2012, at 13:30, Alasdair McLeay wrote:

> (moved from dune to dune-fem)
> 
> Hi Andreas,
> 
> Yes that's correct - the 'intro' program runs, produces s0001-p0000-intro000000.vtu correctly, but the 'merged' file s0001-intro000000.pvtu is only 587 bytes so there seems to be a problem merging files. 
> 
> I can view the output of the program by opening the part (s0001-p0000-intro000000.vtu), but I think this will cause me issues on time dependent problems so would like to resolve it if I can.
> 
> I have installed dune-grid-howto and compiled using dunecontrol with "--with-alugrid" and the integration program runs without a segmentation fault.
> 
> Thanks,
> Ali
> 
> 
> On 17 Jul 2012, at 18:42, Dedner, Andreas wrote:
> 
>> Hi Ali.
>> 
>> This is perhaps not a clear case since it involves dune and its use on mac
>> but since the code you are using is from dune-fem it would be good
>> to keep these mail on the dune-fem list
>> (http://lists.dune-project.org/mailman/listinfo/dune-fem)
>> 
>> Did I understand correctly: the code ran successfully producing the
>> right results but terminated with the segfaults you have shown in your mail?
>> Perhaps we can reproduce the problem (seems to be dune+alu) with
>> some other program:
>> could you install the dune-grid-howto and use one of the test programs there
>> with alu to see if the same segfaults occurs. 
>> Perhaps the intergration.cc testcase?
>> 
>> Thanks
>> Andreas
>> 
>> From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of Alasdair McLeay [a.mcleay at sussex.ac.uk]
>> Sent: 17 July 2012 18:08
>> To: dune at dune-project.org
>> Subject: [Dune] Dune on Mac OS X - Segmentation Fault
>> 
>> 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.
>> 
>> 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.
>> 
>> $ ./intro 
>> <SNIP>
>> DataOutput[0]::write data writestep=0 sequenceStamp=0
>> Debug: End of algorithm() 
>> Error: 0.0530314
>> EOC( 4 ) = -0.00124586
>> Debug: End of main() 
>> Segmentation fault: 11
>> 
>> 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:
>> 
>> EXC_BAD_ACCESS  during 'movl' at:
>> 
>> 4 start
>> 3 main
>> 2 Dune::GridPtr<Dune::ALUCubeGrid<2,2> >::~GridPtr()
>> 1 Dune::ALU2Grid<2,2,(ALU2Grid::ElementType)1>::~ALU2dGrid()
>> 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()
>> 
>> Is anyone successfully running dune under Mac OS X?
>> Any ideas what the problem may be?
>> 
>> I am using the following:
>> 
>> dune-common-2.2.0
>> dune-fem-1.3.0
>> dune-geometry-2.2.0
>> dune-grid-2.2.0
>> dune-istl-2.2.0
>> dune-localfunctions-2.2.0
>> ALUGrid 1.5
>> 
>> Thanks,
>> Ali
> 
> _______________________________________________
> dune-fem mailing list
> dune-fem at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-fem

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-fem/attachments/20120718/4bebb865/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3773 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune-fem/attachments/20120718/4bebb865/attachment.bin>


More information about the dune-fem mailing list