[GH-ISSUE #253] [Calculation] Crash when opening additional results #102

Closed
opened 2026-05-06 13:15:26 +02:00 by BreizhHardware · 2 comments

Originally created by @lolocomotive on GitHub (Jun 16, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/253

The (linux) simulator crashes when you open the additional results panel when making a trigonometry calculation.

To Reproduce

  • Go to calculations
  • type cos(0)
  • open additional results
  • Crash

Works fine on the calculator tho...

Crashes since c826e556a1

ion/src/shared/storage.cpp:64

const Record metadataRecord = recordBaseNamedWithExtension(record.fullName(), "sys");

which calls ion/src/shared/internal_storage.cpp:603

size_t nameLength = baseNameLength < 0 ? strlen(baseName) : baseNameLength;

which makes a segfault

Originally created by @lolocomotive on GitHub (Jun 16, 2022). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/253 The (linux) simulator crashes when you open the additional results panel when making a trigonometry calculation. **To Reproduce** - Go to calculations - type cos(0) - open additional results - Crash Works fine on the calculator tho... Crashes since c826e556a12deb89e33a121102ae55cd40a0b907 ion/src/shared/storage.cpp:64 ```cpp const Record metadataRecord = recordBaseNamedWithExtension(record.fullName(), "sys"); ``` which calls ion/src/shared/internal_storage.cpp:603 ```cpp size_t nameLength = baseNameLength < 0 ? strlen(baseName) : baseNameLength; ``` which makes a segfault
BreizhHardware 2026-05-06 13:15:26 +02:00
  • closed this issue
  • added the
    fixed
    label
Author
Owner

@Yaya-Cout commented on GitHub (Jun 16, 2022):

baseName is a pointer to 0x0 if I remember correctly. It's the strlen a call that crash on this line.

<!-- gh-comment-id:1157731841 --> @Yaya-Cout commented on GitHub (Jun 16, 2022): `baseName` is a pointer to `0x0` if I remember correctly. It's the `strlen` a call that crash on this line.
Author
Owner

@Lauryy06 commented on GitHub (Jun 18, 2022):

It's supposed to be solved by 125e1a8a82.

<!-- gh-comment-id:1159558058 --> @Lauryy06 commented on GitHub (Jun 18, 2022): It's supposed to be solved by 125e1a8a82dcd05a9ef8b93117a37c68cf044e63.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#102
No description provided.