Both pcbnew and eeschema crash on launch on Asahi Fedora linux

Am thinking I’m probably the only person trying this. The Asahi Fedora aarch64 build is crashing on launch. Is anyone else seeing this? Any tips other than strace?

Application: KiCad aarch64 on aarch64
Version: 7.0.8-1.fc38, release build
Libraries:
    wxWidgets 3.2.2
    FreeType 2.13.0
    HarfBuzz 7.1.0
    FontConfig 2.14.2
    libcurl/8.0.1 OpenSSL/3.0.9 zlib/1.2.13 brotli/1.0.9 libidn2/2.3.4 libpsl/0.21.2 (+libidn2/2.3.4) libssh/0.10.5/openssl/zlib nghttp2/1.52.0
Platform: Fedora Linux Asahi Remix 38 (Thirty Eight), 64 bit, Little endian, wxGTK, KDE, wayland
Build Info:
    Date: Sep 29 2023 00:00:00
    wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
    Boost: 1.78.0
    OCC: 7.6.3
    Curl: 8.0.1
    ngspice: 41
    Compiler: GCC 13.2.1 with C++ ABI 1018
Build settings:
    KICAD_SPICE=ON
strace eeschema
.
.
.
openat(AT_FDCWD, "/lib64/librsvg-2.so.2", O_RDONLY|O_CLOEXEC) = 17
read(17, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(17, "", {st_mode=S_IFREG|0755, st_size=4368680, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 4392160, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffff3818c000
mmap(0xffff38190000, 4326624, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 17, 0) = 0xffff38190000
munmap(0xffff3818c000, 16384)           = 0
munmap(0xffff385b4000, 34016)           = 0
mprotect(0xffff3821c000, 3276800, PROT_NONE) = 0
mmap(0xffff38220000, 2031616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 17, 0x90000) = 0xffff38220000
mmap(0xffff38410000, 1163264, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 17, 0x280000) = 0xffff38410000
mmap(0xffff3853c000, 491520, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 17, 0x39c000) = 0xffff3853c000
close(17)                               = 0
mprotect(0xffff3853c000, 475136, PROT_READ) = 0
mprotect(0xffff385fc000, 16384, PROT_READ) = 0
munmap(0xffff40004000, 111779)          = 0
futex(0xffff65f60e98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xffff65f60e98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xffff65f60e98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xffff65f60e98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
getrandom("\x3f\x74\xfb\xef\x73\x9a\xc3\xc8\xe8\x58\xd7\x56\x5c\xb5\xad\xf6", 16, GRND_INSECURE) = 16
brk(0xaaab90094000)                     = 0xaaab90094000
futex(0xffff65f60e98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
close(16)                               = 0
futex(0xffff65f60e98, FUTEX_WAKE_PRIVATE, 2147483647) = 0
mmap(NULL, 1064960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffff3808c000
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0xffff51dec444} ---
+++ killed by SIGILL (core dumped) +++
Illegal instruction (core dumped)
[tom@macbook-air-m2 hardware]$ 

strace pcbnew
.
.
.
mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xffff3c0a4000
getcwd("/home/tom/git/TomKeddie/tom-amd-2023-winterlude/hardware", 1024) = 57
newfstatat(AT_FDCWD, "/home/tom/git/TomKeddie/tom-amd-2023-winterlude/hardware", {st_mode=S_IFDIR|0755, st_size=2712, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/lib64/python3.11", {st_mode=S_IFDIR|0755, st_size=4014, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/lib64/python3.11/lib-dynload", {st_mode=S_IFDIR|0755, st_size=5624, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/lib64/python3.11/site-packages", {st_mode=S_IFDIR|0755, st_size=2840, ...}, 0) = 0
newfstatat(AT_FDCWD, "/usr/lib/python3.11/site-packages", {st_mode=S_IFDIR|0755, st_size=4970, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/tom/.config/kicad/7.0/PcbNew.hotkeys", 0xffffe9dbaf78, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/tom/.config/kicad/7.0/user.hotkeys", 0xffffe9dbb068, 0) = -1 ENOENT (No such file or directory)
brk(0xaaab808e8000)                     = 0xaaab808e8000
brk(0xaaab8090c000)                     = 0xaaab8090c000
brk(0xaaab80a2c000)                     = 0xaaab80a2c000
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0xffff433deaf4} ---
+++ killed by SIGILL (core dumped) +++
Illegal instruction (core dumped)
[tom@macbook-air-m2 hardware]$ 

libcontext crash on arm64 Linux with bti (#16008) · Issues · KiCad / KiCad Source Code / kicad · GitLab

1 Like

This looks the same as that ticket, will try to pull a nightly.

Thread 1 "pcbnew" received signal SIGILL, Illegal instruction.
0x0000ffffe23beaf4 in make_fcontext () from /usr/bin/_pcbnew.kiface
(gdb) where
#0  0x0000ffffe23beaf4 in make_fcontext () at /usr/bin/_pcbnew.kiface
#1  0x0000ffffe1f21d98 in COROUTINE<int, TOOL_EVENT const&>::doCall(COROUTINE<int, TOOL_EVENT const&>::INVOCATION_ARGS*, TOOL_EVENT const&) (this=0xaaaaab7bd580, aInvArgs=0xffffffffd350, aArgs=<optimized out>) at /usr/include/c++/13/bits/allocator.h:184
#2  0x0000ffffe1f27da0 [PAC] in COROUTINE<int, TOOL_EVENT const&>::Call(TOOL_EVENT const&) (aArg=..., this=0xaaaaab7bd580) at /usr/include/c++/13/bits/allocator.h:184
#3  TOOL_MANAGER::dispatchInternal(TOOL_EVENT&) (this=this@entry=0xaaaaab242510, aEvent=...) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/tool/tool_manager.cpp:791
#4  0x0000ffffe1f29b54 [PAC] in TOOL_MANAGER::processEvent(TOOL_EVENT const&) (this=0xaaaaab242510, aEvent=...) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/tool/tool_manager.cpp:1167
#5  0x0000ffffe233ce2c [PAC] in TOOL_MANAGER::invokeTool(TOOL_BASE*) (this=0xaaaaab242510, aTool=<optimized out>) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/tool/tool_manager.cpp:402
#6  0x0000ffffe17b9c78 [PAC] in PCB_EDIT_FRAME::setupTools() (this=0xaaaaab446150) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/pcbnew/pcb_edit_frame.cpp:666
#7  PCB_EDIT_FRAME::PCB_EDIT_FRAME(KIWAY*, wxWindow*) (this=0xaaaaab446150, aKiway=<optimized out>, aParent=<optimized out>, this=<optimized out>, aKiway=<optimized out>, aParent=<optimized out>) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/pcbnew/pcb_edit_frame.cpp:241
#8  0x0000ffffe15566a8 [PAC] in PCB::IFACE::CreateKiWindow(wxWindow*, int, KIWAY*, int) (this=<optimized out>, aParent=0x0, aClassId=<optimized out>, aKiway=0xaaaaaac41290 <Kiway>, aCtlBits=<optimized out>) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/pcbnew/pcbnew.cpp:96
#9  0x0000aaaaaaae67b8 [PAC] in KIWAY::Player(FRAME_T, bool, wxTopLevelWindow*) (this=this@entry=0xaaaaaac41290 <Kiway>, aFrameType=aFrameType@entry=FRAME_PCB_EDITOR, doCreate=doCreate@entry=true, aParent=aParent@entry=0x0) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/kiway.cpp:462
#10 0x0000aaaaaaaebf38 [PAC] in PGM_SINGLE_TOP::OnPgmInit() (this=0xaaaaaac40ab0 <_ZL7program.lto_priv.0>) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/single_top.cpp:324
#11 APP_SINGLE_TOP::OnInit() (this=<optimized out>) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/single_top.cpp:163
#12 0x0000fffff74b275c [PAC] in wxEntry(int&, wchar_t**) (argc=@0xfffff7621254: 1, argv=<optimized out>) at ../src/common/init.cpp:492
#13 0x0000fffff74b2830 [PAC] in wxEntry(int&, char**) (argc=@0xffffffffe8cc: 1, argc@entry=@0xffffffffe8cc: <optimized out>, argv=<optimized out>) at ../src/common/init.cpp:520
#14 0x0000aaaaaaad6f88 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kicad-7.0.8-1.fc38.aarch64/common/single_top.cpp:267

This bugfix has been backported to 7.0, will be in 7.0.10 (I think).

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.