Debian Bug report logs -
#523271
bloboats: segfault at start up
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Thu, 09 Apr 2009 04:57:04 GMT) (full text, mbox, link).
Message #3 received at submit@bugs.debian.org (full text, mbox, reply):
Package: bloboats
Version: 1.0.1.dsfg-2
Severity: grave
Hi,
$ bloboats
Bloboats version 1.0.1, Copyright (C) 2006 Markus Kettunen
Bloboats comes with ABSOLUTELY NO WARRANTY; for details check
file "copying.txt".
This is free software, and you are welcome to redistribute it
under certain conditions; check file "copying.txt" for details.
Segmentation fault
$ gdb bloboats
[...]
(gdb) bt
#0 0xb7eb2536 in glViewport () from /usr/lib/libGL.so.1
#1 0x0804d248 in ?? ()
#2 0x0804ab83 in ?? ()
#3 0xb7b78775 in __libc_start_main (main=0x804a750
<_ZNSt8ios_base4InitD1Ev@plt+700>, argc=1,
ubp_av=0xbfbc0174, init=0x8073e90 <_ZNSt8ios_base4InitD1Ev@plt+170492>,
fini=0x8073e80 <_ZNSt8ios_base4InitD1Ev@plt+170476>, rtld_fini=0xb7fb3840
<_dl_fini>, stack_end=0xbfbc016c)
at libc-start.c:222
#4 0x0804a4d1 in ?? ()
Cheers,
--
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Thu, 09 Apr 2009 09:06:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Gonéri Le Bouder <goneri@rulezlan.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Thu, 09 Apr 2009 09:06:03 GMT) (full text, mbox, link).
Message #8 received at 523271@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Wed, Apr 08, 2009 at 11:53:57PM -0500, Raphael Geissert wrote:
> Package: bloboats
> Version: 1.0.1.dsfg-2
> Severity: grave
>
> Hi,
>
> $ bloboats
> Bloboats version 1.0.1, Copyright (C) 2006 Markus Kettunen
> Bloboats comes with ABSOLUTELY NO WARRANTY; for details check
> file "copying.txt".
> This is free software, and you are welcome to redistribute it
> under certain conditions; check file "copying.txt" for details.
>
> Segmentation fault
>
> $ gdb bloboats
> [...]
> (gdb) bt
> #0 0xb7eb2536 in glViewport () from /usr/lib/libGL.so.1
> #1 0x0804d248 in ?? ()
> #2 0x0804ab83 in ?? ()
> #3 0xb7b78775 in __libc_start_main (main=0x804a750
> <_ZNSt8ios_base4InitD1Ev@plt+700>, argc=1,
> ubp_av=0xbfbc0174, init=0x8073e90 <_ZNSt8ios_base4InitD1Ev@plt+170492>,
> fini=0x8073e80 <_ZNSt8ios_base4InitD1Ev@plt+170476>, rtld_fini=0xb7fb3840
> <_dl_fini>, stack_end=0xbfbc016c)
> at libc-start.c:222
> #4 0x0804a4d1 in ?? ()
Hi Raphael,
I can't reproduct that here. From wich package, /usr/lib/libGL.so.1 come from?
Which glibc do you use?
Cheers,
Gonéri
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Thu, 09 Apr 2009 15:00:02 GMT) (full text, mbox, link).
Message #11 received at 523271@bugs.debian.org (full text, mbox, reply):
On Thursday 09 April 2009 04:02:58 you wrote:
> On Wed, Apr 08, 2009 at 11:53:57PM -0500, Raphael Geissert wrote:
> > Package: bloboats
> > Version: 1.0.1.dsfg-2
> > Severity: grave
> >
> > Hi,
> >
> > $ bloboats
> > Bloboats version 1.0.1, Copyright (C) 2006 Markus Kettunen
> > Bloboats comes with ABSOLUTELY NO WARRANTY; for details check
> > file "copying.txt".
> > This is free software, and you are welcome to redistribute it
> > under certain conditions; check file "copying.txt" for details.
> >
> > Segmentation fault
> >
> > $ gdb bloboats
> > [...]
> > (gdb) bt
> > #0 0xb7eb2536 in glViewport () from /usr/lib/libGL.so.1
> > #1 0x0804d248 in ?? ()
> > #2 0x0804ab83 in ?? ()
> > #3 0xb7b78775 in __libc_start_main (main=0x804a750
> > <_ZNSt8ios_base4InitD1Ev@plt+700>, argc=1,
> > ubp_av=0xbfbc0174, init=0x8073e90
> > <_ZNSt8ios_base4InitD1Ev@plt+170492>, fini=0x8073e80
> > <_ZNSt8ios_base4InitD1Ev@plt+170476>, rtld_fini=0xb7fb3840 <_dl_fini>,
> > stack_end=0xbfbc016c)
> > at libc-start.c:222
> > #4 0x0804a4d1 in ?? ()
>
> Hi Raphael,
Hi Gonéri,
>
> I can't reproduct that here. From wich package, /usr/lib/libGL.so.1 come
> from? Which glibc do you use?
$ dpkg -S /usr/lib/libGL.so.1
libgl1-mesa-glx: /usr/lib/libGL.so.1
System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable'), (200, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bloboats depends on:
ii libc6 2.9-4 GNU C Library: Shared libraries
ii libgcc1 1:4.3.3-3 GCC support library
ii libgl1-mesa-glx [libgl1] 7.3-1 A free implementation of the OpenG
ii libglu1-mesa [libglu1] 7.3-1 The OpenGL utility library (GLU)
ii libsdl-image1.2 1.2.6-3 image loading library for Simple D
ii libsdl-net1.2 1.2.7-2 network library for Simple DirectM
ii libsdl1.2debian 1.2.13-4+b1 Simple DirectMedia Layer
ii libstdc++6 4.3.3-3 The GNU Standard C++ Library v3
I tried to get the debug symbols of the package from debug.d.n but it they are not available for i386.
>
> Cheers,
>
> Gonéri
Cheers,
--
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Thu, 09 Apr 2009 15:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Gonéri Le Bouder <goneri@rulezlan.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Thu, 09 Apr 2009 15:27:03 GMT) (full text, mbox, link).
Message #16 received at 523271@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thu, Apr 09, 2009 at 09:59:19AM -0500, Raphael Geissert wrote:
> On Thursday 09 April 2009 04:02:58 you wrote:
> > On Wed, Apr 08, 2009 at 11:53:57PM -0500, Raphael Geissert wrote:
> > > Package: bloboats
> > > Version: 1.0.1.dsfg-2
> > > Severity: grave
> > >
> > > Hi,
> > >
> > > $ bloboats
> > > Bloboats version 1.0.1, Copyright (C) 2006 Markus Kettunen
> > > Bloboats comes with ABSOLUTELY NO WARRANTY; for details check
> > > file "copying.txt".
> > > This is free software, and you are welcome to redistribute it
> > > under certain conditions; check file "copying.txt" for details.
> > >
> > > Segmentation fault
> > >
> > > $ gdb bloboats
> > > [...]
> > > (gdb) bt
> > > #0 0xb7eb2536 in glViewport () from /usr/lib/libGL.so.1
> > > #1 0x0804d248 in ?? ()
> > > #2 0x0804ab83 in ?? ()
> > > #3 0xb7b78775 in __libc_start_main (main=0x804a750
> > > <_ZNSt8ios_base4InitD1Ev@plt+700>, argc=1,
> > > ubp_av=0xbfbc0174, init=0x8073e90
> > > <_ZNSt8ios_base4InitD1Ev@plt+170492>, fini=0x8073e80
> > > <_ZNSt8ios_base4InitD1Ev@plt+170476>, rtld_fini=0xb7fb3840 <_dl_fini>,
> > > stack_end=0xbfbc016c)
> > > at libc-start.c:222
> > > #4 0x0804a4d1 in ?? ()
> >
> > Hi Raphael,
>
> Hi Gonéri,
>
> >
> > I can't reproduct that here. From wich package, /usr/lib/libGL.so.1 come
> > from? Which glibc do you use?
>
> $ dpkg -S /usr/lib/libGL.so.1
> libgl1-mesa-glx: /usr/lib/libGL.so.1
>
> System Information:
> Debian Release: squeeze/sid
> APT prefers testing
> APT policy: (990, 'testing'), (500, 'stable'), (200, 'unstable')
> Architecture: i386 (i686)
>
> Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages bloboats depends on:
> ii libc6 2.9-4 GNU C Library: Shared libraries
> ii libgcc1 1:4.3.3-3 GCC support library
> ii libgl1-mesa-glx [libgl1] 7.3-1 A free implementation of the OpenG
> ii libglu1-mesa [libglu1] 7.3-1 The OpenGL utility library (GLU)
> ii libsdl-image1.2 1.2.6-3 image loading library for Simple D
> ii libsdl-net1.2 1.2.7-2 network library for Simple DirectM
> ii libsdl1.2debian 1.2.13-4+b1 Simple DirectMedia Layer
> ii libstdc++6 4.3.3-3 The GNU Standard C++ Library v3
Works fine here:
ii libc6 2.9-6 GNU C Library: Shared libraries
ii libgcc1 1:4.3.3-7 GCC support library
ii libgl1-mesa-glx 7.0.3-7 A free implementation of the OpenGL API -- GLX runtime
ii libglu1-mesa 7.0.3-7 The OpenGL utility library (GLU)
ii libsdl-image1.2 1.2.6-3 image loading library for Simple DirectMedia Layer 1.2
ii libsdl-net1.2 1.2.7-2 network library for Simple DirectMedia Layer
ii libsdl1.2debian 1.2.13-4+b1 Simple DirectMedia Layer
ii libstdc++6 4.3.3-7 The GNU Standard C++ Library v3
I've the feeling the problem come from your libgl1-mesa-glx from experimental.
Can you please upgrade your sysetem.
> I tried to get the debug symbols of the package from debug.d.n but it they are not available for i386.
It's probably because I built the package on my own machin. Is there
anything I can do to avoid that?
Cheers,
Gonéri
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Wed, 15 Apr 2009 05:09:02 GMT) (full text, mbox, link).
Message #19 received at 523271@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Thursday 09 April 2009 10:25:29 Gonéri Le Bouder wrote:
> On Thu, Apr 09, 2009 at 09:59:19AM -0500, Raphael Geissert wrote:
> Works fine here:
[...]
> I've the
> feeling the problem come from your libgl1-mesa-glx from experimental. Can
> you please upgrade your sysetem.
>
Did that a couple of days ago, no difference.
> > I tried to get the debug symbols of the package from debug.d.n but it
> > they are not available for i386.
>
> It's probably because I built the package on my own machin. Is there
> anything I can do to avoid that?
No, it is unrelated to whether you built the package or a buildd did. I've
already pinged the right person for that.
I rebuilt the package with DEB_BUILD_OPTIONS=nostrip and got a better
backtrace:
(gdb) bt
#0 0xb7f06756 in glViewport () from /usr/lib/libGL.so.1
#1 0x0804d348 in window::OpenWindow (this=0x807c820, w=1024, h=768, b=32,
flags=-2147483646)
at src/window.cpp:59
#2 0x0804ab95 in main (argc=1, argv=Cannot access memory at address 0x5
) at src/main.cpp:211
By the way, like I mentioned to Barry via IRC, the package doesn't have an
un/patch target and doesn't respect the debug and noopt DEB_BUILD_OPTIONS
options; you should fix that.
One of the obvious errors on the code is that while SDL_SetVideoMode takes a
Uint32 for the flags, the code passes an integer which, as soon as
SDL_FULLSCREEN is added, is overflowed, turning into a negative integer.
Attached is the fix for that bug.
While this doesn't fix the segfault it is one bug less (although I expect
many, similar, bugs to be there on the code). What did help get the game's
screen was commenting out the SDL_FULLSCREEN-related line in main.cpp;
although after a few seconds the screen got corrupted and had to SIGTERM it.
This is the backtrace from the code with the attached patch applied:
(gdb) bt
#0 0xb7e13756 in glViewport () from /usr/lib/libGL.so.1
#1 0x0804d348 in window::OpenWindow (this=0x807c820, w=1024, h=768, b=32,
flags=2147483650) at src/window.cpp:59
#2 0x0804ab95 in main (argc=1, argv=Cannot access memory at address 0x5
) at src/main.cpp:211
Cheers,
--
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
[bloboats_uint32.diff (text/x-diff, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Sat, 18 Apr 2009 22:36:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Gonéri Le Bouder <goneri@rulezlan.org>:
Extra info received and forwarded to list. Copy sent to Debian Games Team <pkg-games-devel@lists.alioth.debian.org>.
(Sat, 18 Apr 2009 22:36:04 GMT) (full text, mbox, link).
Message #24 received at 523271@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Wed, Apr 15, 2009 at 12:08:49AM -0500, Raphael Geissert wrote:
> On Thursday 09 April 2009 10:25:29 Gonéri Le Bouder wrote:
> > On Thu, Apr 09, 2009 at 09:59:19AM -0500, Raphael Geissert wrote:
> > Works fine here:
> [...]
> > I've the
> > feeling the problem come from your libgl1-mesa-glx from experimental. Can
> > you please upgrade your sysetem.
> >
>
> Did that a couple of days ago, no difference.
I found the bug. You probably have a screen with a resolution lower than
1024x768, the game doesn't react correctly if it fails to open a display.
Can you try to start the game with:
bloboats --resolution=800x600
> By the way, like I mentioned to Barry via IRC, the package doesn't have an
> un/patch target and doesn't respect the debug and noopt DEB_BUILD_OPTIONS
> options; you should fix that.
Done on svn.
> One of the obvious errors on the code is that while SDL_SetVideoMode takes a
> Uint32 for the flags, the code passes an integer which, as soon as
> SDL_FULLSCREEN is added, is overflowed, turning into a negative integer.
> Attached is the fix for that bug.
>
> While this doesn't fix the segfault it is one bug less (although I expect
> many, similar, bugs to be there on the code). What did help get the game's
> screen was commenting out the SDL_FULLSCREEN-related line in main.cpp;
> although after a few seconds the screen got corrupted and had to SIGTERM it.
>
> This is the backtrace from the code with the attached patch applied:
I'll apply it and forward it to upstream.
Cheers,
Gonéri Le Bouder
[signature.asc (application/pgp-signature, inline)]
Severity set to `important' from `grave'
Request was from Gonéri Le Bouder <goneri@rulezlan.org>
to control@bugs.debian.org.
(Sat, 18 Apr 2009 23:42:02 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Games Team <pkg-games-devel@lists.alioth.debian.org>:
Bug#523271; Package bloboats.
(Sun, 19 Apr 2009 02:12:02 GMT) (full text, mbox, link).
Message #31 received at 523271@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Saturday 18 April 2009 17:32:46 Gonéri Le Bouder wrote:
> On Wed, Apr 15, 2009 at 12:08:49AM -0500, Raphael Geissert wrote:
>
> I found the bug. You probably have a screen with a resolution lower than
> 1024x768, the game doesn't react correctly if it fails to open a display.
That's right, 1024x800.
> Can you try to start the game with:
>
> bloboats --resolution=800x600
Yeah, that works (1024x600 as well, as you may assume). Although there's
another bug (not sure if int overflow-related or not) that shows up after a
random amount of time (see attached screenshot) where the text regions and
some decorations turn white.
>
> > By the way, like I mentioned to Barry via IRC, the package doesn't have
> > an un/patch target and doesn't respect the debug and noopt
> > DEB_BUILD_OPTIONS options; you should fix that.
>
> Done on svn.
Thanks
Cheers,
--
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net
[bloboats.jpg (image/jpeg, attachment)]
Tags added: pending
Request was from Gonéri Le Bouder <goneri@rulezlan.org>
to control@bugs.debian.org.
(Mon, 11 May 2009 21:54:03 GMT) (full text, mbox, link).
Reply sent
to Gonéri Le Bouder <goneri@rulezlan.org>:
You have taken responsibility.
(Mon, 11 May 2009 22:24:19 GMT) (full text, mbox, link).
Notification sent
to Raphael Geissert <atomo64@gmail.com>:
Bug acknowledged by developer.
(Mon, 11 May 2009 22:24:19 GMT) (full text, mbox, link).
Message #38 received at 523271-close@bugs.debian.org (full text, mbox, reply):
Source: bloboats
Source-Version: 1.0.1.dsfg-3
We believe that the bug you reported is fixed in the latest version of
bloboats, which is due to be installed in the Debian FTP archive:
bloboats_1.0.1.dsfg-3.diff.gz
to pool/main/b/bloboats/bloboats_1.0.1.dsfg-3.diff.gz
bloboats_1.0.1.dsfg-3.dsc
to pool/main/b/bloboats/bloboats_1.0.1.dsfg-3.dsc
bloboats_1.0.1.dsfg-3_i386.deb
to pool/main/b/bloboats/bloboats_1.0.1.dsfg-3_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 523271@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Gonéri Le Bouder <goneri@rulezlan.org> (supplier of updated bloboats package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 19 Apr 2009 00:00:15 +0200
Source: bloboats
Binary: bloboats
Architecture: source i386
Version: 1.0.1.dsfg-3
Distribution: unstable
Urgency: low
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Gonéri Le Bouder <goneri@rulezlan.org>
Description:
bloboats - a boat racing game
Closes: 523271
Changes:
bloboats (1.0.1.dsfg-3) unstable; urgency=low
.
[ Paul Wise ]
* Add a watch file
* Update upstream URLs
.
[ Gonéri Le Bouder ]
* Use /usr/share/quilt/quilt.make to call quilt
* Unapply the patches during the clean, thanks Raphael Geisser
* Standard version 3.8.1
- do not ignore 'make clean' return
* deals correctly with noopt and debug, thanks Raphael Geisser
* Apply Raphael Geisser patch to pass correct parameter to SDL_SetVideoMode
* Add fix_segfault_notebook.diff to avoid a segfault if the screen
doesn't accept 1024x768 like most of the notebook computer
(Closes: #523271)
Checksums-Sha1:
ad052b8cc9d26b7e4a995d4b9293444c50308198 1383 bloboats_1.0.1.dsfg-3.dsc
073ada29dba89bb61b599ed48266a0f7d049e8c7 9121 bloboats_1.0.1.dsfg-3.diff.gz
d7698627a29d9abb24089f37679447fedf001f6d 893012 bloboats_1.0.1.dsfg-3_i386.deb
Checksums-Sha256:
91848bd102eb358f6e9af95e6709293967f6196d597f3c5ab46d94498a67e6c9 1383 bloboats_1.0.1.dsfg-3.dsc
b9917addaf38989a07dfb084f0b60c25464922f84644a733f778e3323a089845 9121 bloboats_1.0.1.dsfg-3.diff.gz
d8a728989d63b61b261219801fcd8cb56a3eb2d2969ea0112ed06215314d9740 893012 bloboats_1.0.1.dsfg-3_i386.deb
Files:
afd6bed7c750224e207a96cf955754a3 1383 games optional bloboats_1.0.1.dsfg-3.dsc
c66eece2d9f46e688309c5cd5e399722 9121 games optional bloboats_1.0.1.dsfg-3.diff.gz
92ffdc989b551885b3733cd67f7be133 893012 games optional bloboats_1.0.1.dsfg-3_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkoIoGEACgkQsKTFpDfZQSynzgCfeqi6jMbz47Vy5LM8i06gifCU
bFEAnRTRcFzmkfbEvsgE9kypvT/xFh0z
=kDMs
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 13 Jul 2009 07:43:22 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 11:22:43 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.