<div dir="ltr">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.<div>
<br></div><div>I hope this helps.</div><div><br></div><div>Thanks,</div><div>Alex</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 20, 2014 at 12:25 PM, Jesse Smith <span dir="ltr"><<a href="mailto:jessefrgsmith@yahoo.ca" target="_blank">jessefrgsmith@yahoo.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not 100% sure, but I've seen this bug reported by other<br>
users/distributions and I have found that removing the compiler<br>
optimizations for GCC corrects the error in most cases. That, or<br>
switching to the Clang compiler works too.<br>
<br>
To remove optimizations, go into the Atanks src/ directory and edit the<br>
Makefile (src/Makefile) so that line 11 reads<br>
<br>
FLAGS += -DDATA_DIR=\"${INSTALLDIR}\" -DNEW_GAMELOOP -Wno-write-strings<br>
-DNETWORK -DTHREADS -pthread<br>
<br>
That usually works around the problem.<br>
<br>
- Jesse<br>
<br>
<br>
<br>
<br>
On 13-07-10 12:24 PM, Alexandre Rebert wrote:<br>
> Package: atanks<br>
> Version: 5.7~dfsg-2<br>
> Severity: normal<br>
> User: <a href="mailto:mayhem@forallsecure.com">mayhem@forallsecure.com</a><br>
> Usertags: mayhem<br>
><br>
> atanks crashes with exit status 139. We confirmed the crash by<br>
> re-running it in a fresh debian unstable installation.<br>
><br>
> The attachment [1] contains a testcase (under ./crash) crashing the<br>
> program. It ensures that you can easily reproduce the bug. Additionally,<br>
> under ./crash_info/, we include more information about the crash such as<br>
> a core dump, the dmesg generated by the crash, and its output.<br>
><br>
> Regards,<br>
> The Mayhem Team (Alexandre Rebert, Thanassis Avgerinos, Sang Kil Cha, David Brumley, Manuel Egele)<br>
> Cylab, Carnegie Mellon University<br>
><br>
> [1] <a href="http://www.forallsecure.com/bug-reports/6e010ba64a249e7868d9a32791a9c610d9226e2a/full_report" target="_blank">http://www.forallsecure.com/bug-reports/6e010ba64a249e7868d9a32791a9c610d9226e2a/full_report</a><br>
><br>
><br>
> -- System Information:<br>
> Debian Release: jessie/sid<br>
> APT prefers unstable<br>
> APT policy: (500, 'unstable')<br>
> Architecture: i386 (i686)<br>
><br>
> Kernel: Linux 3.9-1-686-pae (SMP w/1 CPU core)<br>
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)<br>
> Shell: /bin/sh linked to /bin/dash<br>
><br>
> Versions of packages atanks depends on:<br>
> ii atanks-data 5.7~dfsg-2<br>
> ii liballegro4.4 2:4.4.2-2.1<br>
> ii libc6 2.17-6<br>
> ii libgcc1 1:4.8.1-4<br>
> ii libstdc++6 4.8.1-4<br>
><br>
> atanks recommends no packages.<br>
><br>
> atanks suggests no packages.<br>
><br>
> -- no debconf information<br>
><br>
<br>
</blockquote></div><br></div>