[petsc-users] Segmentation violation in DMPlexDistribute on MacOS

Maximilian Hartig imilian.hartig at gmail.com
Tue Nov 6 08:37:00 CST 2018


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.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181106/fd5dd35c/attachment.html>


More information about the petsc-users mailing list