Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
D
dune-grid
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 47
    • Issues 47
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 19
    • Merge Requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Core Modules
  • dune-grid
  • Issues
  • #70

Closed
Open
Created Aug 30, 2017 by Steffen Müthing@smuethingOwner

Segmentation fault in test-ug on macOS

I get a nasty segfault in the UG destructor when running test-ug:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
    frame #0: 0x00007fff959312fa libdyld.dylib`stack_not_16_byte_aligned_error
libdyld.dylib`stack_not_16_byte_aligned_error:
->  0x7fff959312fa <+0>: movdqa %xmm0, (%rsp)
    0x7fff959312ff <+5>: int3

libdyld.dylib`_dyld_func_lookup:
    0x7fff95931300 <+0>: pushq  %rbp
    0x7fff95931301 <+1>: movq   %rsp, %rbp
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
  * frame #0: 0x00007fff959312fa libdyld.dylib`stack_not_16_byte_aligned_error
    frame #1: 0x00007fff5fbfccd0
    frame #2: 0x0000000101012a48 libugS2.dylib`UG::D2::DDD_XferEnd() at cmds.cc:445
    frame #3: 0x0000000100f95b29 libugS2.dylib`UG::D2::DisposeAMGLevels(theMG=0x0000000102018c00) at ugm.cc:4249
    frame #4: 0x0000000100fce584 libugS2.dylib`UG::D2::DisposeBottomHeapTmpMemory(theMG=0x0000000102018c00) at mgheapmgr.cc:100
    frame #5: 0x0000000100fbbc37 libugS2.dylib`::PreProcessAdaptMultiGrid(theMG=0x0000000102018c00) at refine.cc:6392
    frame #6: 0x0000000100fbbd04 libugS2.dylib`UG::D2::AdaptMultiGrid(theMG=0x0000000102018c00, flag=2, seq=0, mgtest=0) at refine.cc:6465
    frame #7: 0x00000001008d9775 libdunegrid.dylib`Dune::UGGrid<2>::adapt(this=0x0000000101d0d6b0) at uggrid.cc:307
    frame #8: 0x0000000100010b8a test-ug`void markOne<Dune::UGGrid<2> >(grid=0x0000000101d0d6b0, num=0, ref=1) at test-ug.cc:118
    frame #9: 0x000000010000d32d test-ug`generalTests(greenClosure=true) at test-ug.cc:163
    frame #10: 0x000000010000d8ce test-ug`main(argc=1, argv=0x00007fff5fbfd740) at test-ug.cc:223
    frame #11: 0x00007fff95935235 libdyld.dylib`start + 1

I don't have the slightest idea what's wrong here, and I can't even run this under gdb because it causes gdb to hang (this was obtained with lldb).

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None