Appgate SDP on M1 aborting
Hi, first of all thanks a lot for this project!
As part of attempting to use linux on an Apple M1 laptop, I'm trying to run Appgate SDP v6.0.1 through Box64. It crashes, presumably because of unimplemented stuff. It is a VPN client, so I have no idea how feasible it is to get it running, but any suggestions or help would be appreciated.
(built from source with latest main: ca8ff5fda9e2549dcb5ba9d8aa8a92147c2ec34 )
Here's the log:
$ box64 /opt/appgate/Appgate
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:16384
Box64 with Dynarec v0.1.9 ca8ff5f built on Aug 15 2022 10:46:56
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 61 Env var
Looking for /opt/appgate/Appgate
Rename process to "Appgate"
Using emulated /opt/appgate/libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libcups.so.2
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libm.so.6
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Warning: Global Symbol _ZTHN4base8internal14g_thread_cacheE not found, cannot apply R_X86_64_GLOB_DAT @0xfffed68552b8 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_GLOB_DAT @0xfffed68553f8 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol _ZTHN3WTF16g_is_main_threadE not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855420 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855508 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855510 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol sdallocx not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855518 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855520 ((nil)) in /opt/appgate/Appgate
42810|BOX64: Warning, calling Signal 4 function handler SIG_DFL
Unhandled signal caught, aborting
Aborted (core dumped)
Hi, first of all thanks a lot for this project!
As part of attempting to use linux on an Apple M1 laptop, I'm trying to run Appgate SDP v6.0.1 through Box64. It crashes, presumably because of unimplemented stuff. It is a VPN client, so I have no idea how feasible it is to get it running, but any suggestions or help would be appreciated.
(built from source with latest main: ca8ff5f )
Here's the log:
$ box64 /opt/appgate/Appgate Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:16384 Box64 with Dynarec v0.1.9 ca8ff5f built on Aug 15 2022 10:46:56 Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/ Using default BOX64_PATH: ./:bin/ Counted 61 Env var Looking for /opt/appgate/Appgate Rename process to "Appgate" Using emulated /opt/appgate/libffmpeg.so Using native(wrapped) libdl.so.2 Using native(wrapped) libc.so.6 Using native(wrapped) ld-linux-x86-64.so.2 Using native(wrapped) libpthread.so.0 Using native(wrapped) librt.so.1 Using native(wrapped) libgmodule-2.0.so.0 Using native(wrapped) libglib-2.0.so.0 Using native(wrapped) libgobject-2.0.so.0 Using native(wrapped) libgio-2.0.so.0 Using native(wrapped) libnss3.so Using native(wrapped) libnssutil3.so Using native(wrapped) libsmime3.so Using native(wrapped) libnspr4.so Using native(wrapped) libatk-1.0.so.0 Using native(wrapped) libatk-bridge-2.0.so.0 Using native(wrapped) libSM.so.6 Using native(wrapped) libICE.so.6 Using native(wrapped) libXau.so.6 Using native(wrapped) libxcb.so.1 Using native(wrapped) libcups.so.2 Using native(wrapped) libdbus-1.so.3 Using native(wrapped) libdrm.so.2 Using native(wrapped) libgtk-3.so.0 Using native(wrapped) libgdk-3.so.0 Using native(wrapped) libgdk_pixbuf-2.0.so.0 Using native(wrapped) libpangocairo-1.0.so.0 Using native(wrapped) libpango-1.0.so.0 Using native(wrapped) libcairo.so.2 Using native(wrapped) libm.so.6 Using native(wrapped) libX11.so.6 Using native(wrapped) libXcomposite.so.1 Using native(wrapped) libXdamage.so.1 Using native(wrapped) libXext.so.6 Using native(wrapped) libXdmcp.so.6 Using native(wrapped) libXfixes.so.3 Using native(wrapped) libXrandr.so.2 Using native(wrapped) libXrender.so.1 Using native(wrapped) libgbm.so.1 Using native(wrapped) libexpat.so.1 Using native(wrapped) libxkbcommon.so.0 Using native(wrapped) libasound.so.2 Using native(wrapped) libatspi.so.0 Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1 Warning: Global Symbol _ZTHN4base8internal14g_thread_cacheE not found, cannot apply R_X86_64_GLOB_DAT @0xfffed68552b8 ((nil)) in /opt/appgate/Appgate Warning: Global Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_GLOB_DAT @0xfffed68553f8 ((nil)) in /opt/appgate/Appgate Warning: Global Symbol _ZTHN3WTF16g_is_main_threadE not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855420 ((nil)) in /opt/appgate/Appgate Warning: Global Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855508 ((nil)) in /opt/appgate/Appgate Warning: Global Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855510 ((nil)) in /opt/appgate/Appgate Warning: Global Symbol sdallocx not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855518 ((nil)) in /opt/appgate/Appgate Warning: Global Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_GLOB_DAT @0xfffed6855520 ((nil)) in /opt/appgate/Appgate 42810|BOX64: Warning, calling Signal 4 function handler SIG_DFL Unhandled signal caught, aborting Aborted (core dumped)
I saw the "alloc" , so try "malloc override branch to run?"
Thanks for the suggestion! Unfortunately trying with the malloc_override branch gives more or less the same result:
$ box64 /opt/appgate/Appgate
Dynarec for ARM64, with extension: ASIMD AES CRC32 PMULL ATOMICS PageSize:16384
Box64 with Dynarec v0.1.9 367510b built on Aug 15 2022 11:43:02
Using default BOX64_LD_LIBRARY_PATH: ./:lib/:lib64/:x86_64/:bin64/:libs64/
Using default BOX64_PATH: ./:bin/
Counted 61 Env var
Looking for /opt/appgate/Appgate
Rename process to "Appgate"
Using emulated /opt/appgate/libffmpeg.so
Using native(wrapped) libdl.so.2
Using native(wrapped) libc.so.6
Using native(wrapped) ld-linux-x86-64.so.2
Using native(wrapped) libpthread.so.0
Using native(wrapped) librt.so.1
Using native(wrapped) libgmodule-2.0.so.0
Using native(wrapped) libglib-2.0.so.0
Using native(wrapped) libgobject-2.0.so.0
Using native(wrapped) libgio-2.0.so.0
Using native(wrapped) libnss3.so
Using native(wrapped) libnssutil3.so
Using native(wrapped) libsmime3.so
Using native(wrapped) libnspr4.so
Using native(wrapped) libatk-1.0.so.0
Using native(wrapped) libatk-bridge-2.0.so.0
Using native(wrapped) libSM.so.6
Using native(wrapped) libICE.so.6
Using native(wrapped) libXau.so.6
Using native(wrapped) libxcb.so.1
Using native(wrapped) libcups.so.2
Using native(wrapped) libdbus-1.so.3
Using native(wrapped) libdrm.so.2
Using native(wrapped) libgtk-3.so.0
Using native(wrapped) libgdk-3.so.0
Using native(wrapped) libgdk_pixbuf-2.0.so.0
Using native(wrapped) libpangocairo-1.0.so.0
Using native(wrapped) libpango-1.0.so.0
Using native(wrapped) libcairo.so.2
Using native(wrapped) libm.so.6
Using native(wrapped) libX11.so.6
Using native(wrapped) libXcomposite.so.1
Using native(wrapped) libXdamage.so.1
Using native(wrapped) libXext.so.6
Using native(wrapped) libXdmcp.so.6
Using native(wrapped) libXfixes.so.3
Using native(wrapped) libXrandr.so.2
Using native(wrapped) libXrender.so.1
Using native(wrapped) libgbm.so.1
Using native(wrapped) libexpat.so.1
Using native(wrapped) libxkbcommon.so.0
Using native(wrapped) libasound.so.2
Using native(wrapped) libatspi.so.0
Using emulated /lib/x86_64-linux-gnu/libgcc_s.so.1
Warning: Global Symbol _ZTHN4base8internal14g_thread_cacheE not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf52b8 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol _ZTHN2v88internal12trap_handler21g_thread_in_wasm_codeE not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf53f8 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol _ZTHN3WTF16g_is_main_threadE not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf5420 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol OPENSSL_memory_alloc not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf5508 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol OPENSSL_memory_free not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf5510 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol sdallocx not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf5518 ((nil)) in /opt/appgate/Appgate
Warning: Global Symbol OPENSSL_memory_get_size not found, cannot apply R_X86_64_GLOB_DAT @0xfffec5cf5520 ((nil)) in /opt/appgate/Appgate
Redirecting __libc_cfree function from 0xfffec1d019e0 (/opt/appgate/Appgate)
Redirecting memalign function from 0xfffec1d01b60 (/opt/appgate/Appgate)
Redirecting realloc function from 0xfffec1d01aa0 (/opt/appgate/Appgate)
Redirecting __libc_realloc function from 0xfffec1d01aa0 (/opt/appgate/Appgate)
Redirecting malloc function from 0xfffec1d01a60 (/opt/appgate/Appgate)
Redirecting valloc function from 0xfffec1d01bb0 (/opt/appgate/Appgate)
Redirecting malloc_usable_size function from 0xfffec1d01d70 (/opt/appgate/Appgate)
Redirecting posix_memalign function from 0xfffec1d01cd0 (/opt/appgate/Appgate)
Redirecting calloc function from 0xfffec1d01b10 (/opt/appgate/Appgate)
Redirecting cfree function from 0xfffec1d019e0 (/opt/appgate/Appgate)
Redirecting __libc_malloc function from 0xfffec1d01a60 (/opt/appgate/Appgate)
Redirecting __libc_memalign function from 0xfffec1d01b60 (/opt/appgate/Appgate)
Redirecting __libc_valloc function from 0xfffec1d01bb0 (/opt/appgate/Appgate)
Redirecting __libc_free function from 0xfffec1d019e0 (/opt/appgate/Appgate)
Redirecting __libc_calloc function from 0xfffec1d01b10 (/opt/appgate/Appgate)
Redirecting pvalloc function from 0xfffec1d01c20 (/opt/appgate/Appgate)
Redirecting free function from 0xfffec1d019e0 (/opt/appgate/Appgate)
Redirecting __libc_pvalloc function from 0xfffec1d01c20 (/opt/appgate/Appgate)
Redirecting aligned_alloc function from 0xfffec1d01b60 (/opt/appgate/Appgate)
46618|BOX64: Warning, calling Signal 4 function handler SIG_DFL
Unhandled signal caught, aborting
Aborted (core dumped)
this seems to be using redirected malloc. (like with tcmalloc). I'm working on this, but it's not yet 100% supported (for C++ mainly). As it seems to Abort,I guess there is a mix between some new/delete/malloc/free from the lib that redirect malloc (statically linked tcmalloc?) and libc stuff...Wait until I finished support for this.