Bug#715654: [Mayhem] Bug report on atanks: atanks crashes with exit status 139

Alexandre Rebert alexandre at cmu.edu
Mon Jan 20 17:56:32 UTC 2014


After glancing at the code, it seems atanks crashes when init_game_settings
returns NULL. This function returns NULL if allegro could not be
initialized. Its return value will be dereferenced in atanks.cpp:5393 or
atanks.cpp:5409, and the program will crash.

I hope this helps.

Thanks,
Alex


On Mon, Jan 20, 2014 at 12:25 PM, Jesse Smith <jessefrgsmith at yahoo.ca>wrote:

> I'm not 100% sure, but I've seen this bug reported by other
> users/distributions and I have found that removing the compiler
> optimizations for GCC corrects the error in most cases. That, or
> switching to the Clang compiler works too.
>
> To remove optimizations, go into the Atanks src/ directory and edit the
> Makefile (src/Makefile) so that line 11 reads
>
> FLAGS += -DDATA_DIR=\"${INSTALLDIR}\" -DNEW_GAMELOOP -Wno-write-strings
> -DNETWORK -DTHREADS -pthread
>
> That usually works around the problem.
>
> - Jesse
>
>
>
>
> On 13-07-10 12:24 PM, Alexandre Rebert wrote:
> > Package: atanks
> > Version: 5.7~dfsg-2
> > Severity: normal
> > User: mayhem at forallsecure.com
> > Usertags: mayhem
> >
> > atanks crashes with exit status 139. We confirmed the crash by
> > re-running it in a fresh debian unstable installation.
> >
> > The attachment [1] contains a testcase (under ./crash) crashing the
> > program. It ensures that you can easily reproduce the bug. Additionally,
> > under ./crash_info/, we include more information about the crash such as
> > a core dump, the dmesg generated by the crash, and its output.
> >
> > Regards,
> > The Mayhem Team (Alexandre Rebert, Thanassis Avgerinos, Sang Kil Cha,
> David Brumley, Manuel Egele)
> > Cylab, Carnegie Mellon University
> >
> > [1]
> http://www.forallsecure.com/bug-reports/6e010ba64a249e7868d9a32791a9c610d9226e2a/full_report
> >
> >
> > -- System Information:
> > Debian Release: jessie/sid
> >   APT prefers unstable
> >   APT policy: (500, 'unstable')
> > Architecture: i386 (i686)
> >
> > Kernel: Linux 3.9-1-686-pae (SMP w/1 CPU core)
> > Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> > Shell: /bin/sh linked to /bin/dash
> >
> > Versions of packages atanks depends on:
> > ii  atanks-data    5.7~dfsg-2
> > ii  liballegro4.4  2:4.4.2-2.1
> > ii  libc6          2.17-6
> > ii  libgcc1        1:4.8.1-4
> > ii  libstdc++6     4.8.1-4
> >
> > atanks recommends no packages.
> >
> > atanks suggests no packages.
> >
> > -- no debconf information
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140120/d89df927/attachment-0002.html>


More information about the Pkg-games-devel mailing list