-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
alpha waves crashes DN on exit #115
Comments
Can't reproduce the "doesn't start with freecom" |
I am not sure 9c4a468 was correct. |
Broken again. |
Looked up in DR-DOS sources that function 26h actually makes the copy of JFT but does not increment refcounts in SFT. This makes us further but unfortunately Alpha Waves hangs on exit even under DR-DOS itself. To partially avoid the problem I increment the refcount of stdio fds.
This is mostly "fixed" with |
Things are getting weirder. |
No longer crashes since we route And is completely "fixed" with this:
Very strange... |
Seems fixed... |
Mm, it should probably be set to CS. |
I tested this on MS-DOS 7.10, and it initialises the process being created from the user CS:0. The parent field is not written after this by function 26h so if CS = PSP you will get the same parent as the CS PSP has. You can read this in the free software MS-DOS v2 sources at https://github.com/microsoft/MS-DOS/blob/04a3d20ff411409ab98474892b2bb1713bde0f7f/v2.0/source/MISC.ASM#L541 The branch to Here's a photo of the debugger dumping a created PSP. I made sure to fill the CS:0 area with CCh bytes before running function 26h: |
Thanks! |
As for PHT - fdpp dups only stdio fds |
No, function 55h explicitly copies the MS-DOS v2 style "current process", you can see that in https://github.com/microsoft/MS-DOS/blob/04a3d20ff411409ab98474892b2bb1713bde0f7f/v2.0/source/MISC.ASM#L534
|
Do you mean you're dupping only handles 0 to 4? I'd expect it to dup the first 20 handles. |
0 to 2 currently. |
Ah yeah, Line 264 in f2962db
|
I would appreciate if you debug this |
It only starts fine with comcom32
(but crashes on exit).
I think freecom does something with psp
that freedos does not recover. The last
executed function is 0x50.
Needs to compare psps after starting
from these command.coms.
The text was updated successfully, but these errors were encountered: