segmentation fault - lbreakout2

Bug #196334 reported by psa
8
Affects Status Importance Assigned to Milestone
lbreakout2 (Ubuntu)
Expired
Medium
Unassigned

Bug Description

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

Lbreakout2 2.5.2-2.1ubuntu2

$ lbreakout2
LBreakout2 2.5.2
Copyright 2001-2005 Michael Speck
Published under GNU GPL
---
Looking up data in: /usr/share/games/lbreakout2
Looking up custom levels in: /home/psasak/.lgames/lbreakout2-levels
Loading theme 'AbsoluteB'
Saving highscore chart in: /var/games
Segmentation fault
$

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Hi there
Thanks for your bug report. Please try to obtain a backtrace http://wiki.ubuntu.com/DebuggingProgramCrash and attach the file to the bug report. This will greatly help us in tracking down your problem.

Thanks in advance

Changed in lbreakout2:
assignee: nobody → sourcercito
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
psa (psasak-earthlink) wrote : Re: [Bug 196334] Re: segmentation fault - lbreakout2
Download full text (67.5 KiB)

Here you are:

GNU gdb 6.7.1-debian
Copyright (C) 2007 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 "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) handklldle SIG33 pass nostop norprint
Signal Stop Print Pass to program Description
SIG33 No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/games/lbreakout2
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb76c3720 (LWP 8090)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0xb74d5b90 (LWP 8093)]
[New Thread 0xb6ba8b90 (LWP 8094)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb76c3720 (LWP 8090)]
0xb7cdfa00 in strcat () from /lib/tls/i686/cmov/libc.so.6
(gdb) backtrace full
#0 0xb7cdfa00 in strcat () from /lib/tls/i686/cmov/libc.so.6
No symbol table info available.
#1 0x080645f7 in ?? ()
No symbol table info available.
#2 0xbfff6b88 in ?? ()
No symbol table info available.
#3 0xbfff6a88 in ?? ()
No symbol table info available.
#4 0x0807e5a3 in ?? ()
No symbol table info available.
#5 0xbfff7990 in ?? ()
No symbol table info available.
#6 0x33303935 in ?? ()
No symbol table info available.
#7 0x32393821 in ?? ()
No symbol table info available.
#8 0x083e4ff0 in ?? ()
No symbol table info available.
#9 0x00000109 in ?? ()
No symbol table info available.
#10 0x00000021 in ?? ()
No symbol table info available.
#11 0xb7000000 in ?? ()
No symbol table info available.
#12 0x0807b034 in ?? ()
No symbol table info available.
#13 0x0807b039 in ?? ()
No sy...

Revision history for this message
jensporup (jens-porup) wrote :

confirm this bug on gutsy.

me@laptop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.10
DISTRIB_CODENAME=gutsy
DISTRIB_DESCRIPTION="Ubuntu 7.10"

it was only today that this bug surfaced. It is possible but unlikely that is is related to running 'sfill' yesterday. I run the game almost every day and it's only today that the problem has surfaced.

not clear from the debugging page on how to use dbg to execute the program.

Revision history for this message
StefanPotyra (sistpoty) wrote :

for debugging:
gdb lbreakout2
and inside gdb:
run

Did you install any updates between the point, where lbreakout2 still worked and since you know it is broken (you can find the info about this in /var/lib/dpkg.log).

Revision history for this message
jensporup (jens-porup) wrote :

gotcha. here's the backtrace:

~$ gdb lbreakout2
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run
Starting program: /usr/games/lbreakout2
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1214473824 (LWP 8904)]
(no debugging symbols found)
(no debugging symbols found)
LBreakout2 2.5.2
Copyright 2001-2005 Michael Speck
Published under GNU GPL
---
Looking up data in: /usr/share/games/lbreakout2
Looking up custom levels in: /home/jens/.lgames/lbreakout2-levels
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread -1215681648 (LWP 8907)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread -1225655408 (LWP 8908)]
(no debugging symbols found)
Loading theme 'AbsoluteB'
Write permission for '/var/games/lbreakout2.hscr' denied.
Unable to access highscore chart in '/var/games'.
Trying to use config directory '/home/jens/.lgames'.
Highscore chart doesn't exist in '/home/jens/.lgames'... creating new one.
Saving highscore chart in: /home/jens/.lgames

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214473824 (LWP 8904)]
0xb7d15e2d in strcat () from /lib/tls/i686/cmov/libc.so.6
(gdb)

Revision history for this message
jensporup (jens-porup) wrote :

there were no packages installed between 2008-03-16 and 03-19. lbreakout2 worked fine on 03-17 and 03-18.

relevant lines in /var/log/dpkg.log are

2008-03-19 09:06:25 startup archives unpack
2008-03-19 09:06:44 upgrade libkrb53 1.6.dfsg.1-7build1 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:44 status half-configured libkrb53 1.6.dfsg.1-7build1
2008-03-19 09:06:44 status unpacked libkrb53 1.6.dfsg.1-7build1
2008-03-19 09:06:44 status half-installed libkrb53 1.6.dfsg.1-7build1
2008-03-19 09:06:44 status half-installed libkrb53 1.6.dfsg.1-7build1
2008-03-19 09:06:44 status unpacked libkrb53 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:44 status unpacked libkrb53 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:47 startup packages configure
2008-03-19 09:06:47 configure libkrb53 1.6.dfsg.1-7ubuntu0.1 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:47 status unpacked libkrb53 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:47 status half-configured libkrb53 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:48 status installed libkrb53 1.6.dfsg.1-7ubuntu0.1
2008-03-19 09:06:48 status triggers-pending libc6 2.6.1-1ubuntu10
2008-03-19 09:06:48 trigproc libc6 2.6.1-1ubuntu10 2.6.1-1ubuntu10
2008-03-19 09:06:48 status half-configured libc6 2.6.1-1ubuntu10
2008-03-19 09:07:08 status installed libc6 2.6.1-1ubuntu10

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

