-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dosemu2 legacy hang with ubuntu 18.04 kernel 4.15.0-136 #1404
Comments
Does $_cpu_vm="emulated" fixes it? |
With the settings Here is the log with -De |
Please fill another ticket with a test-case As for the hang - please attach the |
freezing log with -D9+gQDdi# |
OK, what I see is that it goes to KVM and In a mean time, dosemu's KVM impl is |
kernel 5.x is fine, we have some computers with it at work. kernel 4.15 also is usually fine. It only happens to Feb 25,2021 update I guess one of the patches here:https://ubuntu.com/security/notices/USN-4749-1 is the cause. Some of them are related with the VM thing |
In this case please fill that to ubuntu.
They only seem to mention xen. |
Just reported the bug to ubuntu: |
I also am experiencing this since yesterday on various 16.04. LTS systems, I added onto that report. Thanks for finding @bpranoto! |
@haenschen , you're welcome, franky I am pessimistic it will get attention from the ubuntu developers.. |
In #1408 I reworked the kvm code. |
It also failed. It comes up, show up initial screen, then freezed Besides that, I notice that the setting $_X_font = "vga11x19" was ignored. On second try, it ran better, the autoexec is executed but then it freezed again. Here is the screenshot on second try: The boot.log for the 2nd run is too big 92.5 MB, so I zip it. |
Sorry, the 2nd screenshot was not captured correctly, I ran again, but it ran like the first time. |
There is no evidence in the log that |
I think you cheated. |
Oh, I am sorry, I see that #1408 is a pull request. I didn't pay attention to the number 14.08 yesterday. And I don't know how to download a pull request. Besides that, I no longer can compile dosemu in my laptop due to the udev library version of ubuntu 18.04 doesn't meet the minimal requirement to compile. |
Ok, I'll try to figure it out tonight in my time. Now, I have to do my
daily job.
|
Try |
There is error on make deb:
Here is what I did from my bash history, I started from a fresh git clone
Did I miss some step? |
See this: |
Unfortunately, I don't have kernel v5 right now. Sadly, this means there is nothing we can do with the 4.15.0-136 problem... :( |
Perhaps precisely finding the first |
Quite the opposite, this means we can |
Did you mean there will be no kvm support for kernel 4.15? kvm works perfectly with 4.15.0-135, only the 4.15.0-136 gives the problem.. |
50Mb diff, no way.
Well, I can of course not port that change |
It works with 4.15.0.-133 for sure |
You need to find where it works, with |
-136 is the ubuntu's latest security fix to the 4.15.0 kernel, see https://packages.ubuntu.com/bionic/main/linux-image-4.15.0-136-generic there is currently no -137 or above. |
Do they (canonical) have a git repo where the one |
I don't know of one. I did look at the source package it has the diffs between -136 and vanilla 4.15.0 and I guess that's the 50mb you mentioned earlier. The changelog mentions a couple of x86 related kvm changes that occurred in -136 http://changelogs.ubuntu.com/changelogs/pool/main/l/linux/linux_4.15.0-136.140/changelog |
Indeed, Canonical has git repos for all kernels! A good first step would be go to the generic git index and search there: For this specific release (Bionic / 18.04), the git repository is: git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic Anyway, this was just informative - the kernel debug should continue in the Launchpad, it is better exposed to community, and in the end, it seems a kernel issue (I'm preparing a test package, I think I know what's going on). Guilherme |
That sounds great! Thanks! |
I am very happy, I just tried the special 4.15.0-137 Guilherme prepared for us. It works perfectly! :) Can we close this report now? |
I think Guilherme would prefer if you write Thanks! |
I already did. |
Ok, the mails from LP seems to be not that |
Thanks bpranoto and stsp! Regarding GitHub, you can indeed close, it's up to you - I appreciate that this is reported here, people can find that in a web search plus the Launchpad. |
@guilhermepiccoli Thanks for your work Now you kinda ruined my plan to drop kvm If you do that, then we can keep supporting kvm |
@rkrcmar What do you think about porting |
My apologies for having fixed the Ubuntu kernel; if I had known it would affect the decision Jokes aside, I understand your problem, but I'm afraid the commit you mentioned So, how about if you perform a check in dosemu2 code, and if the commit is present you might If you really want to try getting this patch on Ubuntu kernels, I'd suggest opening a Launchpad bug Cheers, Guilherme |
Yes, its not a fix at all.
This would be quite difficult, as the new
But its already there. I would rather think that HWE kernels is |
No special reason, it just because I didn't realize that it exists. For the current version which I use, as long as it works, I am never bothered to modify my configuration. A little background why I use dosemu, please skip if you are not interested. I use dosemu to keep my old accounting programs. The program resides in Netware Server, at this moment the only practical way to access Netware for a dos program is only dosemu. Even microsoft dropped ipx and netware support since Windows 7. On Linux, ipx and ncpfs kernel modules also have been dropped since kernel 4.18 iirc, I had difficult time when we needed to set up a new computer with Ubuntu 20.04 because of it, our dosemu program can not access the netware server because the ipx and ncpfs kernel modules were dropped. Fortunately, there are people who provide ipx and ncpfs installable kernel modules. In case any body interested, here are the links:
So it is okay for me to use the newer kernel modules. As for the existing old office computers which use dosemu, I can simply version freeze their kernel and dosemu version. I have been rewriting my software using modern GUI interface ( fpc+lazarus) and linux as the server. However, it is still far from complete as my good old dos applications are very wide and complicated, because they are not just only accounting programs but more ERP which used for daily operations and still developing if some necessities arise (change of tax regulation, workflow, etc). Thank you very much for keeping dosemu evolves. It is very valuable to me. |
If you really need an in-kernel ipx, and |
I use the ipx built in support + vlm. And I just realized that some months ago (not 3 years ago) |
So use ipxodi? |
The problem is because I never thought of ipxodi until you mention. Besides that, with the help of https://github.com/pasis/ipx it's not a problem any more.... |
Take a look in the diff on linux-stable, like from v4.14 to latest tag in 4.14.y hehe
Oh yeah, I just checked quickly and didn't notice it's an old improvement. So, HWE seems a perfect solution. You could resort to uname() syscall and allow KVM mode only if kernel version 4.17+, and also, if you package dosemu2 in Debian format (for Debian/Ubuntu consumption) you could do package checks about the kernel version. |
Yes but I am pretty sure its back-ports,
Do you suggest me to add it to Depends or |
Take a look in this document: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
I guess it's "cheap" just to add a check on code based on uname() - disallow/block the KVM mode if |
Yes, this one is pretty clear.
Yes, the check is of course there.
We also support fedora, but it doesn't |
As @andrewbird noted, Build-Depending on |
Describe the bug
I think it is not dosemu2 bug, but I think it's better to report here
After kernel upgrade to 4.15.0-136, dosemu2-legacy hang
Ubuntu 18.04 64bits, it also happens on ubuntu 16.04 using the same kernel version
Run fine after downgrade to kernel previous version 4.15.0-135
To Reproduce
If you use ubuntu with kernel version 4.15, upgrade to latest kernel at this time (4.15.0-136).
Run dosemu2, dosemu2 appears but hang afterward.
boot.log looks normal.
Attach the log
It is located in ~/.dosemu/boot.log
To make the log more useful, you may need to enable some logging flags.
See description of -D option in
man dosemu.bin
.A regression?
No.
boot.log
The text was updated successfully, but these errors were encountered: