[MacPorts] #68126: neovim @0.9.1_1: segmentation fault

MacPorts noreply at macports.org
Thu Dec 14 02:58:41 UTC 2023


#68126: neovim @0.9.1_1: segmentation fault
--------------------------------+----------------------------
  Reporter:  dlamija            |      Owner:  raimue
      Type:  defect             |     Status:  assigned
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.8.1
Resolution:                     |   Keywords:  ventura sonoma
      Port:  neovim luv-luajit  |
--------------------------------+----------------------------

Comment (by jpeeler):

 I took comment:20 one step further and recompiled luajit in
 [https://github.com/LuaJIT/LuaJIT/blob/29b0b282f59ac533313199f4f7be79490b7eee51/src/Makefile#L58
 debug mode]:


 {{{
 $ lldb --file bin/nvim
 (lldb) target create "bin/nvim"
 Current executable set to
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_github
 .com_macports_macports-ports_editors_neovim/neovim/work/build/bin/nvim'
 (arm64).
 (lldb) r
 Process 81514 launched:
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_github
 .com_macports_macports-ports_editors_neovim/neovim/work/build/bin/nvim'
 (arm64)
 Process 81514 stopped
 * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS
 (code=1, address=0x800000000027)
     frame #0: 0x0000000100cc5b38 libluajit-5.1.2.dylib`lj_tab_get + 48
 libluajit-5.1.2.dylib`lj_tab_get:
 ->  0x100cc5b38 <+48>: ldr    x10, [x1, #0x28]
     0x100cc5b3c <+52>: ldr    w11, [x1, #0x34]
     0x100cc5b40 <+56>: and    x9, x11, x9
     0x100cc5b44 <+60>: mov    w11, #0x18
 Target 0: (nvim) stopped.
 }}}

 debug libluagit:
 {{{
 $ nm -U /opt/local/lib/libluajit-5.1.dylib | grep tab_get
 0000000000009b08 t _lj_tab_get
 0000000000009aa4 t _lj_tab_getinth

 $ nm -U /opt/local/lib/libluajit-5.1.a | grep tab_get
 0000000000001ee8 T _lj_tab_get
 0000000000001e84 T _lj_tab_getinth
 }}}

 neovim build from github:
 {{{
 $ nm -U usr/lib/libluajit-5.1.a | grep tab_get
 0000000000001028 T _lj_tab_get
 0000000000000f88 T _lj_tab_getinth
 0000000000000fec T _lj_tab_getstr
 }}}

 I assume if luajit is working as expected the missing symbol above will be
 resolved. Not sure where to go from here though.

-- 
Ticket URL: <https://trac.macports.org/ticket/68126#comment:33>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list