Debian Bug report logs - #487811
dosbox: often locks up at start under kernel 2.6.26-rc7

version graph

Package: dosbox; Maintainer for dosbox is Jan Dittberner <jandd@debian.org>; Source for dosbox is src:dosbox.

Reported by: Arthur Marsh <arthur.marsh@internode.on.net>

Date: Tue, 24 Jun 2008 09:28:09 UTC

Severity: normal

Found in version dosbox/0.72-1.1

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, Peter Veenstra <spiru@fmf.nl>:
Bug#487811; Package dosbox. Full text and rfc822 format available.

Acknowledgement sent to Arthur Marsh <arthur.marsh@internode.on.net>:
New Bug report received and forwarded. Copy sent to Peter Veenstra <spiru@fmf.nl>. Full text and rfc822 format available.

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

From: Arthur Marsh <arthur.marsh@internode.on.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dosbox: often locks up at start under kernel 2.6.26-rc7
Date: Tue, 24 Jun 2008 18:55:14 +0930
Package: dosbox
Version: 0.72-1.1
Severity: normal


I've had trouble starting dosbox under kernel 2.6.26-rc7. Under gdb, I 
get:

$ gdb dosbox
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show 
copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
(gdb) run
Starting program: /usr/bin/dosbox
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
DOSBox version 0.72
Copyright 2002-2007 DOSBox Team, published under GNU GPL.
---
[New Thread 0xb8098720 (LWP 4802)]
Couldn't read floating-point and SSE registers: No such device.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) bt
#0  0x4100e6e1 in _dl_debug_state () from /lib/ld-linux.so.2
#1  0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

No dosbox window appears.

If I start dosbox from a command prompt I get:

$ dosbox
DOSBox version 0.72
Copyright 2002-2007 DOSBox Team, published under GNU GPL.
---
 
then a lockup that cannot be broken out of by control-c or attempting to 
kill the process with signals HUP, TERM or -9. I have to restart the 
computer to clear away the process.

