Skip to content

Conversation

@shamardy
Copy link
Collaborator

@shamardy shamardy commented Oct 3, 2025

malloc_size causes a segfault in Linux ref. GLEECBTC/gleec-wallet#3166 (comment)

I suspect this is because of using Jemalloc as the globall allocator in Linux
https://github.com/KomodoPlatform/komodo-defi-framework/blob/453b100238d154fba51da0f94cba967535af4056/mm2src/mm2_bin_lib/src/mm2_bin.rs#L9-L11 This results in parity-util-mem malloc_size path calling glibc’s __malloc_usable_size. Calling glibc’s usable_size on jemalloc pointers can intermittently segfault.

As a solution, memory db size metric is removed and parity-util-mem dependency as well.

@DeckerSU
Copy link

DeckerSU commented Oct 3, 2025

As I see, we opened a PR for merging into main. Do we already have a similar one for the dev branch? I periodically test builds for all platforms (not CI builds, but builds from our Jenkins pipeline), and it would be good if these changes were propagated to the dev branch as well.

@shamardy
Copy link
Collaborator Author

shamardy commented Oct 3, 2025

Do we already have a similar one for the dev branch?

Once any commit is merged straight to main I propagate it back to staging and dev.

@shamardy shamardy requested review from CharlVS and DeckerSU October 6, 2025 04:20
onur-ozkan
onur-ozkan previously approved these changes Oct 6, 2025
Copy link
Collaborator

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I recall correctly this also removes a vulnerable dependency.

LGTM

DeckerSU
DeckerSU previously approved these changes Oct 6, 2025
Copy link

@DeckerSU DeckerSU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned here - GLEECBTC/gleec-wallet#3169, LGTM.

@shamardy shamardy changed the base branch from main to staging October 7, 2025 02:50
@shamardy shamardy dismissed stale reviews from DeckerSU and onur-ozkan October 7, 2025 02:50

The base branch was changed.

@shamardy shamardy merged commit eef4226 into staging Oct 7, 2025
18 of 28 checks passed
@shamardy shamardy deleted the hotfix-remove-memorydb-size-metric branch October 7, 2025 02:56
shamardy added a commit that referenced this pull request Oct 7, 2025
…x-staging-to-dev

chore(release): propagate #2632 hotfix (staging→dev)
dimxy pushed a commit that referenced this pull request Oct 8, 2025
* dev:
  fix(TPU): correct dexfee in check balance to prevent swap failures (#2600)
  fix(tests): fix/remove kmd rewards failing test (#2633)
  chore(ci): bump CI container image to debian bullseye-slim to match dev (#2641)
  chore(release): add changelog entries for v2.5.2-beta (#2639)
  chore(release): bump mm2 version to 2.5.2-beta (#2638)
  feat(ci): add macos universal2 build (#2628)
  fix(metrics): remove memory_db size metric (#2632)
  chore(rust 1.90): make CI clippy/fmt pass
  Revert "fix(ordermatch): ignore loop-back; clear on null root; reject stale keep-alives (#2580)"
  Revert "fix(orderbook): validate roots before commit (#2605)"
dimxy pushed a commit that referenced this pull request Oct 9, 2025
* dev:
  fix(TPU): correct dexfee in check balance to prevent swap failures (#2600)
  fix(tests): fix/remove kmd rewards failing test (#2633)
  chore(ci): bump CI container image to debian bullseye-slim to match dev (#2641)
  chore(release): add changelog entries for v2.5.2-beta (#2639)
  chore(release): bump mm2 version to 2.5.2-beta (#2638)
  feat(ci): add macos universal2 build (#2628)
  fix(metrics): remove memory_db size metric (#2632)
  fix(zcoin): exact-anchor witnesses in wasm get_spendable_notes (#2629)
  fix(evm-swapv2): no mempool inclusion required for maker payment validation (#2618)
  chore(rust 1.90): make CI clippy/fmt pass
  Revert "fix(ordermatch): ignore loop-back; clear on null root; reject stale keep-alives (#2580)"
  Revert "fix(orderbook): validate roots before commit (#2605)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants