Public bug reported:
[ Impact ]
* hipsparse 7.2.3 (libhipsparse4, upstream library version 4.2.0) fixes a
memory leak affecting all `hipsparseCreate*` functions for sparse matrix
descriptors: `hipsparseCreateCoo`, `hipsparseCreateConstCoo`,
`hipsparseCreateBlockedEll`, `hipsparseCreateConstBlockedEll`,
`hipsparseCreateCooAoS`, `hipsparseCreateCsr`, `hipsparseCreateConstCsr`,
`hipsparseCreateCsc`, and `hipsparseCreateConstCsc`. In all affected
functions the pattern was: allocate a `hipsparseSpMatDescr_st` object with
`new`, then call the underlying rocSPARSE descriptor constructor; if the
rocSPARSE call returned an error, the freshly-allocated object was never
freed. Applications that call any of these functions in failure paths
(invalid arguments, unavailable device, etc.) would silently leak memory.
The fix stores the return status, deletes the object on failure, and then
returns the status.
* The release also carries documentation improvements (example code snippets
are now referenced via `\snippet` rather than embedded inline `\code{.c}`
blocks in the API headers) and a new `BUILD_CLIENTS_ONLY`
CMake/build-script
option; neither change affects the installed library or its ABI.
* Reverse dependencies of libhipsparse4: libhipsparse-dev, libhipsolver1,
libhipsolverrf1 (and their test/bench packages), and any ROCm ecosystem
packages that link against hipSPARSE.
[ Test Plan ]
1. Build:
- sbuild or dpkg-buildpackage succeeds.
- dpkg --compare-versions 7.2.3-0ubuntu1 gt 7.1.1-0ubuntu1 confirms the
new version is greater.
- Run dpkg-gensymbols against the built libhipsparse4; confirm no symbols
added, removed, or changed (the debian/libhipsparse4.symbols file should
remain identical — SONAME remains libhipsparse.so.4).
2. Autopkgtest:
```
autopkgtest [22:00:27]: test libhipsparse4-tests: -----------------------]
autopkgtest [22:00:29]: test libhipsparse4-tests: - - - - - - - - - -
results - - - - - - - - - -
libhipsparse4-tests PASS
autopkgtest [22:00:29]: @@@@@@@@@@@@@@@@@@@@ summary
libhipsparse4-tests PASS
2026-06-03 22:00:32 - Autopkg tests ended for hipsparse in
ppa:bruno-bdmoura/hipsparse-7.2.3.
Tests took: 0h 20m 27s. Logs saved in ./hipsparse_20260603_214005.log
./hipsparse --symlink-to-last-hipsparse-log-->
./hipsparse_20260603_214005.log
```
[ Where problems could occur ]
* The memory-leak fix adds a `delete spMatDescr[0]` branch on the error path
of each Create function. The only observable regression would be a
double-free if the caller also freed the descriptor on error, but the API
contract is that the descriptor is invalid (and therefore must not be
freed
by the caller) when the function returns non-SUCCESS. Risk: very low.
* All other changes (documentation, build infrastructure, benchmark-tool
argument parsing) are not present in the installed library and carry no
runtime risk.
[ Other Info ]
* ABI unchanged: no symbols were added, removed, or changed between 7.1.1
and 7.2.3. The debian/libhipsparse4.symbols file should remain identical.
SONAME remains libhipsparse.so.4.
* This update is part of the coordinated ROCm 7.2 stack release.
* PPA:
https://launchpad.net/~bruno-bdmoura/+archive/ubuntu/hipsparse-7.2.3/+packages
* Upstream version comparison:
https://github.com/ROCm/hipsparse/compare/rocm-7.1.1...rocm-7.2.3
* Target: stonking 26.04 LTS
** Affects: hipsparse (Ubuntu)
Importance: Undecided
Assignee: Bruno Bernardo de Moura (bruno-bdmoura)
Status: New
** Changed in: hipsparse (Ubuntu)
Assignee: (unassigned) => Bruno Bernardo de Moura (bruno-bdmoura)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2156252
Title:
SRU: New upstream version 7.2.3
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hipsparse/+bug/2156252/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs