Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makie m1 segfault #48499

Open
anandijain opened this issue Feb 2, 2023 · 5 comments
Open

makie m1 segfault #48499

anandijain opened this issue Feb 2, 2023 · 5 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@anandijain
Copy link
Contributor

MakieOrg/GraphMakie.jl#110
cc @SimonDanisch @hexaeder

@vtjnash
Copy link
Member

vtjnash commented Feb 2, 2023

Looks like an llvmlibunwind error. Didn't we have a issue about a fix for that recently? All I can find is https://julialang.slack.com/archives/C688QKS7Q/p1672320601955129 right now

@gbaraldi
Copy link
Member

gbaraldi commented Feb 2, 2023

That discussion is #48020 which is waiting for an LLVM bump, but yggdrasil isn't fully back up yet for it. This issue might be different, and maybe a llvmlibunwind bump fixes it. I have a PR started that does it but I haven't done the makefile changes necessary for it just yet.

@giordano
Copy link
Contributor

giordano commented Feb 5, 2023

@anandijain what version of macOS do you have? I couldn't reproduce your issue on macOS 12.6.

Side note, it'd be helpful to make self-consistent bug reports, instead of posts which only contain a link to somewhere else (even if the backreference is still useful).

@gbaraldi
Copy link
Member

gbaraldi commented Feb 7, 2023

I can reproduce this on macos13, I tried with a new libunwind but same thing

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes:       0x0000000000000001, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [85934]

VM Region Info: 0 is not in any region.  Bytes before following region: 4299505664
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      100454000-100458000    [   16K] r-x/r-x SM=COW  .../USER/*/julia

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libunwind.dylib               	       0x1bcf5d408 libunwind::CFI_Parser<libunwind::LocalAddressSpace>::decodeFDE(libunwind::LocalAddressSpace&, unsigned long, libunwind::CFI_Parser<libunwind::LocalAddressSpace>::FDE_Info*, libunwind::CFI_Parser<libunwind::LocalAddressSpace>::CIE_Info*) + 48
1   libunwind.dylib               	       0x1bcf5f4c4 libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_arm64>::step() + 204
2   libunwind.dylib               	       0x1bcf5f4c4 libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_arm64>::step() + 204
3   libunwind.dylib               	       0x1bcf61280 _Unwind_RaiseException + 464
4   libc++abi.dylib               	       0x1b18b8bd0 __cxa_throw + 132
5   libobjc.A.dylib               	       0x1b15a3008 objc_exception_throw + 412
6   CoreFoundation                	       0x1b1b3cca4 _CFThrowFormattedException + 108
7   CoreFoundation                	       0x1b19c91bc -[NSArray subarrayWithRange:] + 456
8   HIToolbox                     	       0x1bb2e7d18 HIPrintBacktrace + 80
9   HIToolbox                     	       0x1bb1245c8 MenuBarInstance::EnsureAutoShowObserver() + 120
10  HIToolbox                     	       0x1bb124188 MenuBarInstance::EnableAutoShow() + 60
11  HIToolbox                     	       0x1bb0c7310 SetMenuBarObscured + 372
12  HIToolbox                     	       0x1bb0c6ee8 HIApplication::HandleActivated(OpaqueEventRef*, unsigned char, OpaqueWindowPtr*, unsigned char) + 172
13  HIToolbox                     	       0x1bb0c0fcc HIApplication::EventObserver(unsigned int, OpaqueEventRef*, void*) + 296
14  HIToolbox                     	       0x1bb087cd0 _NotifyEventLoopObservers + 176
15  HIToolbox                     	       0x1bb0c096c AcquireEventFromQueue + 432
16  HIToolbox                     	       0x1bb0afc84 ReceiveNextEventCommon + 320
17  HIToolbox                     	       0x1bb0afb2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
18  AppKit                        	       0x1b4c5c424 _DPSNextEvent + 632
19  AppKit                        	       0x1b4c5b5b4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
20  libglfw.3.3.dylib             	       0x156fbb1d0 _glfwPlatformPollEvents + 160
21  nfnZR_kgJdn.dylib             	       0x29b4137dc julia_pollevents_11046 + 504
22  libjulia-internal.1.10.dylib  	       0x100a9b120 ijl_apply_generic + 1232 (gf.c:2873)
23  nfnZR_kgJdn.dylib             	       0x29b58afc4 julia_YY.65_11108 + 148
24  libjulia-internal.1.10.dylib  	       0x100a9b120 ijl_apply_generic + 1232 (gf.c:2873)
25  libjulia-internal.1.10.dylib  	       0x100abadd0 jl_apply + 12 (julia.h:1880) [inlined]
26  libjulia-internal.1.10.dylib  	       0x100abadd0 start_task + 192 (task.c:1093)

This is the apple crash handler trace. It does come from deep in apple things so I don't know.

I am suspicious of this

  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7465172992,
    "size" : 45056,
    "uuid" : "1228eddf-7c61-3674-8c42-b537ffe9edda",
    "path" : "\/usr\/lib\/system\/libunwind.dylib",
    "name" : "libunwind.dylib"
  },

I think we might have two libunwinds in the same process, which causes a crash

@ViralBShah
Copy link
Member

Is this still an issue?

@ViralBShah ViralBShah added the bug Indicates an unexpected problem or unintended behavior label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

5 participants