Reproducible crash on version 3.21/3.0.9a

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
camille
Posts: 2
Joined: Wed Aug 31, 2022 3:55 am

Re: Reproducible crash on version 3.21/3.0.9a

Post by camille »

Thank you all for investigating and finding the root cause!
Thomas Okken
Posts: 1101
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Reproducible crash on version 3.21/3.0.9a

Post by Thomas Okken »

User avatar
ijabbott
Posts: 253
Joined: Fri Dec 15, 2017 2:34 pm
Location: GB-MAN

Re: Reproducible crash on version 3.21/3.0.9a

Post by ijabbott »

Calambres wrote:
Sun Sep 04, 2022 5:52 pm
rudi wrote:
Sun Sep 04, 2022 3:47 pm
It also closes (crash?) the Free42 on iPhone - but not the Plus42.
Ditto on Android and windows.
My 64-bit ARM Android phone doesn't seem to crash, but SHOW doesn't show the number properly. It doesn't show the ellipsis to indicate that not all digits all shown. So I see:

Code: Select all

-5.8739890465303386856
-i2.479595312344020709
instead of

Code: Select all

-5.873989046530338…ᴇ24
-i2.47959531234402…ᴇ24
(Of course, it is possible that the calculator state is actually being corrupted by some buffer overflow but is not manifesting in a visible way.)
Thomas Okken
Posts: 1101
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Reproducible crash on version 3.21/3.0.9a

Post by Thomas Okken »

Exactly. The code that is supposed to position that ellipse and the following exponent has a bug that causes those elements to be written outside the buffer in certain cases, and that causes the memory corruption which then leads to the crash shortly after.
Thomas_ER
Posts: 192
Joined: Mon Jul 24, 2017 3:19 pm
Location: Germany

Re: Reproducible crash on version 3.21/3.0.9a

Post by Thomas_ER »

Thomas Okken wrote:
Mon Sep 05, 2022 7:00 pm
I uploaded test builds with the SHOW fix (Windows only):

https://thomasokken.com/free42/download/test/
https://thomasokken.com/plus42/download/test/
I've tested the free42 version, problem seems to be solved.
many thanks for the fast answer.
[ HP48/49/50/42S/WP34/HP Prime/ DM42 (#00185+00318) ]
User avatar
PierreMengisen
Posts: 305
Joined: Wed Nov 29, 2017 1:38 pm
Location: Neuchâtel CH

Re: Reproducible crash on version 3.21/3.0.9a

Post by PierreMengisen »

Thomas has fixed the problem on Free42 and Plus42.
I think it's time to fix these unfortunate resets on DM42.
Thanks
Pierre
[TI59 with PC100C; TI-84 Plus CE-T; HP41CV with HP IL loop & 2*82161A DCD & 82162 TP; HP15C; HP28S; DM41; DM41L; DM42; DM41X]
User avatar
rudi
Posts: 415
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: Reproducible crash on version 3.21/3.0.9a

Post by rudi »

It is also fixed on the DM42 with DM42-3.22 / free42 v3.0.15b
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
Post Reply