🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2330

Bug#1152240: graphviz: gvpr limited to 32 bit numbers

#2330
From: Trevor Stone
Date: Tue, 27 Oct 2026 01:40
75 lines
3877 bytes
Package: graphviz
Version: 2.42.4-3
Severity: normal
X-Debbugs-Cc: debian@trevorstone.org

Dear Maintainer,

The gvpr graphviz scripting language is limited to 32-bit integers on
Debian trixie.  This is a regression from bookworm, which correctly
handled 64-bit integers.  An easy repro example:

    gvpr 'BEG_G {
      for (i = 1; i <= 8; i = i * 2)
        printf("%d %d\n", i * 1024*1024*1024-1, i * 1024*1024*1024)
     }' <<<'graph { a -- b }'

On Ubuntu 24.04 (graphviz 2.42.2-9ubuntu0.1) this correctly shows
numbers exceeding 2^31:

    1073741823 1073741824
    2147483647 2147483648
    4294967295 4294967296
    8589934591 8589934592

On Debian trixie (graphviz 2.42.4-3) this wraps after 2^32-1:
1073741823 1073741824
2147483647 -2147483648
-1 0
-1 0

I didn't test this particular program on bookworm (2.42.2 series) before
upgrading to trixie, but I do know I successfully ran gvpr scripts with
64-bit integer values on bookworm on the same computer (Acer ChromeOS
laptop), https://github.com/flwyd/adventofcode/blob/main/2025/day11/day11.zsh
with my actual input (which is private, but I can share if needed).


-- System Information:
Debian Release: 13.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.143-09589-gf9e106250941 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages graphviz depends on:
ii  libann0          1.1.2+doc-9+b1
ii  libc6            2.41-12+deb13u4
ii  libcdt5          2.42.4-3
ii  libcgraph6       2.42.4-3
ii  libexpat1        2.8.3-1~deb13u1
ii  libgcc-s1        14.2.0-19
ii  libgd3           2.3.3-14~deb13u1
ii  libglib2.0-0t64  2.84.4-3~deb13u5
ii  libgts-0.7-5t64  0.7.6+darcs121130-5.2+b1
ii  libgvc6          2.42.4-3
ii  libgvpr2         2.42.4-3
ii  liblab-gamut1    2.42.4-3
ii  libstdc++6       14.2.0-19
ii  libx11-6         2:1.8.12-1
ii  libxaw7          2:1.0.16-1
ii  libxmu6          2:1.1.3-3+b4
ii  libxt6t64        1:1.2.1-1.2+b2

Versions of packages graphviz recommends:
ii  fonts-liberation  1:2.1.5-3

Versions of packages graphviz suggests:
ii  graphviz-doc  2.42.4-3
pn  gsfonts       <none>

-- no debconf information
Technical Details
Message-ID: <NSEkp-872m-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Trevor Stone <debian@trevorstone.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152240: graphviz: gvpr limited to 32 bit numbers
Date: Tue, 27 Oct 2026 02:40:01 +0100
Message-ID: <NSEkp-872m-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Oct 27 01:35:13 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Trevor Stone <debian@trevorstone.org>, 1152240@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian@trevorstone.org, gcs@debian.org
X-Debian-Pr-Message: report 1152240
X-Debian-Pr-Package: graphviz
X-Debian-Pr-Source: graphviz
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999124
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 75
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 26 Oct 2026 19:32:42 -0600
X-Original-Message-ID: <179306476261.128300.2844265676900072469.reportbug@localhost>