Debian Bug report logs - #784259
lgc-pg segfaults when run headless

version graph

Package: lgc-pg; Maintainer for lgc-pg is Debian Games Team <pkg-games-devel@lists.alioth.debian.org>; Source for lgc-pg is src:lgeneral (PTS, buildd, popcon).

Reported by: Alexandre Detiste <alexandre.detiste@gmail.com>

Date: Mon, 4 May 2015 16:33:01 UTC

Severity: normal

Tags: confirmed

Found in version lgeneral/1.2.6-1

Fixed in version lgeneral/1.2.6-2

Done: Markus Koschany <apo@gambaru.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, game-data-packager@packages.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#784259; Package lgc-pg. (Mon, 04 May 2015 16:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Alexandre Detiste <alexandre.detiste@gmail.com>:
New Bug report received and forwarded. Copy sent to game-data-packager@packages.debian.org, Debian QA Group <packages@qa.debian.org>. (Mon, 04 May 2015 16:33:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Alexandre Detiste <alexandre.detiste@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: lgc-pg segfaults when run headless
Date: Mon, 04 May 2015 18:30:18 +0200
Package: lgc-pg
Version: 1.2.6-1
Severity: normal

Dear Maintainer,

I see that lgc-pg uses libSDL for it's imager manipulation.

If run headless, it will segfault;
I see that when run normally it opens a window
for a fraction of a second.

I guess somewhere there is an unchecked SDL return code.

This behaviour could also be documented.

Alexandre Detiste

/tmp $ lgc-pg -s raw/ -d result/
LGeneral Converter for Panzer General (DOS version) v1.2.6
Copyright 2002-2012 Michael Speck
Released under GNU GPL
---
Settings:
  Source: raw/
  Destination: result/
  Target: pg
  Full Campaign
  Use Individual Palettes
  Apply PG unit modifications
Segmentation fault



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (501, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-trunk-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lgc-pg depends on:
ii  libc6            2.19-18
ii  libsdl1.2debian  1.2.15-11

lgc-pg recommends no packages.

Versions of packages lgc-pg suggests:
pn  lgeneral  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#784259; Package lgc-pg. (Tue, 05 May 2015 14:57:07 GMT) (full text, mbox, link).


Acknowledgement sent to 784259@bugs.debian.org:
Extra info received and forwarded to list. Copy sent to Debian QA Group <packages@qa.debian.org>. (Tue, 05 May 2015 14:57:07 GMT) (full text, mbox, link).


Message #10 received at 784259@bugs.debian.org (full text, mbox, reply):

From: Markus Koschany <apo@gambaru.de>
To: Alexandre Detiste <alexandre.detiste@gmail.com>
Cc: 784259@bugs.debian.org
Subject: Re: Bug#784259: lgc-pg segfaults when run headless
Date: Tue, 05 May 2015 16:55:42 +0200
[Message part 1 (text/plain, inline)]
Control: tags -1 confirmed

On 04.05.2015 18:30, Alexandre Detiste wrote:
> Package: lgc-pg
> Version: 1.2.6-1
> Severity: normal
> 
> Dear Maintainer,
> 
> I see that lgc-pg uses libSDL for it's imager manipulation.
> 
> If run headless, it will segfault;
> I see that when run normally it opens a window
> for a fraction of a second.
> 
> I guess somewhere there is an unchecked SDL return code.
> 
> This behaviour could also be documented.

Hi,

thanks for your report. Indeed this a bug in lgc-pg which should not
segfault under these circumstances. The error handling should be
improved and I can document the requirements for running lgc-pg in its
manual page.

Regards,

Markus

[signature.asc (application/pgp-signature, attachment)]

Added tag(s) confirmed. Request was from Markus Koschany <apo@gambaru.de> to 784259-submit@bugs.debian.org. (Tue, 05 May 2015 14:57:07 GMT) (full text, mbox, link).


Reply sent to Markus Koschany <apo@gambaru.de>:
You have taken responsibility. (Fri, 26 Jun 2015 19:54:08 GMT) (full text, mbox, link).


Notification sent to Alexandre Detiste <alexandre.detiste@gmail.com>:
Bug acknowledged by developer. (Fri, 26 Jun 2015 19:54:08 GMT) (full text, mbox, link).


Message #17 received at 784259-close@bugs.debian.org (full text, mbox, reply):

From: Markus Koschany <apo@gambaru.de>
To: 784259-close@bugs.debian.org
Subject: Bug#784259: fixed in lgeneral 1.2.6-2
Date: Fri, 26 Jun 2015 19:50:07 +0000
Source: lgeneral
Source-Version: 1.2.6-2

We believe that the bug you reported is fixed in the latest version of
lgeneral, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 784259@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Markus Koschany <apo@gambaru.de> (supplier of updated lgeneral package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 26 Jun 2015 20:53:26 +0200
Source: lgeneral
Binary: lgeneral lgc-pg
Architecture: source
Version: 1.2.6-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Changed-By: Markus Koschany <apo@gambaru.de>
Description:
 lgc-pg     - LGeneral converter for Panzer General game data
 lgeneral   - strategy game in the tradition of Panzer General
Closes: 777933 784259
Changes:
 lgeneral (1.2.6-2) unstable; urgency=medium
 .
   * Append -std=gnu89 to CFLAGS and force building with the older
     GCC standard gnu89 instead of the new default gnu11. This fixes the FTBFS
     with GCC-5. (Closes: #777933)
   * Add segfaults-when-running-headless.patch.
     lgc-pg requires a running graphical desktop environment for the conversion.
     Now lgc-pg prints an error message and exits gracefully when it does not
     detect this requirement. (Closes: #784259)
   * Add lgc-pg-man-page.patch and mention that lgc-pg requires a graphical
     desktop environment for the conversion.
Checksums-Sha1:
 f9ff08a3968cd903a170d27a9c656e8065f887b9 2114 lgeneral_1.2.6-2.dsc
 90fc3c7426463b3161d3398ab6f6ac39f11cbaeb 14740 lgeneral_1.2.6-2.debian.tar.xz
Checksums-Sha256:
 ec5b4150258fb192b7945daf02cca55a4a74ed7385f617905b0b6a211265f8ca 2114 lgeneral_1.2.6-2.dsc
 fcb371dfc4a2d248828933689d7ac0b6364a7a692263484fbf76f033b2eeae95 14740 lgeneral_1.2.6-2.debian.tar.xz
Files:
 762d79564143e36138cb5ab4215a180c 2114 games optional lgeneral_1.2.6-2.dsc
 71436063ea2cb95de68561b10789fe4c 14740 games optional lgeneral_1.2.6-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJVjaVgXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBQ0YzRDA4OEVGMzJFREVGNkExQTgzNUZE
OUFEMTRCOTUxM0I1MUU0AAoJENmtFLlRO1Hkvy8P/j23PyUg58biSrJzcHshn1fK
FHmJFl7xfF1KdjckyHY3K7wE4mkbqEDqpr6NvGH5U1b5oBKGBzFzRvy7cfGesRev
bBA1k1JkLJMQOUYjb2sGPkZP40uze5XgWX7ofCn9B4j72GAY/aI5tQIZUE2k1rFD
uxa9hThRk61V4juchSHL04NHHNaXGwByREoLZ2g7g20gefREFaX29tSPNpmH+Z+A
9IYx+gshhndDznzPCZ23GrpDK9KKcXpbE4/ZLxn2N3kAWHK4SNJaPJl5YCXTRdGp
4f8zbVMLcaxtz6nLmr5MjusfiF5sQLbXynflpsWj8QpNwrB6CfVs4/dRrfM/Re5T
WqcGUrkF43qWq9PLJViHVv5zddR2BR7oMmeNZn+pCI0j8ZQpPB52CcsewAIOw7Gw
OOzyq+rhIcvsXts/z7owqDF370BBiFp1HT/b5lGn7OLd1dth2cK10Gl1dwO/vhBS
Y9JgWNfjgWmdOVxEk8FpWXpli+15fe41JABpG0b93ox8D1RviG5PdLfkZDsV82jb
U4wn7wd4HDnrmRkoZ+vvggWsVJ7aXRpeRbUWkvonn7yypYJIMXYUOdbozbBOKwwi
C3sG7KSKFL8DdeBkY07kSNA/wheBA+D8dvpXo7rSsup3S+qxvTNfEuEGgt6NhAvH
LQC6GcjvOEDLKkOoQtiv
=5Kas
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 30 Jul 2015 07:32:25 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 14:00:07 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.