crashes when trying to perform castle (king/rook exchange)

Bug #70424 reported by randcoop
6
Affects Status Importance Assigned to Milestone
knights (Ubuntu)
Fix Released
Undecided
Martin Meredith
Edgy
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: knights

The Ubuntu package for Knights in Edgy (0.6-7.1ubuntu1) crashes when it encounters a castle move (invoked by moving the king two squares toward the rook).

The Debian Unstable package (0.6-7.1) does not have this bug. So the creater of the (K)Ubuntu package developed the error.

The problem with installing the Debian package is only that the Adept notifier sees the Ubuntu version of the package as an upgrade for the Debian pakage. As a result, the notifier red triangle is always on in the taskbar.

It seems to me that the fix should be simple: replace the Ubuntu package with the generic Unstable version of the Debian package.

Revision history for this message
Jozef Komenda (jozef-komenda) wrote :

I can confirm this on Kubuntu Edgy. The package from Debian unstable works.

This is the console output when Knights crashes:

knights: WARNING: audio::prepFile: Can not download tar:/usr/share/apps/knights/themes/KSDefault.tar.gz/matchover.wav
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QFile::open: No file name specified
QMetaObject::findSignal:io_engine: Conflict with io_base::sendCMD(const Command&)
*** stack smashing detected ***: knights terminated
KCrash: Application 'knights' crashing...

Revision history for this message
Jozef Komenda (jozef-komenda) wrote :

Things are getting more interesting ....

I rebuilt the knights package from sources from a) the ubuntu and b) debian unstable sources (.orig.tar.gz + diff) using debuild. Both final packages crash on castle with the same output.

The result is now the following:
- orginal edgy pkg - crashes
- original debian unstable pkg - works
- edgy src rebuilt on kubuntu edgy - crashes
- debian unstable src rebuilt on kubuntu edgy - crashes

This looks like a problem somewhere else. Maybe some differences in dev packages ...? Or some "magic" in the sources, which fails to work correctly with the edgy dev packages.

Revision history for this message
randcoop (rcooper) wrote :

Seems to me, then, that the answer is to put the Debian unstable package in the Kubuntu repository and simply rename it.

That may not satisfy the Kubuntu developers, but it would result in a Knights program that is current and doesn't crash.

Revision history for this message
Jozef Komenda (jozef-komenda) wrote :

This is indeed a bug in knights, see my comment from 2006-11-07 15:57 at

http://sourceforge.net/tracker/index.php?func=detail&aid=1587926&group_id=31461&atid=402242

The patch is attached to the sourceforge's bug report, to be sure I attached it here as well.

Could the package maintainer fix this please in ubuntu so that we don't have to wait for the next knights release?

Martin Meredith (mez)
Changed in knights:
assignee: nobody → mez
Martin Meredith (mez)
Changed in knights:
status: Unconfirmed → Fix Committed
Revision history for this message
Martin Meredith (mez) wrote : [Fwd: Accepted knights 0.6-7.1ubuntu2 (source)]

-------- Forwarded Message --------
From: Ubuntu Installer <email address hidden>
Reply-To: Ubuntu Installer <email address hidden>
To: Martin Meredith <email address hidden>
Subject: Accepted knights 0.6-7.1ubuntu2 (source)
Date: Wed, 08 Nov 2006 18:20:10 -0000

Accepted:
 OK: knights_0.6-7.1ubuntu2.dsc
     -> Component: universe Section: games
 OK: knights_0.6.orig.tar.gz
 OK: knights_0.6-7.1ubuntu2.diff.gz

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 8 Nov 2006 18:12:43 +0000
Source: knights
Binary: knights
Architecture: source
Version: 0.6-7.1ubuntu2
Distribution: feisty
Urgency: low
Maintainer: Tommaso Moroni <email address hidden>
Changed-By: Martin Meredith <email address hidden>
Description:
 knights - A chess interface for the K Desktop Environment
Changes:
 knights (0.6-7.1ubuntu2) feisty; urgency=low
 .
   * Automated backport by prevu. No source changes
   * Fixed if in rules to work properly
Files:
 99734d0052925c3e21894986d883d3bb 704 games optional knights_0.6-7.1ubuntu2.dsc
 b04574568b9bc3982b934328ee63fb74 1317589 games optional knights_0.6.orig.tar.gz
 b6259a709ca1527df1cc68dc8cf221a8 33176 games optional knights_0.6-7.1ubuntu2.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFUh6ZJATtOmqqpWkRAoFJAJsHHl1/KMcXvhVZj32wgcgHmpVBaACeM6+f
7DzAQPZGPhxPffWQPfOgWEg=
=TSZP
-----END PGP SIGNATURE-----

==

Announcing to <email address hidden>

Thank you for your contribution to Ubuntu.

Revision history for this message
Frode M. Døving (frode) wrote :

Package modified.
It's available from http://ubuntu.lnix.net/misc/knights-fix/
Please test.

Debdiff attached.

Revision history for this message
Frode M. Døving (frode) wrote :

Refreshing browser windows can be nice sometimes. Sorry about the spam.

Revision history for this message
randcoop (rcooper) wrote :

The package at ubuntu.lnix.net (see message above) works.

Martin Meredith (mez)
Changed in knights:
status: Fix Committed → Fix Released
Revision history for this message
Frode M. Døving (frode) wrote :

If it's not fixed already, it won't happen for edgy i guess.
Was fixed for feisty.

Changed in knights:
status: Unconfirmed → Rejected
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.