[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#834268: RFS: open-invaders/0.3-5 [NMU] [ITA]



Hi All,

I am packaging open-invaders, a clone of space invaders. I was able to
"port" it (with a lot of help from friends) to gcc-6, but I have a
problem with the used libraries.

I am able to successfully compile and package open-invaders. But when
I want to start it, the initialization of allegro4 seems to fail:

[~]$ open-invaders 
/usr/share
Segmentation fault


I used gdb and found that open-invaders crashed while initializing
allegro:

gdb open-invaders 
GNU gdb (Debian 7.11.1-2) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from open-invaders...Reading symbols from
/usr/lib/debug/.build-id/e2/a38a2e46833843025e17bc8c386c337397cc8b.debug...done.
done.

(gdb) run
Starting program: /usr/share/open-invaders/open-invaders 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
/usr/share
[New Thread 0x7ffff433a700 (LWP 7044)]
[Thread 0x7ffff433a700 (LWP 7044) exited]

Thread 1 "open-invaders" received signal SIGSEGV, Segmentation fault.
0x00007ffff7704cc7 in install_timer () from /usr/lib/x86_64-linux-gnu/liballeg.so.4.4
(gdb) bt
#0  0x00007ffff7704cc7 in install_timer () from /usr/lib/x86_64-linux-gnu/liballeg.so.4.4
#1  0x000055555555fbd5 in initialise_game () at init.cc:521
#2  0x00005555555574f4 in main (argc=1, argv=0x7fffffffe668) at main.cc:81
(gdb) 

In line 81 of main.cc there is the mentioned initialise_game().

I am no C++-programmer, but for me it seems that there is a problem
with the library allegro4.4, even when it is the same major and minor
version as the stable version. Debian stable uses
liballegro4(2:4.4.2-5) while unsable uses liballegro4(2:4.4.2-9) and
all changes (according to changelog) are for debian only.

Since I am no C++-Programmer I fear I can not identify where the real
problem lies - is the library wrong or is open-invaders wrong; maybe
because gcc6 needs another initialisation. The upstream author is gone
(the mentioned website is used by a domain grabber), so I can not ask
him.

best regards,, Hanno
-- 
|  Hanno Wagner  | Member of the HTML Writers Guild  | Rince@IRC      |
| Eine gewerbliche Nutzung meiner Email-Adressen ist nicht gestattet! |
| 74 a3 53 cc 0b 19 - we did it!          |    Generation @           |
#"Grundsaetzlich ja. Bei Startrek nein. Du kannst dir zwar eine eigene Meinung
# bilden, aber nur, wenn sie durch angemessene Begeisterung gepraegt ist.
# Sonst ist deine Meinung unzulaessig, tut mir leid (schade fuer die
# Meinung)." -- khurrad@ums.zer.sub.org (Thomas Naumann)


Reply to: