Gosmore hangs on startup

Bug #937088 reported by Dmitri Bachtin
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gosmore (Debian)
Fix Released
Unknown
gosmore (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

Impact:
gosmore goes into a busy loop when starting, just using 100% cpu and doing nothing
It is caused by a strict overflow violation in the code, just disabling strict overflow optimizations is the simplest solution until we get something better from upstream.

TEST CASE:
start gosmore
if a window shows up it works, if it just eats 100% not

regression potential:
only disable an optimization flag, fixes a completely broken package, should not cause issues besides maybe some minor performance regressions which are acceptable compared to the current state.

original report:
Installed gosmore on fresh 12.04 machine.

1. Started gosmore - nothing happened.
2. Checked ps - gosmore is inside the proc list. Killed it.
3. Started gosmore. Console output:
$ LC_ALL="C" gosmore
gosmore is in the public domain and comes without warranty

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
[END OF CONSOLE OUTPUT]

4. One can sigint gosmore from here.
4.a. Expected result: something should happen, I've never used this software before.

Will recompile it with symbols and return with more info.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: gosmore 0.0.0.20100711-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
Uname: Linux 3.2.0-17-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Mon Feb 20 18:08:36 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120220)
SourcePackage: gosmore
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dmitri Bachtin (damg) wrote :
Revision history for this message
Dmitri Bachtin (damg) wrote :

It looks like the flow stays inside the function TagCmp(const char*, const char*), inside a for(;;) statement. There is no exit condition for this statement and thus the application is trapped there eating up 100% CPU. Maybe the break inside the inner for-loop was supposed to break the outer one.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gosmore (Ubuntu):
status: New → Confirmed
Revision history for this message
Simeon (simeon5) wrote :

Same happens on Oneiric.

Revision history for this message
Alan Goodman (zgzx6-alan-kecso) wrote :

Gosmore hangs on initial start up for me in precise using 100% cpu time on one core.

walterav (walterav)
tags: added: gosmore
Revision history for this message
Kees Klop (2-kees-u) wrote :

I had this problem on the latest Mint which is probably Oneiric as well

Compiling from source i found that omitting the -02 compiler optimization option prevents the 'hang'
what this will mean for performance is of course unclear.

Changed in gosmore (Debian):
status: Unknown → New
Changed in gosmore (Debian):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gosmore - 0.0.0.20100711-2ubuntu2

---------------
gosmore (0.0.0.20100711-2ubuntu2) quantal; urgency=low

  * set -fno-strict-overflow to prevent busy loop on startup (LP: #937088)
 -- Julian Taylor <email address hidden> Sat, 30 Jun 2012 20:17:48 +0200

Changed in gosmore (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gosmore (Ubuntu Precise):
status: New → Confirmed
Julian Taylor (jtaylor)
description: updated
description: updated
Revision history for this message
Julian Taylor (jtaylor) wrote :

I have uploaded a hopefully fixed package to precise-proposed
please test it when it is accepted

Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Hello Dmitri, or anyone else affected,

Accepted into precise-proposed. The package will build now and be available in a few hours in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in gosmore (Ubuntu Precise):
status: Confirmed → Fix Committed
tags: added: verification-needed
Changed in gosmore (Debian):
status: Confirmed → Fix Released
tags: added: verification-done
removed: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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

This bug was fixed in the package gosmore - 0.0.0.20100711-2ubuntu1.1

---------------
gosmore (0.0.0.20100711-2ubuntu1.1) precise-proposed; urgency=low

  * set -fno-strict-overflow to prevent busy loop on startup (LP: #937088)
 -- Julian Taylor <email address hidden> Mon, 27 Aug 2012 20:54:30 +0200

Changed in gosmore (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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