NetBSD Problem Report #60059
From www@netbsd.org Fri Mar 6 12:26:36 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4FAAE1A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 6 Mar 2026 12:26:36 +0000 (UTC)
Message-Id: <20260306122635.171951A923C@mollari.NetBSD.org>
Date: Fri, 6 Mar 2026 12:26:35 +0000 (UTC)
From: ea1abz@gmail.com
Reply-To: ea1abz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: math/gnumeric 10.0_2025Q4 segfaults on RPi4
X-Send-Pr-Version: www-1.0
X-From4GNATS: "ea1abz@gmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60059
>Category: pkg
>Synopsis: math/gnumeric 10.0_2025Q4 segfaults on RPi4
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bsiegert
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 06 12:30:00 +0000 2026
>Closed-Date:
>Last-Modified: Tue May 05 13:51:48 +0000 2026
>Originator: Ramiro Aceves
>Release: 10.0_2025Q4
>Organization:
>Environment:
NetBSD netbsd-raspa4 10.1 NetBSD 10.1 (GENERIC64) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
Hello:
Gnumeric segfalts as soon as you enter 2 o 3 numeric values in cells.
Thanks.
netbsd-raspa4# uname -a
NetBSD netbsd-raspa4 10.1 NetBSD 10.1 (GENERIC64) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
netbsd-raspa4#
Netbsd-raspa4$ gdb /usr/pkg/bin/gnumeric
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/bin/gnumeric...
(No debugging symbols found in /usr/pkg/bin/gnumeric)
(gdb) run
Starting program: /usr/pkg/bin/gnumeric
[New LWP 12044 of process 16350]
[New LWP 12902 of process 16350]
[New LWP 6787 of process 16350]
[New LWP 25972 of process 16350]
(gnumeric:16350): GVFS-RemoteVolumeMonitor-WARNING **: 11:29:15.228: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
[New LWP 3492 of process 16350]
Thread 1 "" received signal SIGSEGV, Segmentation fault.
0x0000f0614a66a13c in fmt_fp () from /usr/pkg/lib/libgoffice-0.10.so.10
(gdb) bt
#0 0x0000f0614a66a13c in fmt_fp () from /usr/pkg/lib/libgoffice-0.10.so.10
#1 0x0000f0614a66b420 in go_dtoa () from /usr/pkg/lib/libgoffice-0.10.so.10
#2 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
netbsd-raspa4# cat /usr/pkg/etc/pkgin/repositories.conf
#
# Pkgin repositories list
#
# Simply add repositories URIs one below the other
#
# WARNING: order matters, duplicates will not be added, if two
# repositories hold the same package, it will be fetched from
# the first one listed in this file.
#
# This file format supports the following macros:
# $arch to define the machine hardware platform
# $osrelease to define the release version for the operating system
#
# Remote ftp repository
#
# ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/5.1/All
#
# Remote http repository
#
# http://mirror-master.dragonflybsd.org/packages/$arch/DragonFly-$osrelease/stable/All
#
# Local repository (must contain a pkg_summary.gz or bz2)
#
# file:///usr/pkgsrc/packages/All
# NetBSD OS release can look like 6.0_STABLE, do not use it as-is
https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/aarch64/10.0_2025Q4/All
netbsd-raspa4#
>How-To-Repeat:
Start gnumeric, enter several numerical values on different cell and wait for segfault.
>Fix:
Yes please.
>Release-Note:
>Audit-Trail:
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60059 CVS commit: pkgsrc/misc/goffice0.10
Date: Sat, 7 Mar 2026 11:00:59 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Sat Mar 7 11:00:59 UTC 2026
Modified Files:
pkgsrc/misc/goffice0.10: Makefile PLIST distinfo
pkgsrc/misc/goffice0.10/patches: patch-goffice_math_go-complex.c
Log Message:
goffice0.10: update to 0.10.60
- Fix fraction format problem. [Bug 803].
- Doc fixes.
- Remove workaround for ancient gtk+ bug. [Bug 81].
- I18N fix for format selector.
Maybe this helps with PR pkg/60059.
To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 pkgsrc/misc/goffice0.10/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/misc/goffice0.10/PLIST
cvs rdiff -u -r1.32 -r1.33 pkgsrc/misc/goffice0.10/distinfo
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/misc/goffice0.10/patches/patch-goffice_math_go-complex.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Sat, 07 Mar 2026 11:23:30 +0000
State-Changed-Why:
feedback was requested
From: Benny Siegert <bsiegert@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Sat, 7 Mar 2026 11:22:58 +0000 (UTC)
On Fri, 6 Mar 2026, ea1abz@gmail.com via gnats wrote:
> Gnumeric segfalts as soon as you enter 2 o 3 numeric values in cells.
I updated goffice0.10 and gnumeric in pkgsrc-HEAD. Can you try updating
just these two directories and rebuilding? Maybe that fixes it.
--
Benny
From: Ramiro Aceves <ea1abz@gmail.com>
To: Benny Siegert <bsiegert@netbsd.org>, gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Sat, 7 Mar 2026 20:59:12 +0100
El 7/3/26 a las 12:22, Benny Siegert escribió:
> On Fri, 6 Mar 2026, ea1abz@gmail.com via gnats wrote:
>
>> Gnumeric segfalts as soon as you enter 2 o 3 numeric values in cells.
>
> I updated goffice0.10 and gnumeric in pkgsrc-HEAD. Can you try updating
> just these two directories and rebuilding? Maybe that fixes it.
>
Thanks Benny, I am going to do it and tell you the result.
Regards.
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org
Cc: Benny Siegert <bsiegert@gmail.com>
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Sun, 8 Mar 2026 22:10:49 +0100
El 7/3/26 a las 12:25, Benny Siegert via gnats escribió:
> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>
> From: Benny Siegert <bsiegert@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> Date: Sat, 7 Mar 2026 11:22:58 +0000 (UTC)
>
> On Fri, 6 Mar 2026, ea1abz@gmail.com via gnats wrote:
>
> > Gnumeric segfalts as soon as you enter 2 o 3 numeric values in cells.
>
> I updated goffice0.10 and gnumeric in pkgsrc-HEAD. Can you try updating
> just these two directories and rebuilding? Maybe that fixes it.
>
> --
> Benny
>
Hi Benny,
First, I upgraded pkgsrc source to 2025Q4 to match my installed packages branch.
Then I did:
cvs update -dP -A
in theese two directories:
/usr/pkgsrc/math/gnumeric112
/usr/pkgsrc/misc/goffice0.10
But compilation ended with error:
netbsd-raspa4# make install
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for gnumeric-1.12.60.tar.xz
=> Checksum SHA512 OK for gnumeric-1.12.60.tar.xz
===> Installing dependencies for gnumeric-1.12.60
==========================================================================
The supported build options for gnumeric are:
psiconv
You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable. Its current value is shown:
PKG_OPTIONS.gnumeric (not defined)
==========================================================================
==========================================================================
The following variables will affect the build process of this package,
gnumeric-1.12.60. Their current value is shown below:
* JPEG_DEFAULT = libjpeg-turbo
* PYTHON_VERSION_DEFAULT = 313
Based on these variables, the following variables have been set:
* JPEGBASE (defined, but empty)
* JPEG_TYPE = libjpeg-turbo
* PYPACKAGE = python313
You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing. Be sure to run
`/usr/bin/make clean' after the changes.
...
...
...
...
I removed all...
...
...
...
...
CC libspreadsheet_la-rangefunc-strings.lo
CC libspreadsheet_la-rangefunc.lo
CC libspreadsheet_la-ranges.lo
CC libspreadsheet_la-rendered-value.lo
CC libspreadsheet_la-search.lo
CC libspreadsheet_la-selection.lo
rendered-value.c: In function 'gnm_rendered_value_new':
rendered-value.c:539:2: warning: 'pango_find_base_dir' is deprecated [-Wdeprecated-declarations]
539 | dir = (text && *text)? pango_find_base_dir (text, -1): PANGO_DIRECTION_LTR;
| ^~~
In file included from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/pango-1.0/pango/pango-types.h:239,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/pango-1.0/pango/pango-font.h:26,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/pango-1.0/pango/pango-attributes.h:25,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/pango-1.0/pango/pango.h:25,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/gtk-3.0/gdk/gdktypes.h:35,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/gtk-3.0/gdk/gdk.h:32,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/gtk-3.0/gtk/gtk.h:30,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/libgoffice-0.10/goffice/goffice.h:37,
from ./gnumeric.h:5,
from rendered-value.c:24:
/usr/pkgsrc/math/gnumeric112/work/.buildlink/include/pango-1.0/pango/pango-bidi-type.h:107:16: note: declared here
107 | PangoDirection pango_find_base_dir (const gchar *text,
| ^~~~~~~~~~~~~~~~~~~
selection.c: In function 'sv_is_singleton_selected':
selection.c:104:2: warning: #warning FIXME Should we be using the selection rather than the cursor? [-Wcpp]
104 | #warning FIXME Should we be using the selection rather than the cursor?
| ^~~~~~~
selection.c: In function 'sv_selection_to_plot':
selection.c:1672:2: warning: #warning TODO If last series is incomplete try to shift data out of optional dimensions. [-Wcpp]
1672 | #warning TODO If last series is incomplete try to shift data out of optional dimensions.
| ^~~~~~~
CC libspreadsheet_la-session.lo
CC libspreadsheet_la-sf-bessel.lo
CC libspreadsheet_la-sf-dpq.lo
CC libspreadsheet_la-sf-gamma.lo
CC libspreadsheet_la-sf-trig.lo
CC libspreadsheet_la-sheet-autofill.lo
CC libspreadsheet_la-sheet-conditions.lo
CC libspreadsheet_la-sheet-control-gui.lo
CC libspreadsheet_la-sheet-control.lo
sheet-control-gui.c: In function 'resize_pane_finish':
sheet-control-gui.c:1437:2: warning: #warning GTK3: replace this? [-Wcpp]
1437 | #warning GTK3: replace this?
| ^~~~~~~
sheet-control-gui.c: In function 'cb_resize_pane_motion':
sheet-control-gui.c:1492:2: warning: #warning GTK3: what replaces p->in_drag? [-Wcpp]
1492 | #warning GTK3: what replaces p->in_drag?
| ^~~~~~~
CC libspreadsheet_la-sheet-diff.lo
CC libspreadsheet_la-sheet-filter.lo
CC libspreadsheet_la-sheet-merge.lo
CC libspreadsheet_la-sheet-object-cell-comment.lo
CC libspreadsheet_la-sheet-object-component.lo
CC libspreadsheet_la-sheet-object-graph.lo
sheet-object-graph.c: In function 'sog_cb_save_as':
sheet-object-graph.c:336:2: warning: #warning "This violates model gui barrier" [-Wcpp]
336 | #warning "This violates model gui barrier"
| ^~~~~~~
CC libspreadsheet_la-sheet-object-image.lo
CC libspreadsheet_la-sheet-object-widget.lo
CC libspreadsheet_la-sheet-object.lo
sheet-object-image.c: In function 'so_image_view_set_bounds':
sheet-object-image.c:72:4: warning: 'go_gdk_pixbuf_tile' is deprecated: Use 'go_image_get_pixbuf' instead [-Wdeprecated-declarations]
72 | GdkPixbuf *newimage = go_gdk_pixbuf_tile (placeholder,
| ^~~~~~~~~
In file included from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/libgoffice-0.10/goffice/utils/goffice-utils.h:161,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/libgoffice-0.10/goffice/app/goffice-app.h:68,
from /usr/pkgsrc/math/gnumeric112/work/.buildlink/include/libgoffice-0.10/goffice/goffice.h:60,
from ./gnumeric.h:5,
from sheet-object-image.c:9:
/usr/pkgsrc/math/gnumeric112/work/.buildlink/include/libgoffice-0.10/goffice/utils/go-gdk-pixbuf.h:37:12: note: declared here
37 | GdkPixbuf *go_gdk_pixbuf_tile (GdkPixbuf const *src,
| ^~~~~~~~~~~~~~~~~~
sheet-object.c: In function 'sheet_object_populate_menu_real':
sheet-object.c:279:2: warning: #warning "Two highly dubious icon names here" [-Wcpp]
279 | #warning "Two highly dubious icon names here"
| ^~~~~~~
CC libspreadsheet_la-sheet-style.lo
CC libspreadsheet_la-sheet-utils.lo
CC libspreadsheet_la-sheet-view.lo
CC libspreadsheet_la-sheet.lo
sheet.c: In function 'sheet_dup':
sheet.c:6614:2: warning: #warning selection is in view [-Wcpp]
6614 | #warning selection is in view
| ^~~~~~~
sheet.c:6615:2: warning: #warning freeze/thaw is in view [-Wcpp]
6615 | #warning freeze/thaw is in view
| ^~~~~~~
CC libspreadsheet_la-sort.lo
CC libspreadsheet_la-stf-export.lo
CC libspreadsheet_la-stf-parse.lo
CC libspreadsheet_la-stf.lo
stf.c: In function 'stf_text_to_columns':
stf.c:299:2: warning: #warning Add UI for this [-Wcpp]
299 | #warning Add UI for this
| ^~~~~~~
CC libspreadsheet_la-style-border.lo
CC libspreadsheet_la-style-color.lo
CC libspreadsheet_la-style-conditions.lo
CC libspreadsheet_la-style.lo
CC libspreadsheet_la-undo.lo
CC libspreadsheet_la-validation.lo
CC libspreadsheet_la-value-sheet.lo
CC libspreadsheet_la-value.lo
CC libspreadsheet_la-wbc-gtk-actions.lo
CC libspreadsheet_la-wbc-gtk-edit.lo
wbc-gtk-actions.c:3615:2: warning: #warning "Add justify" [-Wcpp]
3615 | #warning "Add justify"
| ^~~~~~~
wbc-gtk-actions.c:3616:2: warning: #warning "h/v distributed?" [-Wcpp]
3616 | #warning "h/v distributed?"
| ^~~~~~~
wbc-gtk-actions.c: In function 'wbc_gtk_init_zoom':
wbc-gtk-actions.c:4133:2: warning: #warning TODO : Add zoom to selection [-Wcpp]
4133 | #warning TODO : Add zoom to selection
| ^~~~~~~
CC libspreadsheet_la-wbc-gtk.lo
wbc-gtk.c: In function 'cb_accept_input_selected_merged':
wbc-gtk.c:2001:2: warning: #warning FIXME: this creates 2 undo items! [-Wcpp]
2001 | #warning FIXME: this creates 2 undo items!
| ^~~~~~~
wbc-gtk.c: In function 'cb_editline_focus_in':
wbc-gtk.c:2139:2: warning: #warning GTK3: what can we do there for gtk3? [-Wcpp]
2139 | #warning GTK3: what can we do there for gtk3?
| ^~~~~~~
wbc-gtk.c: At top level:
wbc-gtk.c:5351:2: warning: #warning merge these and clarfy whether we want the visible scg, or the logical (view) scg [-Wcpp]
5351 | #warning merge these and clarfy whether we want the visible scg, or the logical (view) scg
| ^~~~~~~
CC libspreadsheet_la-workbook-cmd-format.lo
CC libspreadsheet_la-workbook-control.lo
CC libspreadsheet_la-workbook-view.lo
CC libspreadsheet_la-workbook.lo
CC libspreadsheet_la-xml-sax-read.lo
xml-sax-read.c: In function 'xml_sax_orientation':
xml-sax-read.c:3127:2: warning: #warning TODO: we should also handle inversion [-Wcpp]
3127 | #warning TODO: we should also handle inversion
| ^~~~~~~
CC libspreadsheet_la-xml-sax-write.lo
CC libspreadsheet_la-gnmresources.lo
CC ssconvert.o
xml-sax-write.c: In function 'xml_write_print_info':
xml-sax-write.c:432:2: warning: #warning TODO: we should also handle inversion [-Wcpp]
432 | #warning TODO: we should also handle inversion
| ^~~~~~~
CC ssindex.o
CC ssgrep.o
CC ssdiff.o
CC sstest.o
CC dialogs/libspreadsheet_la-dao-gui-utils.lo
sstest.c:901:61: error: unknown type name 'bool'
901 | check_help_expression (const char *text, GnmFunc const *fd, bool localized)
| ^~~~
sstest.c: In function 'gnm_func_sanity_check1':
sstest.c:1123:9: error: implicit declaration of function 'check_help_expression' [-Werror=implicit-function-declaration]
1123 | if (check_help_expression (text + 1, fd, was_translated)) {
| ^~~~~~~~~~~~~~~~~~~~~
sstest.c:1123:9: error: nested extern declaration of 'check_help_expression' [-Werror=nested-externs]
CC dialogs/libspreadsheet_la-dialog-about.lo
cc1: some warnings being treated as errors
gmake[3]: *** [Makefile:2331: sstest.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory '/usr/pkgsrc/math/gnumeric112/work/gnumeric-1.12.60/src'
gmake[2]: *** [Makefile:1660: all] Error 2
gmake[2]: Leaving directory '/usr/pkgsrc/math/gnumeric112/work/gnumeric-1.12.60/src'
gmake[1]: *** [Makefile:669: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/math/gnumeric112/work/gnumeric-1.12.60'
gmake: *** [Makefile:528: all] Error 2
*** Error code 2
Stop.
make[1]: stopped in /usr/pkgsrc/math/gnumeric112
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/math/gnumeric112
netbsd-raspa4#
Thanks.
Ramiro.
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Tue, 10 Mar 2026 08:39:12 -0400
Concerning the new compilation failure reported, a fix was applied in
pkgsrc HEAD earlier today, so that should address it. (It won't have any
bearing on the original issue, of course.)
Regards,
Dave
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Tue, 10 Mar 2026 22:14:18 +0100
El 10/3/26 a las 13:40, David H. Gutteridge via gnats escribió:
> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>
> From: "David H. Gutteridge" <david@gutteridge.ca>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> Date: Tue, 10 Mar 2026 08:39:12 -0400
>
> Concerning the new compilation failure reported, a fix was applied in
> pkgsrc HEAD earlier today, so that should address it. (It won't have any
> bearing on the original issue, of course.)
>
> Regards,
>
> Dave
>
Hello Dave,
Thanks for the information. It compiles fine now!
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for gnumeric-1.12.60
=> Creating binary package /usr/pkgsrc/math/gnumeric112/work/.packages/gnumeric-1.12.60.tgz
===> Building binary package for gnumeric-1.12.60
=> Creating binary package /usr/pkgsrc/packages/All/gnumeric-1.12.60.tgz
===> Installing binary package of gnumeric-1.12.60
1450,92 real 2217,79 user 433,18 sys
netbsd-raspa4#
But it segfaults the same:
netbsd-raspa4$ gnumeric
(gnumeric:28722): GVFS-RemoteVolumeMonitor-WARNING **: 22:12:15.345: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir
la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
[1] Segmentation fault gnumeric
netbsd-raspa4$
In amd64 it works fine.
Regards.
Ramiro.
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Wed, 11 Mar 2026 10:57:24 +0100
> Hello Dave,
>
> Thanks for the information. It compiles fine now!
>
> => Automatic manual page handling
> => Generating post-install file lists
> => Checking file-check results for gnumeric-1.12.60
> => Creating binary package /usr/pkgsrc/math/gnumeric112/work/.packages/gnumeric-1.12.60.tgz
> ===> Building binary package for gnumeric-1.12.60
> => Creating binary package /usr/pkgsrc/packages/All/gnumeric-1.12.60.tgz
> ===> Installing binary package of gnumeric-1.12.60
> 1450,92 real 2217,79 user 433,18 sys
> netbsd-raspa4#
>
> But it segfaults the same:
>
> netbsd-raspa4$ gnumeric
>
> (gnumeric:28722): GVFS-RemoteVolumeMonitor-WARNING **: 22:12:15.345: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir
> la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
> [1] Segmentation fault gnumeric
> netbsd-raspa4$
>
> In amd64 it works fine.
>
> Regards.
> Ramiro.
>
Hi, I have compiled math/gnumeric112 and misc/goffice0.10 with debugging symbols just in case it gives some clues to the programming experts.
Regards.
netbsd-raspa4$ gdb /usr/pkg/bin/gnumeric
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/bin/gnumeric...
(gdb) run
Starting program: /usr/pkg/bin/gnumeric
[New LWP 18863 of process 2372]
[New LWP 12759 of process 2372]
[New LWP 11072 of process 2372]
[New LWP 6829 of process 2372]
(gnumeric:2372): GVFS-RemoteVolumeMonitor-WARNING **: 10:49:34.530: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir la carpeta
«/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
[New LWP 15933 of process 2372]
Thread 1 "" received signal SIGSEGV, Segmentation fault.
0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1, p=<optimized out>,
p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
248 *z = y;
(gdb) bt
#0 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1,
p=<optimized out>, p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
#1 0x0000f9130f4cb420 in fmt_shortest (fltyp=<optimized out>, t=70, fl=536870918, d=0xffffffe3d3f0,
dst=0xf913089f6840) at math/go-dtoa.c:592
#2 go_dtoa (dst=0xf913089f6840, fmt=<optimized out>) at math/go-dtoa.c:700
#3 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Wed, 11 Mar 2026 11:03:20 +0100
El 11/3/26 a las 11:00, Ramiro Aceves via gnats escribió:
> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>
> From: Ramiro Aceves <ea1abz@gmail.com>
> To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
> pkgsrc-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> Date: Wed, 11 Mar 2026 10:57:24 +0100
>
> > Hello Dave,
> >
> > Thanks for the information. It compiles fine now!
> >
> > => Automatic manual page handling
> > => Generating post-install file lists
> > => Checking file-check results for gnumeric-1.12.60
> > => Creating binary package /usr/pkgsrc/math/gnumeric112/work/.packages/gnumeric-1.12.60.tgz
> > ===> Building binary package for gnumeric-1.12.60
> > => Creating binary package /usr/pkgsrc/packages/All/gnumeric-1.12.60.tgz
> > ===> Installing binary package of gnumeric-1.12.60
> > 1450,92 real 2217,79 user 433,18 sys
> > netbsd-raspa4#
> >
> > But it segfaults the same:
> >
> > netbsd-raspa4$ gnumeric
> >
> > (gnumeric:28722): GVFS-RemoteVolumeMonitor-WARNING **: 22:12:15.345: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir
> > la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
> > [1] Segmentation fault gnumeric
> > netbsd-raspa4$
> >
> > In amd64 it works fine.
> >
> > Regards.
> > Ramiro.
> >
>
> Hi, I have compiled math/gnumeric112 and misc/goffice0.10 with debugging symbols just in case it gives some clues to the programming experts.
> Regards.
>
>
> netbsd-raspa4$ gdb /usr/pkg/bin/gnumeric
> GNU gdb (GDB) 11.0.50.20200914-git
> Copyright (C) 2020 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "aarch64--netbsd".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
>
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/pkg/bin/gnumeric...
> (gdb) run
> Starting program: /usr/pkg/bin/gnumeric
> [New LWP 18863 of process 2372]
> [New LWP 12759 of process 2372]
> [New LWP 11072 of process 2372]
> [New LWP 6829 of process 2372]
>
> (gnumeric:2372): GVFS-RemoteVolumeMonitor-WARNING **: 10:49:34.530: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir la carpeta
> «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
> [New LWP 15933 of process 2372]
>
> Thread 1 "" received signal SIGSEGV, Segmentation fault.
> 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1, p=<optimized out>,
> p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
> 248 *z = y;
> (gdb) bt
> #0 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1,
> p=<optimized out>, p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
> #1 0x0000f9130f4cb420 in fmt_shortest (fltyp=<optimized out>, t=70, fl=536870918, d=0xffffffe3d3f0,
> dst=0xf913089f6840) at math/go-dtoa.c:592
> #2 go_dtoa (dst=0xf913089f6840, fmt=<optimized out>) at math/go-dtoa.c:700
> #3 0x0000000000000000 in ?? ()
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> (gdb)
>
240 if (p<0) p=6;
241
242 if (y) y *= 0x1p28, e2-=28;
243
244 if (e2<0) a=r=z=big;
(gdb) list
245 else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
246
247 do {
248 *z = y;
249 y = 1000000000*(y-*z++);
250 } while (y);
251
252 while (e2>0) {
253 uint32_t carry=0;
254 int sh=MIN(29,e2);
(gdb) list
255 for (d=z-1; d>=a; d--) {
256 uint64_t x = ((uint64_t)*d<<sh)+carry;
257 *d = x % 1000000000;
258 carry = x / 1000000000;
259 }
260 if (carry) *--a = carry;
261 while (z>a && !z[-1]) z--;
262 e2-=sh;
263 }
264 while (e2<0) {
(gdb)
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Wed, 11 Mar 2026 14:10:20 +0100
El 11/3/26 a las 11:05, Ramiro Aceves via gnats escribió:
> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>
> From: Ramiro Aceves <ea1abz@gmail.com>
> To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
> pkgsrc-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> Date: Wed, 11 Mar 2026 11:03:20 +0100
>
> El 11/3/26 a las 11:00, Ramiro Aceves via gnats escribió:
> > The following reply was made to PR pkg/60059; it has been noted by GNATS.
> >
> > From: Ramiro Aceves <ea1abz@gmail.com>
> > To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
> > pkgsrc-bugs@netbsd.org
> > Cc:
> > Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> > Date: Wed, 11 Mar 2026 10:57:24 +0100
> >
> > > Hello Dave,
> > >
> > > Thanks for the information. It compiles fine now!
> > >
> > > => Automatic manual page handling
> > > => Generating post-install file lists
> > > => Checking file-check results for gnumeric-1.12.60
> > > => Creating binary package /usr/pkgsrc/math/gnumeric112/work/.packages/gnumeric-1.12.60.tgz
> > > ===> Building binary package for gnumeric-1.12.60
> > > => Creating binary package /usr/pkgsrc/packages/All/gnumeric-1.12.60.tgz
> > > ===> Installing binary package of gnumeric-1.12.60
> > > 1450,92 real 2217,79 user 433,18 sys
> > > netbsd-raspa4#
> > >
> > > But it segfaults the same:
> > >
> > > netbsd-raspa4$ gnumeric
> > >
> > > (gnumeric:28722): GVFS-RemoteVolumeMonitor-WARNING **: 22:12:15.345: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir
> > > la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
> > > [1] Segmentation fault gnumeric
> > > netbsd-raspa4$
> > >
> > > In amd64 it works fine.
> > >
> > > Regards.
> > > Ramiro.
> > >
> >
> > Hi, I have compiled math/gnumeric112 and misc/goffice0.10 with debugging symbols just in case it gives some clues to the programming experts.
> > Regards.
> >
> >
> > netbsd-raspa4$ gdb /usr/pkg/bin/gnumeric
> > GNU gdb (GDB) 11.0.50.20200914-git
> > Copyright (C) 2020 Free Software Foundation, Inc.
> > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> > This is free software: you are free to change and redistribute it.
> > There is NO WARRANTY, to the extent permitted by law.
> > Type "show copying" and "show warranty" for details.
> > This GDB was configured as "aarch64--netbsd".
> > Type "show configuration" for configuration details.
> > For bug reporting instructions, please see:
> > <https://www.gnu.org/software/gdb/bugs/>.
> > Find the GDB manual and other documentation resources online at:
> > <http://www.gnu.org/software/gdb/documentation/>.
> >
> > For help, type "help".
> > Type "apropos word" to search for commands related to "word"...
> > Reading symbols from /usr/pkg/bin/gnumeric...
> > (gdb) run
> > Starting program: /usr/pkg/bin/gnumeric
> > [New LWP 18863 of process 2372]
> > [New LWP 12759 of process 2372]
> > [New LWP 11072 of process 2372]
> > [New LWP 6829 of process 2372]
> >
> > (gnumeric:2372): GVFS-RemoteVolumeMonitor-WARNING **: 10:49:34.530: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir la carpeta
> > «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
> > [New LWP 15933 of process 2372]
> >
> > Thread 1 "" received signal SIGSEGV, Segmentation fault.
> > 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1, p=<optimized out>,
> > p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
> > 248 *z = y;
> > (gdb) bt
> > #0 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1,
> > p=<optimized out>, p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
> > #1 0x0000f9130f4cb420 in fmt_shortest (fltyp=<optimized out>, t=70, fl=536870918, d=0xffffffe3d3f0,
> > dst=0xf913089f6840) at math/go-dtoa.c:592
> > #2 go_dtoa (dst=0xf913089f6840, fmt=<optimized out>) at math/go-dtoa.c:700
> > #3 0x0000000000000000 in ?? ()
> > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> > (gdb)
> >
>
> 240 if (p<0) p=6;
> 241
> 242 if (y) y *= 0x1p28, e2-=28;
> 243
> 244 if (e2<0) a=r=z=big;
> (gdb) list
> 245 else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
> 246
> 247 do {
> 248 *z = y;
> 249 y = 1000000000*(y-*z++);
> 250 } while (y);
> 251
> 252 while (e2>0) {
> 253 uint32_t carry=0;
> 254 int sh=MIN(29,e2);
> (gdb) list
> 255 for (d=z-1; d>=a; d--) {
> 256 uint64_t x = ((uint64_t)*d<<sh)+carry;
> 257 *d = x % 1000000000;
> 258 carry = x / 1000000000;
> 259 }
> 260 if (carry) *--a = carry;
> 261 while (z>a && !z[-1]) z--;
> 262 e2-=sh;
> 263 }
> 264 while (e2<0) {
> (gdb)
>
>
>
Hi,
Changing from "long double" to "double" inside
fmt-fp function in the file
/usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math
fixes de crash.
I do not know how to properly fix it only for aarch64 and if it is a proper fix.
Regards.
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Wed, 11 Mar 2026 14:14:50 +0100
El 11/3/26 a las 14:10, Ramiro Aceves escribió:
>
>
> El 11/3/26 a las 11:05, Ramiro Aceves via gnats escribió:
>> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>>
>> From: Ramiro Aceves <ea1abz@gmail.com>
>> To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
>> pkgsrc-bugs@netbsd.org
>> Cc:
>> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
>> Date: Wed, 11 Mar 2026 11:03:20 +0100
>>
>> El 11/3/26 a las 11:00, Ramiro Aceves via gnats escribió:
>> > The following reply was made to PR pkg/60059; it has been noted by GNATS.
>> >
>> > From: Ramiro Aceves <ea1abz@gmail.com>
>> > To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
>> > pkgsrc-bugs@netbsd.org
>> > Cc:
>> > Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
>> > Date: Wed, 11 Mar 2026 10:57:24 +0100
>> >
>> > > Hello Dave,
>> > >
>> > > Thanks for the information. It compiles fine now!
>> > >
>> > > => Automatic manual page handling
>> > > => Generating post-install file lists
>> > > => Checking file-check results for gnumeric-1.12.60
>> > > => Creating binary package /usr/pkgsrc/math/gnumeric112/work/.packages/gnumeric-1.12.60.tgz
>> > > ===> Building binary package for gnumeric-1.12.60
>> > > => Creating binary package /usr/pkgsrc/packages/All/gnumeric-1.12.60.tgz
>> > > ===> Installing binary package of gnumeric-1.12.60
>> > > 1450,92 real 2217,79 user 433,18 sys
>> > > netbsd-raspa4#
>> > >
>> > > But it segfaults the same:
>> > >
>> > > netbsd-raspa4$ gnumeric
>> > >
>> > > (gnumeric:28722): GVFS-RemoteVolumeMonitor-WARNING **: 22:12:15.345: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir
>> > > la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
>> > > [1] Segmentation fault gnumeric
>> > > netbsd-raspa4$
>> > >
>> > > In amd64 it works fine.
>> > >
>> > > Regards.
>> > > Ramiro.
>> > >
>> >
>> > Hi, I have compiled math/gnumeric112 and misc/goffice0.10 with debugging symbols just in case it gives some clues to the programming experts.
>> > Regards.
>> >
>> >
>> > netbsd-raspa4$ gdb /usr/pkg/bin/gnumeric
>> > GNU gdb (GDB) 11.0.50.20200914-git
>> > Copyright (C) 2020 Free Software Foundation, Inc.
>> > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
>> > This is free software: you are free to change and redistribute it.
>> > There is NO WARRANTY, to the extent permitted by law.
>> > Type "show copying" and "show warranty" for details.
>> > This GDB was configured as "aarch64--netbsd".
>> > Type "show configuration" for configuration details.
>> > For bug reporting instructions, please see:
>> > <https://www.gnu.org/software/gdb/bugs/>.
>> > Find the GDB manual and other documentation resources online at:
>> > <http://www.gnu.org/software/gdb/documentation/>.
>> >
>> > For help, type "help".
>> > Type "apropos word" to search for commands related to "word"...
>> > Reading symbols from /usr/pkg/bin/gnumeric...
>> > (gdb) run
>> > Starting program: /usr/pkg/bin/gnumeric
>> > [New LWP 18863 of process 2372]
>> > [New LWP 12759 of process 2372]
>> > [New LWP 11072 of process 2372]
>> > [New LWP 6829 of process 2372]
>> >
>> > (gnumeric:2372): GVFS-RemoteVolumeMonitor-WARNING **: 10:49:34.530: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir la carpeta
>> > «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
>> > [New LWP 15933 of process 2372]
>> >
>> > Thread 1 "" received signal SIGSEGV, Segmentation fault.
>> > 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1, p=<optimized out>,
>> > p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
>> > 248 *z = y;
>> > (gdb) bt
>> > #0 0x0000f9130f4ca13c in fmt_fp (f=f@entry=0xf913089f6840, y=inf, y@entry=0, w=w@entry=1,
>> > p=<optimized out>, p@entry=0, fl=fl@entry=536870918, t=t@entry=70) at math/go-dtoa.c:248
>> > #1 0x0000f9130f4cb420 in fmt_shortest (fltyp=<optimized out>, t=70, fl=536870918, d=0xffffffe3d3f0,
>> > dst=0xf913089f6840) at math/go-dtoa.c:592
>> > #2 go_dtoa (dst=0xf913089f6840, fmt=<optimized out>) at math/go-dtoa.c:700
>> > #3 0x0000000000000000 in ?? ()
>> > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>> > (gdb)
>> >
>> 240 if (p<0) p=6;
>> 241
>> 242 if (y) y *= 0x1p28, e2-=28;
>> 243
>> 244 if (e2<0) a=r=z=big;
>> (gdb) list
>> 245 else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
>> 246
>> 247 do {
>> 248 *z = y;
>> 249 y = 1000000000*(y-*z++);
>> 250 } while (y);
>> 251
>> 252 while (e2>0) {
>> 253 uint32_t carry=0;
>> 254 int sh=MIN(29,e2);
>> (gdb) list
>> 255 for (d=z-1; d>=a; d--) {
>> 256 uint64_t x = ((uint64_t)*d<<sh)+carry;
>> 257 *d = x % 1000000000;
>> 258 carry = x / 1000000000;
>> 259 }
>> 260 if (carry) *--a = carry;
>> 261 while (z>a && !z[-1]) z--;
>> 262 e2-=sh;
>> 263 }
>> 264 while (e2<0) {
>> (gdb)
>
> Hi,
>
> Changing from "long double" to "double" inside
>
> fmt-fp function in the file
>
>
>
> /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math
> fixes de crash.
>
> I do not know how to properly fix it only for aarch64 and if it is a proper fix.
>
> Regards.
>
>
Sorry, the file is /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math/go-dtoa.c
> Hi,
>
> Changing from "long double" to "double" inside
>
> fmt-fp function in the file
>
>
>
> /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math
> fixes de crash.
>
> I do not know how to properly fix it only for aarch64 and if it is a proper fix.
>
> Regards.
>
>
From: Benny Siegert <bsiegert@netbsd.org>
To: Ramiro Aceves <ea1abz@gmail.com>
Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Wed, 11 Mar 2026 19:28:46 +0000 (UTC)
>> Changing from "long double" to "double" inside
>> fmt-fp function in the file
>> /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math
>> fixes de crash.
>>
>> I do not know how to properly fix it only for aarch64 and if it is a
>> proper fix.
Thanks, this is actually helpful! At the risk of being flamed to death, I
used Gemini to explain the cause of the crash. It suggests that this is a
pointer underflow specifically on aarch64, because the calculation of the
array size in that function is wrong. It suggests this patch:
--- go-dtoa.c
+++ go-dtoa.c
@@ -227,7 +227,7 @@
if (y) y *= 0x1p28, e2-=28;
if (e2<0) a=r=z=big;
- else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
+ else a=r=z=big+sizeof(big)/sizeof(*big) - (LDBL_MANT_DIG+28)/9 - 1;
do {
*z = y;
It also suggests that the code is lifted from musl libc :)
Can you try recompiling goffice0.10 with this change?
Thanks!
--
Benny
Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Wed, 11 Mar 2026 19:31:05 +0000
Responsible-Changed-Why:
take
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Wed, 11 Mar 2026 22:11:03 +0100
El 11/3/26 a las 20:30, Benny Siegert via gnats escribió:
> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>
> From: Benny Siegert <bsiegert@netbsd.org>
> To: Ramiro Aceves <ea1abz@gmail.com>
> Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
> pkgsrc-bugs@netbsd.org
> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> Date: Wed, 11 Mar 2026 19:28:46 +0000 (UTC)
>
> >> Changing from "long double" to "double" inside
> >> fmt-fp function in the file
> >> /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math
> >> fixes de crash.
> >>
> >> I do not know how to properly fix it only for aarch64 and if it is a
> >> proper fix.
>
> Thanks, this is actually helpful! At the risk of being flamed to death, I
> used Gemini to explain the cause of the crash. It suggests that this is a
> pointer underflow specifically on aarch64, because the calculation of the
> array size in that function is wrong. It suggests this patch:
>
> --- go-dtoa.c
> +++ go-dtoa.c
> @@ -227,7 +227,7 @@
> if (y) y *= 0x1p28, e2-=28;
>
> if (e2<0) a=r=z=big;
> - else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
> + else a=r=z=big+sizeof(big)/sizeof(*big) - (LDBL_MANT_DIG+28)/9 - 1;
>
> do {
> *z = y;
>
> It also suggests that the code is lifted from musl libc :)
>
> Can you try recompiling goffice0.10 with this change?
>
> Thanks!
>
> --
> Benny
>
Hi Benny, many thanks for you help. I have tried to apply the patch but it does not apply to pkgsrc-current go-dtoa.c file (I did upgrade to -current
just goffice and gnumeric directories to test as someone pointed out. What version of pkgsrc should I have prior to patch application? 2025Q4? Tell me
please and I will downgrade both directories and apply the patch (only one line change but I want to do it well)
Thanks so much.
From: Ramiro Aceves <ea1abz@gmail.com>
To: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Cc:
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Sun, 15 Mar 2026 09:46:34 +0100
El 11/3/26 a las 20:30, Benny Siegert via gnats escribió:
> The following reply was made to PR pkg/60059; it has been noted by GNATS.
>
> From: Benny Siegert <bsiegert@netbsd.org>
> To: Ramiro Aceves <ea1abz@gmail.com>
> Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
> pkgsrc-bugs@netbsd.org
> Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
> Date: Wed, 11 Mar 2026 19:28:46 +0000 (UTC)
>
> >> Changing from "long double" to "double" inside
> >> fmt-fp function in the file
> >> /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.60/goffice/math
> >> fixes de crash.
> >>
> >> I do not know how to properly fix it only for aarch64 and if it is a
> >> proper fix.
>
> Thanks, this is actually helpful! At the risk of being flamed to death, I
> used Gemini to explain the cause of the crash. It suggests that this is a
> pointer underflow specifically on aarch64, because the calculation of the
> array size in that function is wrong. It suggests this patch:
>
> --- go-dtoa.c
> +++ go-dtoa.c
> @@ -227,7 +227,7 @@
> if (y) y *= 0x1p28, e2-=28;
>
> if (e2<0) a=r=z=big;
> - else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
> + else a=r=z=big+sizeof(big)/sizeof(*big) - (LDBL_MANT_DIG+28)/9 - 1;
>
> do {
> *z = y;
>
> It also suggests that the code is lifted from musl libc :)
>
> Can you try recompiling goffice0.10 with this change?
>
> Thanks!
>
> --
> Benny
>
Hello Benny,
I have recompiled goffice changing only one line manually as you told but it segfaults again (make replace):
netbsd-raspa4# diff -Nru /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.59/goffice/math/go-dtoa.c.orig
/usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.59/goffice/math/go-dtoa.c
--- /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.59/goffice/math/go-dtoa.c.orig 2025-03-01 22:10:00.000000000 +0100
+++ /usr/pkgsrc/misc/goffice0.10/work/goffice-0.10.59/goffice/math/go-dtoa.c 2026-03-15 09:09:03.728612918 +0100
@@ -49,6 +49,14 @@
#define go_finitel isfinite
#endif
+#if defined(__NetBSD__)
+#if (__NetBSD_Version__ >= 699001700)
+/* in <math.h> in newer NetBSDs, should already be included */
+#else
+/* OK, this will lose precision and range, but what else to do? */
+#define frexpl(ldv,i) (long double)frexp((double)ldv, i)
+#endif
+#endif /* __NetBSD__ */
/* musl code starts here */
@@ -234,7 +242,8 @@
if (y) y *= 0x1p28, e2-=28;
if (e2<0) a=r=z=big;
- else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;
+/*else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;*/
+ else a=r=z=big+sizeof(big)/sizeof(*big) - (LDBL_MANT_DIG+28)/9 - 1;
do {
*z = y;
netbsd-raspa4#
netbsd-raspa4$ gdb /usr/pkg/bin/gnumeric
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/bin/gnumeric...
(No debugging symbols found in /usr/pkg/bin/gnumeric)
(gdb) run
Starting program: /usr/pkg/bin/gnumeric
[New LWP 1771 of process 10389]
[New LWP 28988 of process 10389]
[New LWP 21892 of process 10389]
[New LWP 8735 of process 10389]
(gnumeric:10389): GVFS-RemoteVolumeMonitor-WARNING **: 09:37:26.260: cannot open directory /usr/pkg/share/gvfs/remote-volume-monitors: Falló al abrir
la carpeta «/usr/pkg/share/gvfs/remote-volume-monitors»: No such file or directory
[New LWP 27385 of process 10389]
Thread 1 "" received signal SIGSEGV, Segmentation fault.
0x0000fde79e13a13c in fmt_fp (f=f@entry=0xfde796a92400, y=inf, y@entry=0,
w=w@entry=1, p=<optimized out>, p@entry=0, fl=fl@entry=536870918,
t=t@entry=70) at math/go-dtoa.c:249
249 *z = y;
(gdb)
(gdb) list
244 if (e2<0) a=r=z=big;
245 /*else a=r=z=big+sizeof(big)/sizeof(*big) - LDBL_MANT_DIG - 1;*/
246 else a=r=z=big+sizeof(big)/sizeof(*big) - (LDBL_MANT_DIG+28)/9 - 1;
247
248 do {
249 *z = y;
250 y = 1000000000*(y-*z++);
251 } while (y);
252
253 while (e2>0) {
(gdb)
Regards.
Ramiro.
From: Benny Siegert <bsiegert@netbsd.org>
To: Ramiro Aceves <ea1abz@gmail.com>
Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Sun, 15 Mar 2026 15:50:22 +0000 (UTC)
Hi Ramiro,
On Sun, 15 Mar 2026, Ramiro Aceves wrote:
> I have recompiled goffice changing only one line manually as you told but it
> segfaults again (make replace):
I was able to reproduce the issue with gnumeric on my Pinebook Pro, which
is also aarch64. And I saw the same -- it still segfaults, even with the
patch. I also tried a different patch that I adapted from musl-libc
myself, but it also crashes. Sounds like I need to spend more time in gdb
and get back to you. Sorry!
--
Benny
From: Ramiro Aceves <ea1abz@gmail.com>
To: Benny Siegert <bsiegert@netbsd.org>
Cc: gnats-bugs@netbsd.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/60059: math/gnumeric 10.0_2025Q4 segfaults on RPi4
Date: Sun, 15 Mar 2026 16:53:45 +0100
El 15 de marzo de 2026 16:50:22 CET, Benny Siegert <bsiegert@netbsd=2Eorg>=
escribi=C3=B3:
>Hi Ramiro,
>
>On Sun, 15 Mar 2026, Ramiro Aceves wrote:
>
>> I have recompiled goffice changing only one line manually as you told b=
ut it segfaults again (make replace):
>
>I was able to reproduce the issue with gnumeric on my Pinebook Pro, which=
is also aarch64=2E And I saw the same -- it still segfaults, even with the=
patch=2E I also tried a different patch that I adapted from musl-libc myse=
lf, but it also crashes=2E Sounds like I need to spend more time in gdb and=
get back to you=2E Sorry!
>
Hi Benny,
Thanks so much for investigating this issue=2E Keep tuned!
Ramiro=2E
State-Changed-From-To: feedback->open
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 05 May 2026 13:51:48 +0000
State-Changed-Why:
Tried to make the change, it did not fix the problem.
No more feedback needed for now.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.