[Bug 2089779] Re: Buffer overflow in autopkgtest of wesnoth

Christian Ehrhardt  2089779 at bugs.launchpad.net
Mon Dec 2 11:49:35 UTC 2024


Second check good, the non-lto build makes it work.

buntu at autopkgtest:~$ /usr/games/wesnoth-1.18 -m --controller 1:ai --controller 2:ai --nogui
Battle for Wesnoth v1.18.3 x86_64
Started on Mon Dec  2 12:48:04 2024


Data directory:               /usr/share/games/wesnoth/1.18
User configuration directory: /home/USER/.config/wesnoth-1.18
User data directory:          /home/USER/.config/wesnoth-1.18
Cache directory:              /home/USER/.config/wesnoth-1.18/cache


*** buffer overflow detected ***: terminated
Aborted (core dumped)

ubuntu at autopkgtest:~$ dpkg -l | grep -i sdl
ii  libsdl2-2.0-0:amd64                  2.30.9+dfsg-1build1               amd64        Simple DirectMedia Layer
ii  libsdl2-image-2.0-0:amd64            2.8.2+dfsg-1build2                amd64        Image loading library for Simple DirectMedia Layer 2, libraries
ii  libsdl2-mixer-2.0-0:amd64            2.8.0+dfsg-1build3                amd64        Mixer library for Simple DirectMedia Layer 2, libraries
ubuntu at autopkgtest:~$ apt policy libsdl2-2.0-0
libsdl2-2.0-0:
  Installed: 2.30.9+dfsg-1build1
  Candidate: 2.30.9+dfsg-1build1
  Version table:
     2.30.9+dfsg-1ubunturepronolto1~pluckyppa1 500
        500 https://ppa.launchpadcontent.net/paelzer/lp-2089779-libsdl-rebuild-2.30.9/ubuntu plucky/main amd64 Packages
 *** 2.30.9+dfsg-1build1 995
        100 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     2.30.6+dfsg-1 500
        500 http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages


ubuntu at autopkgtest:~$ apt install libsdl2-2.0-0
Error: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
Error: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
ubuntu at autopkgtest:~$ sudo apt install libsdl2-2.0-0
libsdl2-2.0-0 is already the newest version (2.30.9+dfsg-1build1).
libsdl2-2.0-0 set to manually installed.
Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
ubuntu at autopkgtest:~$ sudo apt install libsdl2-2.0-0=2.30.9+dfsg-1ubunturepronolto1~pluckyppa1
Upgrading:                      
  libsdl2-2.0-0

Summary:
  Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 0
  Download size: 905 kB
  Freed space: 81.9 kB

Get:1 https://ppa.launchpadcontent.net/paelzer/lp-2089779-libsdl-rebuild-2.30.9/ubuntu plucky/main amd64 libsdl2-2.0-0 amd64 2.30.9+dfsg-1ubunturepronolto1~pluckyppa1 [905 kB]
Fetched 905 kB in 1s (1030 kB/s)       
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 79, <STDIN> line 1.)
debconf: falling back to frontend: Readline
(Reading database ... 81227 files and directories currently installed.)
Preparing to unpack .../libsdl2-2.0-0_2.30.9+dfsg-1ubunturepronolto1~pluckyppa1_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.30.9+dfsg-1ubunturepronolto1~pluckyppa1) over (2.30.9+dfsg-1build1) ...
Setting up libsdl2-2.0-0:amd64 (2.30.9+dfsg-1ubunturepronolto1~pluckyppa1) ...
Processing triggers for libc-bin (2.40-1ubuntu3) ...


ubuntu at autopkgtest:~$ ldd /usr/games/wesnoth-1.18 | grep -i sdl
	libSDL2_image-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_image-2.0.so.0 (0x0000770c8615b000)
	libSDL2-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2-2.0.so.0 (0x0000770c84c00000)
	libSDL2_mixer-2.0.so.0 => /lib/x86_64-linux-gnu/libSDL2_mixer-2.0.so.0 (0x0000770c84e8d000)


ubuntu at autopkgtest:~$ apt policy libsdl2-2.0-0
libsdl2-2.0-0:
  Installed: 2.30.9+dfsg-1ubunturepronolto1~pluckyppa1
  Candidate: 2.30.9+dfsg-1ubunturepronolto1~pluckyppa1
  Version table:
 *** 2.30.9+dfsg-1ubunturepronolto1~pluckyppa1 500
        500 https://ppa.launchpadcontent.net/paelzer/lp-2089779-libsdl-rebuild-2.30.9/ubuntu plucky/main amd64 Packages
        100 /var/lib/dpkg/status
     2.30.9+dfsg-1build1 995
        100 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 Packages
     2.30.6+dfsg-1 500
        500 http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages


ubuntu at autopkgtest:~$ /usr/games/wesnoth-1.18 -m --controller 1:ai --controller 2:ai --nogui
Battle for Wesnoth v1.18.3 x86_64
Started on Mon Dec  2 12:49:13 2024


Data directory:               /usr/share/games/wesnoth/1.18
User configuration directory: /home/USER/.config/wesnoth-1.18
User data directory:          /home/USER/.config/wesnoth-1.18
Cache directory:              /home/USER/.config/wesnoth-1.18/cache

=> works

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2089779

Title:
  Buffer overflow in autopkgtest of wesnoth

Status in boost1.83 package in Ubuntu:
  Fix Released
Status in libsdl2 package in Ubuntu:
  Confirmed
Status in python3-defaults package in Ubuntu:
  Fix Released
Status in wesnoth package in Ubuntu:
  Triaged
Status in wesnoth-1.18 package in Ubuntu:
  Triaged

Bug description:
  https://objectstorage.prodstack5.canonical.com/swift/v1/AUTH_0f9aae918d5b4744bf7b827671c86842/autopkgtest-
  plucky/plucky/amd64/w/wesnoth-1.18/20241127_064901_ac814@/log.gz

  Repeats on reruns triggered by others.
  Blocks multiple migrations, atm
  - libsdl2
  - python3-defaults
  - boost1.83

  Unblocking all of these is surely worth it :-)
  I'll have a look tomorrow.

  229s autopkgtest [06:48:46]: test command1: /usr/games/wesnoth-1.18 -m --controller 1:ai --controller 2:ai --nogui
  229s autopkgtest [06:48:46]: test command1: [-----------------------
  229s Battle for Wesnoth v1.18.3 x86_64
  229s Started on Wed Nov 27 06:48:46 2024
  229s 
  229s Automatically found a possible data directory at: /tmp/autopkgtest.kgIWzV/build.Cyz/src
  229s 
  229s Data directory:               /tmp/autopkgtest.kgIWzV/build.Cyz/src
  229s User configuration directory: /home/USER/.config/wesnoth-1.18
  229s User data directory:          /home/USER/.config/wesnoth-1.18
  229s Cache directory:              /home/USER/.config/wesnoth-1.18/cache
  229s 
  229s 
  229s error: XDG_RUNTIME_DIR is invalid or not set in the environment.
  229s *** buffer overflow detected ***: terminated
  230s Aborted (core dumped)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boost1.83/+bug/2089779/+subscriptions




More information about the foundations-bugs mailing list