[petsc-users] Segmentation violation in DMPlexDistribute on MacOS

Matthew Knepley knepley at gmail.com
Tue Nov 6 08:42:55 CST 2018


On Tue, Nov 6, 2018 at 9:38 AM Maximilian Hartig via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> lldb returns the following:
>
> (lldb) process attach --pid 1082
> Process 1082 stopped
> * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
>     frame #0: 0x00007fff5aa5c876 libsystem_kernel.dylib`__semwait_signal +
> 10
> libsystem_kernel.dylib`__semwait_signal:
> ->  0x7fff5aa5c876 <+10>: jae    0x7fff5aa5c880            ; <+20>
>     0x7fff5aa5c878 <+12>: movq   %rax, %rdi
>     0x7fff5aa5c87b <+15>: jmp    0x7fff5aa58e31            ; cerror
>     0x7fff5aa5c880 <+20>: retq
> Target 0: (meshTest) stopped.
>
> Executable module set to
> "/Users/maximilianhartig/cimply_playground/./meshTest".
> Architecture set to: x86_64h-apple-macosx.
>

Okay, at the prompt you type 'bt'. This gives you the backtrace.

  Thanks,

     Matt


> I do unfortunately not know what to make of this. Do I have a memory jump
> that’s causing an error here? Google did not provide any useful results (at
> least to my untrained eye). Using gdb I usually step through the program
> and print out variables until I’ve located the error. But this does not
> seem an option here. Please excuse my ignorance regarding debuggers.
>
> Thanks,
> Max
>
> On 6. Nov 2018, at 11:23, Stefano Zampini <stefano.zampini at gmail.com>
> wrote:
>
>
>> [0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger
>>
>
> Have you tried what PETSc suggests here (-on_error_attach_debugger)?
> You may need to specify "-on_error_attach_debugger lldb" on a MacOS
>
>
> --
> Stefano
>
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181106/11edfc3b/attachment.html>


More information about the petsc-users mailing list