Debian Bug report logs - #607304
dosbox: locks up because SDL tries to access cdrom

Package: libsdl1.2; Maintainer for libsdl1.2 is Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>;

Reported by: Peter Keel <bugzilla@discordia.ch>

Date: Thu, 16 Dec 2010 20:27:02 UTC

Severity: important

Tags: moreinfo, upstream

Forwarded to http://bugzilla.libsdl.org/show_bug.cgi?id=1439

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>:
Bug#607304; Package libsdl1.2. (Thu, 16 Dec 2010 20:27:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Keel <bugzilla@discordia.ch>:
New Bug report received and forwarded. Copy sent to Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>. (Thu, 16 Dec 2010 20:27:05 GMT) Full text and rfc822 format available.

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

From: Peter Keel <bugzilla@discordia.ch>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dosbox: locks up because SDL tries to access cdrom
Date: Thu, 16 Dec 2010 21:17:57 +0100
Package: libsdl1.2
Severity: grave
Tags: upstream
Justification: renders package unusable


This is actually Bug 487811 reported on Dosbox:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487811

Afflicts all kernels above 2.6.27-something. This happens on
starting dosbox: 

read(5, "# /etc/fstab: static file system"..., 4096) = 806
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0xb781b000, 4096)                = 0
stat64("/dev/cdrom", 0xbfc6030c)        = -1 ENOENT (No such file or directory)
stat64("/dev/hda", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 0), ...}) = 0
open("/dev/hda", O_RDONLY|O_NONBLOCK

And stays there. And gets you an un-killable process hanging: 
root     27380  0.0  0.0   5124   664 ?        D    Dec10   0:00 udisks-daemon: polling /dev/hda

Proposed Fix: Add an environment variable: 

It should not eb a problem to put something like this into 
SDL_SYS_CDInit(void) of src/cdrom/linux/SDL_syscdrom.c,
making it at least possible for those affected to completely
turn off cdrom-detection without recompiling. 

SDLcdromNone = SDL_getenv("SDL_CDROM_NONE");
if ( SDLcdromNone != NULL ) {
    return(-1);
}


-- System Information:
Debian Release: 6.0
  APT prefers unstable
  APT policy: (700, 'unstable'), (500, 'experimental'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.36.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.ISO-8859-1, LC_CTYPE=en_GB.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash




Information forwarded to debian-bugs-dist@lists.debian.org, Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>:
Bug#607304; Package libsdl1.2. (Thu, 23 Dec 2010 23:30:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julien Cristau <jcristau@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>. (Thu, 23 Dec 2010 23:30:08 GMT) Full text and rfc822 format available.

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

From: Julien Cristau <jcristau@debian.org>
To: Peter Keel <bugzilla@discordia.ch>, 607304@bugs.debian.org
Subject: Re: Bug#607304: dosbox: locks up because SDL tries to access cdrom
Date: Fri, 24 Dec 2010 00:28:34 +0100
[Message part 1 (text/plain, inline)]
severity 607304 important
kthxbye

On Thu, Dec 16, 2010 at 21:17:57 +0100, Peter Keel wrote:

> Package: libsdl1.2
> Severity: grave
> Tags: upstream
> Justification: renders package unusable
> 
I don't think the severity is justified, downgrading.

Cheers,
Julien
[signature.asc (application/pgp-signature, inline)]

Severity set to 'important' from 'grave' Request was from Julien Cristau <jcristau@debian.org> to control@bugs.debian.org. (Thu, 23 Dec 2010 23:54:05 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>:
Bug#607304; Package libsdl1.2. (Sun, 04 Mar 2012 18:24:08 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>. (Sun, 04 Mar 2012 18:24:08 GMT) Full text and rfc822 format available.

Message #17 received at 607304@bugs.debian.org (full text, mbox):

From: "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com>
To: 487811@bugs.debian.org, 487811-submitter@bugs.debian.org, 607304@bugs.debian.org, 607304-submitter@bugs.debian.org
Subject: Re: dosbox: locks up because SDL tries to access cdrom
Date: Sun, 4 Mar 2012 18:20:16 +0000
tags 607304 + moreinfo
stop

(For the dosbox maintainer, I think that #487811 can be closed, I will
do it myself if SDL's #607304 is closed as well)

Hello,

Thank you for your interest in improving Debian, and sorry to keep the
bug unattended for so long.  There's now an effort to review the open
bugs related with SDL packages.

In line ~282 of the .c file mentioned there's the following:
  /* Look in the environment for our CD-ROM drive list */
  SDLcdrom = SDL_getenv("SDL_CDROM");     /* ':' separated list of devices */

It then proceeds to try to open each CDROM in turn.

So for those with the faulty driver, could you please try to set the
environment variable with SDL_CDROM="/dev/null" or any other
non-existing path to see if this fixes the problem?

If this fixes it, I think that introducing another piece of code is unnecessary.


Regards.




Added tag(s) moreinfo. Request was from "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> to control@bugs.debian.org. (Sun, 04 Mar 2012 18:24:12 GMT) Full text and rfc822 format available.

Message sent on to Peter Keel <bugzilla@discordia.ch>:
Bug#607304. (Sun, 04 Mar 2012 18:24:17 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>:
Bug#607304; Package libsdl1.2. (Sun, 04 Mar 2012 22:39:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>. (Sun, 04 Mar 2012 22:39:05 GMT) Full text and rfc822 format available.

Message #27 received at 607304@bugs.debian.org (full text, mbox):

From: "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com>
To: 607304@bugs.debian.org
Subject: Re: dosbox: locks up because SDL tries to access cdrom
Date: Sun, 4 Mar 2012 22:34:31 +0000
forwarded 607304 http://bugzilla.libsdl.org/show_bug.cgi?id=1439
stop

Hello,

For good measure, I forwarded the bug report to upstream for them to
take a look and tell what do they think about the suggested fix, or
incorporate the patch.

Regards.




Set Bug forwarded-to-address to 'http://bugzilla.libsdl.org/show_bug.cgi?id=1439'. Request was from "Manuel A. Fernandez Montecelo" <manuel.montezelo@gmail.com> to control@bugs.debian.org. (Sun, 04 Mar 2012 22:39:09 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 16:21:10 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.