[Bug 2040059] Re: [SRU] Sage crashes on start due to a missmatched dependency

Dave Jones 2040059 at bugs.launchpad.net
Mon Feb 12 16:07:20 UTC 2024


A no-change rebuild would be perfectly acceptable, but the more-or-less
arbitrary bump in the text-failure limit makes me nervous. On the other
hand, it's already "200" by default (!) so one might argue: if we're
already ignoring 200 tests arbitrarily, what's 30 more non-specific
failures? (of course, one might also argue: if we blindly ignore 200
non-specific tests ... why bother running them?).

However, the regression risk seems reasonable given that the current
state is that the application won't even launch, and we obviously don't
want to break things on upgrade. So, I'll do a full test-build locally
(to get a feel for what sort of "expected failures" occur), and sponsor.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2040059

Title:
  [SRU] Sage crashes on start due to a missmatched dependency

Status in sagemath package in Ubuntu:
  Opinion
Status in sagemath source package in Mantic:
  Confirmed

Bug description:
  [ 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sagemath/+bug/2040059/+subscriptions




More information about the Ubuntu-sponsors mailing list