Bug#607304: dosbox: locks up because SDL tries to access cdrom

Peter Keel bugzilla at discordia.ch
Thu Dec 16 20:17:57 UTC 2010


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





More information about the Pkg-sdl-maintainers mailing list