Re: calculation in scheme causes "assertion failed" as of Ly 2.25.11

Aaron Hill via bug-lilypond <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <[email protected]>
On 2024-04-11 10:12 am, K. Blum via bug-lilypond wrote:
> Starte lilypond.exe 2.25.14 [mwe scheme.ly]...
> »C:/Users/Flower/Desktop/mwe scheme.ly« wird verarbeitet
> Analysieren.../home/lily/lilypond-2.25.14/release/binaries/mingw/dependencies/src/guile-3.0.9/libguile/integers.c:115:
> assertion failed
> Wurde mit dem Return-Code 3 beendet.


Assertion [1] is from the negative_long function in integers.c:

  112 static inline long
  113 negative_long (unsigned long mag)
  114 {
  115   ASSERT (mag <= (unsigned long) LONG_MIN);
  116   return ~mag + 1;
  117 }

[1]: 
https://git.savannah.gnu.org/gitweb/?p=guile.git;a=blob;f=libguile/integers.c;h=cc62d1c7847a0eef47b86e340295f43df01a9f50;hb=9b20ca275dba758a194073936cde7c95311bd51e#l115


Seems to be something specific to the Windows build.  I could not 
reproduce the failing assertion on the Linux builds of LilyPond also 
running Guile 3.0.9.  I could reproduce it with the 2.25.14 Windows 
build using scheme-sandbox.ly as well as using the -e command-line 
option:

   lilypond -e "(let* ((a 1) (b -3) (c (+ b 0.3))) (> (- b (/ a 2)) c))"


-- Aaron Hill
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.