Skip to content
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

VIEW.COM crashes under Nextor #29

Closed
gdx-msx opened this issue Mar 1, 2019 · 1 comment
Closed

VIEW.COM crashes under Nextor #29

gdx-msx opened this issue Mar 1, 2019 · 1 comment

Comments

@gdx-msx
Copy link

gdx-msx commented Mar 1, 2019

The system crashes when I use VIEW.COM under Nextor 2.10 beta. Tested on emulator and real FS-A1ST and Sunrise with driver v0.17.
https://www.msx.org/downloads/viewcom

@grauw
Copy link

grauw commented Jun 24, 2024

I think I ran into this issue today, using MegaFlashROM SCC+ SD on Nextor 2.1.0 alpha 2.

When I write to file handle 1 (stdout) 255 times it crashes the system.

Specifically, I think this was because change ff73d24 (June 3, 2014; 2.1.0 alpha 1b) introduced a call to rdwr_device and then jumps to RDWR_END, however this rdwr_device routine ends by jumping to rdwr_dev_done which also passes by RDWR_END. As a result the RW_LEVEL## counter underflows and after 255 iterations executes the pops even though nothing was pushed. A short while later this causes all pages to be set to slot 0 and the system crashes. This change was undone here in 6ecd074 (Feb 11, 2019; 2.1.0 beta 2).

Unfortunately, I just updated my MegaFlashROM SCC+ SD to the latest firmware and it’s still using Nextor 2.1.0 alpha 2. Guess I’ll use _CONOUT to print my strings instead of writing to the standard output file handle 🙁.

Just posting my findings here for posterity; no action required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants