[Dune] Signal: Segmentation fault in a 3D mesh generator

Jonas Beddrch jonas.beddrich at gmail.com
Fri Jun 12 18:28:26 CEST 2020


Hi,

I'm trying to implement a mesh generator, which puts a 2 dimensional 
surface in a 3 dimensional cube and then fills the space beneath the 
surface with cells. Therefore I use Dune::Gridfactory and UGGrid as grid 
type. For a lot different and also complicated surfaces my approach 
works fine, while others result in error messages like the following:

    [jonas-MacBookPro:00477] *** Process received signal ***
    [jonas-MacBookPro:00477] Signal: Segmentation fault (11)
    [jonas-MacBookPro:00477] Signal code: Address not mapped (1)

    ...

    [jonas-MacBookPro:00477] [ 9]
    ./mesh_generator_min_example(_start+0x2a)[0x55d6725f60ca]
    [jonas-MacBookPro:00477] *** End of error message ***
    Segmentation fault (core dumped)/

    //(The full terminal output is attached in error_log.txt. )
    /

Thereby I find it really hard to find a pattern for which surfaces the 
mesh is created successfully and for which it doesn't work. Maybe 
someone already had this or a similar problem. I also attached a minimal 
example.

I'm running dune 2.8 on Ubuntu 18.04.4 (as dual-boot on a MacBookPro 
(see above)).

Any help is highly appreciated. Best regards,

Jonas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200612/34c5146d/attachment.htm>
-------------- next part --------------
Hello World! This is Mesh Generator Testing. Whuzzzup?
I am rank 0 of 1 processes!
10	10	10	0.5	0.5	0.5	21	21	21	
[jonas-MacBookPro:00477] *** Process received signal ***
[jonas-MacBookPro:00477] Signal: Segmentation fault (11)
[jonas-MacBookPro:00477] Signal code: Address not mapped (1)
[jonas-MacBookPro:00477] Failing at address: (nil)
[jonas-MacBookPro:00477] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fc39b32b890]
[jonas-MacBookPro:00477] [ 1] ./mesh_generator_min_example(_ZN2UG2D314DisposeElementEPNS0_4gridEPNS0_7elementEi+0x42f)[0x55d67269e97f]
[jonas-MacBookPro:00477] [ 2] ./mesh_generator_min_example(_ZN2UG2D311DisposeGridEPNS0_4gridE+0x5d)[0x55d67269f67d]
[jonas-MacBookPro:00477] [ 3] ./mesh_generator_min_example(_ZN2UG2D316DisposeMultiGridEPNS0_9multigridE+0x107)[0x55d67269f917]
[jonas-MacBookPro:00477] [ 4] ./mesh_generator_min_example(_ZN4Dune6UGGridILi3EED1Ev+0x44)[0x55d67262c504]
[jonas-MacBookPro:00477] [ 5] ./mesh_generator_min_example(_ZN4Dune11GridFactoryINS_6UGGridILi3EEEED1Ev+0x70)[0x55d67264ceb0]
[jonas-MacBookPro:00477] [ 6] ./mesh_generator_min_example(_ZN25ImplicitSurfaceMesh3DQuadIN4Dune6UGGridILi3EEE14MeshParametersEC1ERKS3_+0x1678)[0x55d672621fb8]
[jonas-MacBookPro:00477] [ 7] ./mesh_generator_min_example(main+0x129)[0x55d6725f4be9]
[jonas-MacBookPro:00477] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7fc39af49b97]
[jonas-MacBookPro:00477] [ 9] ./mesh_generator_min_example(_start+0x2a)[0x55d6725f60ca]
[jonas-MacBookPro:00477] *** End of error message ***
Segmentation fault (core dumped)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3D_mesh_generator_minimal_example.cc
Type: text/x-c++src
Size: 2327 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200612/34c5146d/attachment.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duneincludes.hh
Type: text/x-c++hdr
Size: 2567 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200612/34c5146d/attachment.hh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit_surface_mesh_generator3D.hh
Type: text/x-c++hdr
Size: 3166 bytes
Desc: not available
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200612/34c5146d/attachment-0001.hh>


More information about the Dune mailing list