[Bug 2040059] [NEW] [SRU] Sage crashes on start due to a missmatched dependency
Launchpad Bug Tracker
2040059 at bugs.launchpad.net
Sat Feb 3 21:57:26 UTC 2024
You have been subscribed to a public bug by Sudip Mukherjee (sudipmuk):
[ Impact ]
sage is completely unusable as it will fail to launch with the below
error:
File "/usr/lib/python3/dist-packages/sage/rings/polynomial/polynomial_ring_constructor.py", line 775, in _multi_variate
from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular
ImportError: libsingular-Singular-4.3.1.so: cannot open shared object file: No such file or directory
This is because sagemath was not rebuilt when new libsingular was
introduced in Mantic. And as a result sagemath is still linked with and
tries to load libsingular-Singular-4.3.1.so whereas Mantic now has
libsingular-Singular-4.3.2.so
sagemath only needs a rebuild to correctly link it with the correct
library.
[ Test Plan ]
* Execute "sage"
* if its not fixed then it will fail as the error above
* With fixed package, we will reach the "sage" prompt as below:
$ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.5, Release Date: 2022-01-30 │
│ Using Python 3.11.6. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
sage:
* On the sage prompt, we can do some basic maths to test its working.
sage: 2 + 2
4
sage: factor(-2007)
-1 * 3^2 * 223
sage: A = matrix(4,4, range(16)); A
[ 0 1 2 3]
[ 4 5 6 7]
[ 8 9 10 11]
[12 13 14 15]
sage: factor(A.charpoly())
x^2 * (x^2 - 30*x - 80)
[ Where problems could occur ]
There is no change in code and only a rebuild and so user should not see any regression.
The only worry is that the failed doctests limit had to be increased for the build to succeed, so some of the functions might not work as documented.
[ Other Info ]
failed doctests limit had to be increased for the build to succeed. I do
not have the resources to build it locally to debug why some of the
doctests are failing.
The failed buildlog without an increase of the limit is at:
https://launchpadlibrarian.net/712588440/buildlog_ubuntu-mantic-
amd64.sagemath_9.5-6ubuntu0.1_BUILDING.txt.gz which took almost 1 hour
46 minutes to complete on launchpad-buildd.
The build log with increased limit is at:
https://launchpadlibrarian.net/712708040/buildlog_ubuntu-mantic-
amd64.sagemath_9.5-6ubuntu0.1_BUILDING.txt.gz
[ Original Bug Description ]
Ubuntu version: 23.10
SageMath version: 9.5.6
SageMath crashes when launching on the terminal. It seems that it
expects libsingular 4.3.1 but instead 4.3.2 is the one in the
repositories.
I attach a file with the output given by running sage in the terminal.
ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: sagemath 9.5-6
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Oct 21 16:47:39 2023
InstallationDate: Installed on 2023-10-20 (1 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
PackageArchitecture: all
ProcEnviron:
LANG=es_ES.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
XDG_RUNTIME_DIR=<set>
SourcePackage: sagemath
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: sagemath (Ubuntu)
Importance: Undecided
Status: Opinion
** Affects: sagemath (Ubuntu Mantic)
Importance: Undecided
Status: Confirmed
** Tags: amd64 apport-bug mantic wayland-session
--
[SRU] Sage crashes on start due to a missmatched dependency
https://bugs.launchpad.net/bugs/2040059
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list