Post Reply 
Free42, DM42 - hard crash
04-01-2023, 06:40 AM
Post: #1
Free42, DM42 - hard crash
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
Find all posts by this user
Quote this message in a reply
04-02-2023, 05:43 AM (This post was last modified: 04-02-2023 05:48 AM by Gjermund Skailand.)
Post: #2
RE: Free42, DM42 - hard crash
I forgot to ask, is there anyone else who can test or verify this?
Find all posts by this user
Quote this message in a reply
04-02-2023, 08:42 PM
Post: #3
RE: Free42, DM42 - hard crash
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.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
04-03-2023, 11:35 AM
Post: #4
RE: Free42, DM42 - hard crash
Same a Rob with Free42 3.0.18 on iOS...
"Invalid Data" when executing Crash from the catalog, but no crash.
Find all posts by this user
Quote this message in a reply
04-05-2023, 06:59 AM
Post: #5
RE: Free42, DM42 - hard crash
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
Find all posts by this user
Quote this message in a reply
04-06-2023, 12:18 AM
Post: #6
RE: Free42, DM42 - hard crash
It seems fixed in Free42 3.0.19 / Plus42 1.0.17.
Find all posts by this user
Quote this message in a reply
04-06-2023, 06:46 PM
Post: #7
RE: Free42, DM42 - hard crash
Yes, Thomas works fast and doesn't like loose ends.Smile
brgds Gjermund
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)