Arthur.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-rc7 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dosbox depends on:
ii  libasound2             1.0.16-2          ALSA library
ii  libc6                  2.7-12            GNU C Library: Shared libraries
ii  libgcc1                1:4.3.1-2         GCC support library
ii  libgl1-mesa-glx [libgl 7.0.3-4           A free implementation of the OpenG
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libsdl-net1.2          1.2.7-2           network library for Simple DirectM
ii  libsdl-sound1.2        1.0.3-1           Decoder of several sound file form
ii  libsdl1.2debian        1.2.13-2          Simple DirectMedia Layer
ii  libstdc++6             4.3.1-2           The GNU Standard C++ Library v3
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

dosbox recommends no packages.

-- debconf-show failed




Information forwarded to debian-bugs-dist@lists.debian.org, Peter Veenstra <spiru@fmf.nl>:
Bug#487811; Package dosbox. Full text and rfc822 format available.

Acknowledgement sent to Arthur Marsh <arthur.marsh@internode.on.net>:
Extra info received and forwarded to list. Copy sent to Peter Veenstra <spiru@fmf.nl>. Full text and rfc822 format available.

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

From: Arthur Marsh <arthur.marsh@internode.on.net>
To: 487811@bugs.debian.org
Subject: Re: Bug#487811: Acknowledgement (dosbox: often locks up at start under kernel 2.6.26-rc7)
Date: Tue, 24 Jun 2008 21:40:29 +0930
This error was apparently due to a faulty cd-rw drive:

Jun 24 19:04:00 victoria kernel: [ 3021.510657] INFO: task dosbox:5436 
blocked for more than 120 seconds.
Jun 24 19:04:00 victoria kernel: [ 3021.510702] "echo 0 > 
/proc/sys/kernel/hung_task_timeout_secs" disables this message.
Jun 24 19:04:00 victoria kernel: [ 3021.510727] dosbox        D d3968005 
    0  5436      1
Jun 24 19:04:00 victoria kernel: [ 3021.510757]        c9dc9b00 00200086 
00edd000 d3968005 c03a9fd4 c03aca80 c03aca80 c61181c0
Jun 24 19:04:00 victoria kernel: [ 3021.510815]        c611834c c1289a80 
00000000 d23d1e20 c0182cd3 00000000 c611834c 00076e10
Jun 24 19:04:00 victoria kernel: [ 3021.510870]        d3a59f14 c017c358 
d396800a d21e22c4 c01df239 00000001 00000000 00000000
Jun 24 19:04:00 victoria kernel: [ 3021.510925] Call Trace:
Jun 24 19:04:00 victoria kernel: [ 3021.511046]  [<c0182cd3>] dput+0x16/0xdc
Jun 24 19:04:00 victoria kernel: [ 3021.511110]  [<c017c358>] 
__link_path_walk+0xb6d/0xca7
Jun 24 19:04:00 victoria kernel: [ 3021.511170]  [<c01df239>] 
kobject_get+0xf/0x13
Jun 24 19:04:00 victoria kernel: [ 3021.511254]  [<c02bbda0>] 
__mutex_lock_slowpath+0x52/0x81
Jun 24 19:04:00 victoria kernel: [ 3021.511335]  [<c02bbc69>] 
mutex_lock+0xa/0xb
Jun 24 19:04:00 victoria kernel: [ 3021.511364]  [<c01955ac>] 
do_open+0x7c/0x26a
Jun 24 19:04:00 victoria kernel: [ 3021.511440]  [<c01957bf>] 
blkdev_open+0x25/0x4d
Jun 24 19:04:00 victoria kernel: [ 3021.511484]  [<c01727ed>] 
__dentry_open+0x146/0x235
Jun 24 19:04:00 victoria kernel: [ 3021.511562]  [<c0172959>] 
nameidata_to_filp+0x1c/0x2c
Jun 24 19:04:00 victoria kernel: [ 3021.511602]  [<c019579a>] 
blkdev_open+0x0/0x4d
Jun 24 19:04:00 victoria kernel: [ 3021.511640]  [<c017d76d>] 
do_filp_open+0x373/0x73a
Jun 24 19:04:00 victoria kernel: [ 3021.511814]  [<c02bcdcb>] 
_spin_unlock+0xc/0x1f
Jun 24 19:04:00 victoria kernel: [ 3021.511852]  [<c0172586>] 
get_unused_fd_flags+0xb8/0xc2
Jun 24 19:04:00 victoria kernel: [ 3021.511919]  [<c01725cd>] 
do_sys_open+0x3d/0xb1
Jun 24 19:04:00 victoria kernel: [ 3021.511980]  [<c0172685>] 
sys_open+0x1e/0x23
Jun 24 19:04:00 victoria kernel: [ 3021.512031]  [<c01038f5>] 
sysenter_past_esp+0x6a/0x91
Jun 24 19:04:00 victoria kernel: [ 3021.512153]  =======================




Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#487811; Package dosbox. Full text and rfc822 format available.

Acknowledgement sent to Peter Veenstra <spiru@fmf.nl>:
Extra info received and forwarded to list. Full text and rfc822 format available.

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

From: Peter Veenstra <spiru@fmf.nl>
To: Arthur Marsh <arthur.marsh@internode.on.net>, 487811@bugs.debian.org
Subject: Re: Bug#487811: Acknowledgement (dosbox: often locks up at start under kernel 2.6.26-rc7)
Date: Fri, 4 Jul 2008 22:32:11 +0200 (CEST)
That is odd.
I didn't know dosbox accessed the cdrom on startup, must be sdl init doing 
that.

Do you consider this a dosbox bug or shall I close it ?

Peter





Information forwarded to debian-bugs-dist@lists.debian.org, Peter Veenstra <spiru@fmf.nl>:
Bug#487811; Package dosbox. Full text and rfc822 format available.

Acknowledgement sent to Arthur Marsh <arthur.marsh@internode.on.net>:
Extra info received and forwarded to list. Copy sent to Peter Veenstra <spiru@fmf.nl>. Full text and rfc822 format available.

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

From: Arthur Marsh <arthur.marsh@internode.on.net>
To: Peter Veenstra <spiru@fmf.nl>
Cc: 487811@bugs.debian.org
Subject: Re: Bug#487811: Acknowledgement (dosbox: often locks up at start under kernel 2.6.26-rc7)
Date: Sat, 05 Jul 2008 11:12:29 +0930

Peter Veenstra wrote, on 05/07/08 06:02:
> That is odd.
> I didn't know dosbox accessed the cdrom on startup, must be sdl init 
> doing that.
> 
> Do you consider this a dosbox bug or shall I close it ?
> 
> Peter
> 
> 

Hi, somewhere the access of the cd drive on start-up should be 
documented. If the cd drive access is done by sdl init, then shouldn't 
dosbox be able to direct the sdl init to either use the cd drive or 
ignore it? There may be situations where dosbox needs to have the cd 
drive "hidden" from it, so that other processes can use the cd drive.

Regards,

Arthur.




Information forwarded to debian-bugs-dist@lists.debian.org, Jan Dittberner <jandd@debian.org>:
Bug#487811; Package dosbox. (Fri, 29 Oct 2010 18:42:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Keel <bugzilla@discordia.ch>:
Extra info received and forwarded to list. Copy sent to Jan Dittberner <jandd@debian.org>. (Fri, 29 Oct 2010 18:42:06 GMT) Full text and rfc822 format available.

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

From: Peter Keel <bugzilla@discordia.ch>
To: 487811@bugs.debian.org
Cc: pkg-sdl-maintainers@lists.alioth.debian.org
Subject: Bug still exists
Date: Fri, 29 Oct 2010 20:32:51 +0200
Hello

Yes, bug 487811 afflicts me too, it's not really kernel-dependant.
It's absolutely impossible to use dosbox with that:

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

Needless to say, this never stops, dosbox never starts. 

I would recommend to move it over to 
http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=libsdl1.2
and mark it "grave". 

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);
	}

(yes, and I'd hate to need to recompile myself, the bloody piece
wants me to install libarts1-dev which will deinstall jack2 and
install all kinds of outdated bogus, including qt3-dev)

Regards
Peter
-- 
"Those who give up essential liberties for temporary safety deserve 
neither liberty nor safety." -- Benjamin Franklin
"It's also true that those who would give up privacy for security are 
likely to end up with neither." -- Bruce Schneier




Information forwarded to debian-bugs-dist@lists.debian.org, Jan Dittberner <jandd@debian.org>:
Bug#487811; Package dosbox. (Sun, 04 Mar 2012 18:24:06 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 Jan Dittberner <jandd@debian.org>. (Sun, 04 Mar 2012 18:24:06 GMT) Full text and rfc822 format available.

Message #30 received at 487811@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.




Message sent on to Arthur Marsh <arthur.marsh@internode.on.net>:
Bug#487811. (Sun, 04 Mar 2012 18:24:15 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: Mon Apr 21 06:21:04 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.