HP Forums
Free42, DM42 - hard crash - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Free42, DM42 - hard crash (/thread-19752.html)



Free42, DM42 - hard crash - Gjermund Skailand - 04-01-2023 06:40 AM

It seems I have found a serious bug, I cannot find that this has been reported.
Would someone dare to confirm the below?
If you want to test this, note that it causes a hard crash and you will loose memory as it resets to last saved state
on a fresh state (or not if you don't care):
Enable Dynamic Stack extension (NSTK),
set the calculator in NSTK mode

write the small program
00 { 17- Byte Prgm }
01 LBL "Crash"
02 FUNC 11
03 L4STK
04 RTNERR 5
05 .END.

Free42 crashes
DM 42 result in a Hard Fault, upon EXIT resets to old saved state

My versions:
Free42 on Samsung phone: 3.0.18
DM42: DMCP v 3.24 (IFC 03.15) BASE , DM42 v3.22 Free42 3.0.15

Which is kind of ironic, since the above is to safeguard for bad data Smile
Best regards Gjermund


RE: Free42, DM42 - hard crash - Gjermund Skailand - 04-02-2023 05:43 AM

I forgot to ask, is there anyone else who can test or verify this?


RE: Free42, DM42 - hard crash - rprosperi - 04-02-2023 08:42 PM

It does not crash on Windows, Ver 3.0.18.

When I invoke via XEQ "Crash", I get "Invalid Data" but the program does not crash, no loss of programs, etc.


RE: Free42, DM42 - hard crash - olivil - 04-03-2023 11:35 AM

Same a Rob with Free42 3.0.18 on iOS...
"Invalid Data" when executing Crash from the catalog, but no crash.


RE: Free42, DM42 - hard crash - Gjermund Skailand - 04-05-2023 06:59 AM

It takes a bit setup, as it only triggers under special cirumstances.
Include this small program to the other one:

Allow big stack

00 { 23-Byte Prgm }
01 LBL "GoCrash"
02 NSTK
03 CLSTK
04 2
05 XEQ "Crash"
06 END

00 { 17 Byte Prgm }
01 LBL "Crash"
02 FUNC 11
03 L4STK
04 RTNERR 5
05 END

XEQ "GoCrash"

brgds Gjermund


RE: Free42, DM42 - hard crash - johanw - 04-06-2023 12:18 AM

It seems fixed in Free42 3.0.19 / Plus42 1.0.17.


RE: Free42, DM42 - hard crash - Gjermund Skailand - 04-06-2023 06:46 PM

Yes, Thomas works fast and doesn't like loose ends.Smile
brgds Gjermund