Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Alberto Garcia-2
Package: dosbox
Version: 0.74-4.2+b2
Severity: normal

Hi,

DOSBox crashes when the emulated CPU is running in dynamic mode with
the following error message:

   Exit to error: DRC64:Unhandled memory reference

This can be easily reproduce by setting core=dynamic in the config
file (then DOSBox crashes immediately on startup), or with the default
core=auto setting (then DOSBox crashes with programs that run in
protected mode).

This seems to have been fixed upstream, but it can also be worked
around by forcing core=simple or core=normal.

Here's the upstream bug report:

   https://sourceforge.net/p/dosbox/bugs/413/

Here's the bug report in Launchpad:

   https://bugs.launchpad.net/ubuntu/+source/dosbox/+bug/1569438

Regards,

Berto

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dosbox depends on:
ii  libasound2                1.1.3-5
ii  libc6                     2.24-9
ii  libgcc1                   1:6.3.0-6
ii  libgl1-mesa-glx [libgl1]  13.0.4-1
ii  libpng16-16               1.6.28-1
ii  libsdl-net1.2             1.2.8-4
ii  libsdl-sound1.2           1.0.3-7+b1
ii  libsdl1.2debian           1.2.15+dfsg1-4
ii  libstdc++6                6.3.0-6
ii  libx11-6                  2:1.6.4-3
ii  zlib1g                    1:1.2.8.dfsg-5

dosbox recommends no packages.

dosbox suggests no packages.

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

simon.belmont
Hi,

happened also here.
Unfortunately, Dosbox is almost unusable without core=dynamic.

Debian Stretch
Kernel 4.9.0-3-amd64
Intel(R) Core(TM)2 Duo CPU T7500  @ 2.20GHz

Thanks
Simon

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

snfk
In reply to this post by Alberto Garcia-2
Hello. This also appears in unstable.
Downgrading dosbox to jessie's version 0.74-4 resolves the issue.
Linux version 4.9.0-3-amd64
AMD Phenom(tm) II X4 965 Processor

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Alberto Garcia-2
In reply to this post by Alberto Garcia-2
Control: tags 857341 patch upstream fixed-upstream

Hi,

I had a bit of time to take a look at this. Altough people are
reporting that the dosbox package in jessie (0.74-4) doesn't have
this problem, what happens is not that later versions introduced a
regression, but it rather seems that the bug was already there but was
triggered by a gcc update.

This can be seen easily if you build the jessie package with a recent
gcc version: it still crashes. I think you would need to use gcc 4 to
make it work again.

Anyway, this has been fixed upstream a while ago already so we should
simply backport the solution. It's a problem in the 64bit dynamic
recompiler and the fix is in r3951:

   https://sourceforge.net/p/dosbox/code-0/3951/

However in order to apply that patch to the current Debian package you
also need to cherry pick r3674 and r3894.

Considering that those are all the changes to that recompiler up to
that point, and that after that there was only one more bug fix made
one year ago (r3990), I think it makes sense to include all those four
changes in the Debian package.

I have just tested it and everything seems to work fine again. I'm
attaching the debdiff so it can be uploaded to Debian.

Regards,

Berto

dosbox_0.74-4.2_0.74-4.3.debdiff (17K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Alberto Garcia-2
On Mon, Sep 25, 2017 at 10:26:05AM +0300, Alberto Garcia wrote:
> Anyway, this has been fixed upstream a while ago already so we should
> simply backport the solution. It's a problem in the 64bit dynamic
> recompiler and the fix is in r3951:
>
>    https://sourceforge.net/p/dosbox/code-0/3951/
>
> However in order to apply that patch to the current Debian package you
> also need to cherry pick r3674 and r3894.

Since the patch that I just uploaded includes r3674, it should also
fix bug #799586, which has been by the way open for two years with a
patch available.

I can handle the NMU if the maintainer (Jan Dittberner) is busy /
unavailable. Jan, are you reading this?

Berto

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Jan Dittberner-4
On Mon, Sep 25, 2017 at 11:14:17AM +0300, Alberto Garcia wrote:

> On Mon, Sep 25, 2017 at 10:26:05AM +0300, Alberto Garcia wrote:
> > Anyway, this has been fixed upstream a while ago already so we should
> > simply backport the solution. It's a problem in the 64bit dynamic
> > recompiler and the fix is in r3951:
> >
> >    https://sourceforge.net/p/dosbox/code-0/3951/
> >
> > However in order to apply that patch to the current Debian package you
> > also need to cherry pick r3674 and r3894.
>
> Since the patch that I just uploaded includes r3674, it should also
> fix bug #799586, which has been by the way open for two years with a
> patch available.
>
> I can handle the NMU if the maintainer (Jan Dittberner) is busy /
> unavailable. Jan, are you reading this?

Yes I read this, an NMU is welcome. I would also be happy if there would be
a new maintainer for dosbox because I use it very rarely these days and have
not much time to take care of the package.


Kind regards
Jan

--
Jan Dittberner - Debian Developer
GPG-key: 4096R/0xA73E0055558FB8DD 2009-05-10
         B2FF 1D95 CE8F 7A22 DF4C  F09B A73E 0055 558F B8DD
https://portfolio.debian.net/ - https://people.debian.org/~jandd/

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Alberto Garcia-2
On Mon, Sep 25, 2017 at 05:14:21PM +0200, Jan Dittberner wrote:

> > I can handle the NMU if the maintainer (Jan Dittberner) is busy /
> > unavailable. Jan, are you reading this?
>
> Yes I read this, an NMU is welcome. I would also be happy if there
> would be a new maintainer for dosbox because I use it very rarely
> these days and have not much time to take care of the package.

Hey, thanks for the reply. I don't think I can maintain the package
but I can take care of this NMU. Perhaps you would like to file an RFA
bug in order to look for a new maintainer?

Regards,

Berto

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Jens Reyer-3
On 09/25/2017 05:32 PM, Alberto Garcia wrote:

> On Mon, Sep 25, 2017 at 05:14:21PM +0200, Jan Dittberner wrote:
>
>>> I can handle the NMU if the maintainer (Jan Dittberner) is busy /
>>> unavailable. Jan, are you reading this?
>>
>> Yes I read this, an NMU is welcome. I would also be happy if there
>> would be a new maintainer for dosbox because I use it very rarely
>> these days and have not much time to take care of the package.
>
> Hey, thanks for the reply. I don't think I can maintain the package
> but I can take care of this NMU. Perhaps you would like to file an RFA
> bug in order to look for a new maintainer?

Personally I think it would be a good idea to do this within the
pkg-wine team.  Unfortunately we're not doing much teamwork there atm,
but maybe it's still helping e.g. Alberto to reconsider and take
maintainership.  I would at least try to help out then, too.  If anybody
is interested in going that route just subscribe and mail to
[hidden email].

Anyway, thank you all for your work!

Greets
jre (DM and wine co-maitainer)

Reply | Threaded
Open this post in threaded view
|

Bug#857341: dosbox: crashes with core=dynamic: DRC64:Unhandled memory reference

Alberto Garcia-2
On Mon, Sep 25, 2017 at 07:31:11PM +0200, Jens Reyer wrote:

> >> Yes I read this, an NMU is welcome. I would also be happy if
> >> there would be a new maintainer for dosbox because I use it very
> >> rarely these days and have not much time to take care of the
> >> package.
> >
> > Hey, thanks for the reply. I don't think I can maintain the
> > package but I can take care of this NMU. Perhaps you would like to
> > file an RFA bug in order to look for a new maintainer?
>
> Personally I think it would be a good idea to do this within the
> pkg-wine team.  Unfortunately we're not doing much teamwork there
> atm, but maybe it's still helping e.g. Alberto to reconsider and
> take maintainership.  I would at least try to help out then, too.
> If anybody is interested in going that route just subscribe and mail
> to [hidden email].

The upstream repository is relatively active, but there hasn't been an
official DOSBox release in 7 years and apart for a couple of bugs like
this one this program works just fine, so maintaining it shouldn't
take a lot of time.

However I don't really have much interest to maintain DOSBox at the
moment, but thanks anyway for considering me. I don't even use the
program that much, I was just annoyed by this particular bug and
wanted to fix it once and for all.

Anyway, I just updated the fixed package to DELAYED/5, it should hit
the repositories by the end of the week. I updated the changelog
message slightly, but otherwise the debdiff is the same I uploaded in
comment #35.

Berto