Comment 0 for bug 1577986

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I was trying to use snapcraft to snap flight-of-the-amazon-queen. To my dismay I found that scummvm crashes on initialization. Some debugging in gdb lead me to a bug libsdl1.2 in get_progname(). The error case, which doens't occur outside snappy confinement cause the function to return null, leading to a crash when the data is subsequently used without checks.

I've patched the function to return "unknown" (as it does in other cases) and tested that this works correctly. The debian/patches file patch is attached. I would like to SRU this fix into xenial given the high impact of snappy and the negative effect this bug has for each application using SDL.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libsdl1.2debian 1.2.15+dfsg1-3
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed May 4 01:40:40 2016
InstallationDate: Installed on 2016-03-01 (63 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: libsdl1.2
UpgradeStatus: No upgrade log present (probably fresh install)