crossfire-server segfault on startup

Bug #879881 reported by osprey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crossfire (Ubuntu)
In Progress
Undecided
osprey

Bug Description

On 11.10 crossfire-servers crashes with a sefault in libc
[10250.984492] crossfire-serve[6946]: segfault at 1 ip 00650410 sp bfbbd07c error 4 in libc-2.13.so[60d000+176000]

The Package information details are:
 crossfire-server:
  Installed: 1.50.0-1.1
  Candidate: 1.50.0-1.1
  Version table:
 *** 1.50.0-1.1 0
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

I've tried to run the crossfire-server in debug mode invoking the -d flag, obtaining only a segmentation fault error,

games@gigetto:~$ /usr/sbin/crossfire-server -d
Segmentation fault

the log file generated by the crossfire-server is in the attached file.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: crossfire-server 1.50.0-1.1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Sat Oct 22 13:49:15 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: crossfire
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (8 days ago)

Revision history for this message
osprey (theosprey) wrote :
tags: added: crossfire-server
Revision history for this message
osprey (theosprey) wrote :

It seems that the problem is related to a missing file "/var/games/crossfire/accounts".

Here is the output of strace when running crossfire-server

munmap(0xb785a000, 4096) = 0
open("/var/games/crossfire/accounts", O_RDONLY) = -1 ENOENT (No such file or directory)
time(NULL) = 1319286235
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Segmentation fault

Just touching the file solves the problem. I think that the creation of that file should be included in the installation process.

osprey (theosprey)
Changed in crossfire (Ubuntu):
assignee: nobody → osprey (theosprey)
Revision history for this message
osprey (theosprey) wrote :

This patch fixes a missing argument during the invocation of a log function when the account file is missing.
It should finally solve the problem

osprey (theosprey)
Changed in crossfire (Ubuntu):
status: New → In Progress
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch for server/account.c file" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
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.