[Bug 52715] New: wine segfaults on asahi linux (apple M1 hardware, linux kernel/userland)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Mar 22 21:44:11 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52715

            Bug ID: 52715
           Summary: wine segfaults on asahi linux (apple M1 hardware,
                    linux kernel/userland)
           Product: Wine
           Version: 7.4
          Hardware: aarch64
                OS: Linux
            Status: NEW
          Keywords: source
          Severity: blocker
          Priority: P2
         Component: -unknown
          Assignee: wine-bugs at winehq.org
          Reporter: austinenglish at gmail.com
      Distribution: Debian

The GCC Compile Farm has a m1 machine running asahi linux, so I tried building
wine. While it compiles (note: most optional deps and freetype were missing),
the resulting binary segfaults, even for --version/--help:

austin at gcc103:~/wine$ file loader/wine
loader/wine: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV),
dynamically linked, interpreter /lib/ld-linux-aarch64.so.1,
BuildID[sha1]=c47e4c565e49cc68efce4887d600f06d749670e0, for GNU/Linux 3.7.0,
with debug_info, not stripped

austin at gcc103:~/wine$ ./loader/wine --version
Segmentation fault

austin at gcc103:~/wine$ ./loader/wine --help
Segmentation fault

austin at gcc103:~/wine$ uname -a
Linux gcc103.fsffrance.org 5.17.0-rc7-asahi-next-20220310-g4a4f4ec03834 #1 SMP
PREEMPT Sat Mar 12 18:16:45 UTC 2022 aarch64 GNU/Linux

austin at gcc103:~/wine$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 11.2.0-18'
--with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-11
--program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --enable-libphobos-checking=release
--with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release
--build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
--with-build-config=bootstrap-lto-lean --enable-link-serialization=4
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.2.0 (Debian 11.2.0-18) 

austin at gcc103:~/wine$
~/llvm-mingw-20211002-ucrt-ubuntu-18.04-aarch64/bin/aarch64-w64-mingw32-gcc
--version
clang version 13.0.0 (https://github.com/llvm/llvm-project.git
d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)
Target: aarch64-w64-windows-gnu
Thread model: posix
InstalledDir: /home/austin/llvm-mingw-20211002-ucrt-ubuntu-18.04-aarch64/bin

Note that the machine uses a 16k stack size instead of 4k, which may be at
fault:
https://github.com/AsahiLinux/docs/wiki/Software-known-to-have-issues-with-16k-page-size

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list