Bug#1008531: 0ad: assertion failure if hyperthreading (SMT) is supported but disabled

Simon McVittie smcv at debian.org
Mon Mar 28 14:57:44 BST 2022


Package: 0ad
Version: 0.0.25b-1.1
Severity: normal

Steps to reproduce:

* Have a hyperthreading-capable CPU (in my case an Intel Core i5-8350U
  with 4 cores and 8 hyperthreads)
* Boot with nosmt=1 on the kernel command line
* lscpu
* 0ad

Expected result: 0ad runs

Actual result:

> $ lscpu
> ...
> CPU(s):                  8
>   On-line CPU(s) list:   0-3
>   Off-line CPU(s) list:  4-7
> ...

An 0ad crash report dialog pops up with the following text:

> Assertion failed: "ret == 0"
> Location: lcpu.cpp:174 (os_cpu_SetThreadAffinityMask)
> 
> Call stack:
> 
> (0x56077fc3ae75) /usr/games/pyrogenesis(+0x605e75) [0x56077fc3ae75]
> (0x56077fbdb0f7) /usr/games/pyrogenesis(+0x5a60f7) [0x56077fbdb0f7]
> (0x56077fbdcbf8) /usr/games/pyrogenesis(+0x5a7bf8) [0x56077fbdcbf8]
> (0x56077fbdd0b4) /usr/games/pyrogenesis(+0x5a80b4) [0x56077fbdd0b4]
> (0x56077fc3ab16) /usr/games/pyrogenesis(+0x605b16) [0x56077fc3ab16]
> (0x56077fc3ac89) /usr/games/pyrogenesis(+0x605c89) [0x56077fc3ac89]
> (0x56077fc6d39a) /usr/games/pyrogenesis(+0x63839a) [0x56077fc6d39a]
> (0x56077fc6cd23) /usr/games/pyrogenesis(+0x637d23) [0x56077fc6cd23]
> (0x56077fc6d8fa) /usr/games/pyrogenesis(+0x6388fa) [0x56077fc6d8fa]
> (0x56077fc33a25) /usr/games/pyrogenesis(+0x5fea25) [0x56077fc33a25]
> (0x56077fc6cd23) /usr/games/pyrogenesis(+0x637d23) [0x56077fc6cd23]
> (0x56077fc33faa) /usr/games/pyrogenesis(+0x5fefaa) [0x56077fc33faa]
> (0x56077f90c6fa) /usr/games/pyrogenesis(+0x2d76fa) [0x56077f90c6fa]
> (0x56077f90423b) /usr/games/pyrogenesis(+0x2cf23b) [0x56077f90423b]
> (0x56077f6e744f) /usr/games/pyrogenesis(+0xb244f) [0x56077f6e744f]
> (0x56077f6d38ea) /usr/games/pyrogenesis(+0x9e8ea) [0x56077f6d38ea]
> 
> errno = 22 (Invalid alignment)
> OS error = ?

Workaround: after clicking Suppress in the crash report dialog, the game
seems to work fine.

    smcv

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 'oldstable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages 0ad depends on:
ii  0ad-data                   0.0.25b-1
ii  0ad-data-common            0.0.25b-1
ii  dpkg                       1.21.4
ii  libboost-filesystem1.74.0  1.74.0-14
ii  libc6                      2.33-7
ii  libcurl3-gnutls            7.82.0-2
ii  libenet7                   1.3.13+ds-1
ii  libfmt8                    8.1.1+ds1-2
ii  libgcc-s1                  12-20220319-1
ii  libgl1                     1.4.0-1
ii  libgloox18                 1.0.24-2+b1
ii  libicu67                   67.1-7
ii  libminiupnpc17             2.2.3-1+b1
ii  libopenal1                 1:1.19.1-2
ii  libpng16-16                1.6.37-3
ii  libsdl2-2.0-0              2.0.20+dfsg-2
ii  libsodium23                1.0.18-1
ii  libstdc++6                 12-20220319-1
ii  libvorbisfile3             1.3.7-1
ii  libwxbase3.0-0v5           3.0.5.1+dfsg-4
ii  libwxgtk3.0-gtk3-0v5       3.0.5.1+dfsg-4
ii  libx11-6                   2:1.7.2-2+b1
ii  libxml2                    2.9.13+dfsg-1
ii  zlib1g                     1:1.2.11.dfsg-4

0ad recommends no packages.

0ad suggests no packages.

-- no debconf information



More information about the Pkg-games-devel mailing list