xmoto crashed with SIGSEGV in atoi

Bug #243819 reported by Jean-Baptiste Lallement
6
Affects Status Importance Assigned to Milestone
xmoto (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xmoto

This bug was originally reported in bug #123771

When the game is started, it updates the database, goes to the menu then crash.

This is due to a NULL value in playedTime returned from the database (see src/states/StateMainMenu.cpp line 684) converted with atoi.

j-lallement@black:~/.xmoto$ lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10
j-lallement@black:~/.xmoto$ apt-cache policy xmoto
xmoto:
  Installed: 0.4.2-1
  Candidate: 0.4.2-1

Tags: upgrade
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Confirming my own report regarding this has already being triaged in #123771

Changed in xmoto:
status: New → Confirmed
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
  • xm.db Edit (626.0 KiB, application/octet-stream)

xm.db to reproduce the crash

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

config.dat to reproduce the crash

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Here is a proposition of patch.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Revision history for this message
the_only_dude (thisaccountisadeactivatedaccount) wrote :

thanks for the patch.
it'll be applied on the trunk as soon as possible.

Revision history for this message
the_only_dude (thisaccountisadeactivatedaccount) wrote :

the patch has been applied.
you can close this bug report.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for the follow up.

Setting status to "Fix commited"

Changed in xmoto:
status: Confirmed → Fix Committed
Changed in xmoto:
status: Fix Committed → Fix Released
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.