ldflags issue probably?

\ßh

Revision history for this message
StefanPotyra (sistpoty) wrote :

@Stephan: were these changed in gutsy via update as well? (2.6.1-1ubuntu10 is gutsy-updates).

OTOH, I cannot find this on gutsy/amd64 (but haven't tried too hard, since I'm at work and guess shouldn't play games here *g*).

Revision history for this message
StefanPotyra (sistpoty) wrote :

cannot find a segfault, in case that wasn't clear.

Revision history for this message
Matti Lindell (mlind) wrote :

I cannot reproduce this on Hardy, i386.

psa, did you have lbreakout2-dbgsym package installed when you made the backtrace?

Revision history for this message
StefanPotyra (sistpoty) wrote :

Ok, I've tested on i386/gutsy as well, having the newer libc6 installed. Still no segfault.

Oh, @jensporup: I forgot that you should type
bt

inside gdb, once the program segfaults, to obtain a backtrace. Of course having the -dbgsym package installed would greatly help here.

I must admit, I'm quite clueless atm, and could only offer a very, very, very wild guess: Somehow, there might be things stored in the highscore file, which after the libc6 update lead to the segfault. I'll try to test that in a chroot, just not too sure when I'll come to it.

Maybe you could try to remove (or better rename) your ~/.lgames directory, and test again? After my theory, lbreakout2 should then work again.

Revision history for this message
jensporup (jens-porup) wrote :

well it definitely seems to be a libc6 issue with strcat().

Here's the backtrace:

[...]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214756448 (LWP 6834)]
0xb7cd0e86 in strcat () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7cd0e86 in strcat () from /lib/tls/i686/cmov/libc.so.6
#1 0x080645f7 in slot_update_hint (slot_id=673199158, hint=0x83c9a40)
    at slot.c:97
#2 0x32363834 in ?? ()
#3 0x28203436 in ?? ()
#4 0x206c764c in ?? ()
#5 0x34383931 in ?? ()
#6 0x34323037 in ?? ()
#7 0x23293739 in ?? ()
#8 0x3438203a in ?? ()
#9 0x34313432 in ?? ()
#10 0x20323331 in ?? ()
#11 0x6c764c28 in ?? ()
#12 0x38353820 in ?? ()
#13 0x35373538 in ?? ()
#14 0x23293138 in ?? ()
#15 0x3736203a in ?? ()
#16 0x39393133 in ?? ()
#17 0x20383531 in ?? ()
#18 0x6c764c28 in ?? ()
#19 0x38353820 in ?? ()
#20 0x32333939 in ?? ()
#21 0x23293830 in ?? ()

Revision history for this message
jensporup (jens-porup) wrote :

I tried what you suggested, renaming the .lgames directory. Here's what happened:

(gdb) run
Starting program: /usr/games/lbreakout2
[Thread debugging using libthread_db enabled]
[New Thread -1214023264 (LWP 6873)]
LBreakout2 2.5.2
Copyright 2001-2005 Michael Speck
Published under GNU GPL
---
Looking up data in: /usr/share/games/lbreakout2
Looking up custom levels in: /home/jens/.lgames/lbreakout2-levels
couldn't find/open config directory '/home/jens/.lgames'
attempting to create it... ok
/home/jens/.lgames/lbreakout2.conf: file not found
[New Thread -1215231088 (LWP 6876)]
[New Thread -1225204848 (LWP 6877)]
Loading theme 'AbsoluteB'
Write permission for '/var/games/lbreakout2.hscr' denied.
Unable to access highscore chart in '/var/games'.
Trying to use config directory '/home/jens/.lgames'.
Highscore chart doesn't exist in '/home/jens/.lgames'... creating new one.
Saving highscore chart in: /home/jens/.lgames
ERROR: cannot open slot 0!
ERROR: cannot open slot 0!
LBreakout2 v1.00: 25 levels
Time: 3.60, Frames: 2546 -> FPS: 706.63
Client finalized
GUI finalized
[Thread -1225204848 (LWP 6877) exited]
Audio finalized
STK finalized
[Thread -1215231088 (LWP 6876) exited]
SDL finalized

Program exited normally.
(gdb)

Changed in lbreakout2:
assignee: sourcercito → nobody
Revision history for this message
Jayson Rowe (jayson.rowe) wrote :

Since it's been a very long time since any additional info was added to this bug, I'm just checking to see if this is still an issue, and if any additional work should be done on this bug.

Revision history for this message
Ralph Janke (txwikinger) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release?

The given backtraces do not obtain the necessary information to troubleshoot the problem. Please try to obtain a backtrace following the instructions at http://wiki.ubuntu.com/DebuggingProgramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.

Thanks in advance.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lbreakout2 (Ubuntu) because there has been no activity for 60 days.]

Changed in lbreakout2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.