NetBSD Problem Report #59508
From www@netbsd.org Fri Jul 4 14:07:12 2025
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 "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2218B1A923C
for <gnats-bugs@gnats.NetBSD.org>; Fri, 4 Jul 2025 14:07:12 +0000 (UTC)
Message-Id: <20250704140710.E34101A923E@mollari.NetBSD.org>
Date: Fri, 4 Jul 2025 14:07:10 +0000 (UTC)
From: nathanialsloss@yahoo.com.au
Reply-To: nathanialsloss@yahoo.com.au
To: gnats-bugs@NetBSD.org
Subject: Change reqest - disable ssp for m68k ports and packages
X-Send-Pr-Version: www-1.0
>Number: 59508
>Category: port-m68k
>Synopsis: Change reqest - disable ssp for m68k ports and packages
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-m68k-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 04 14:10:00 +0000 2025
>Last-Modified: Sun Jul 06 12:25:00 +0000 2025
>Originator: Nat Sloss
>Release: NetBSD-current 10.99.14
>Organization:
>Environment:
NetBSD princess 10.99.14 NetBSD 10.99.14 (WSFBPWR) #465: Wed Jul 2 10:28:33 AEST 2025 build@microrusty:/home/build/mac68k-sf/sys/arch/mac68k/compile/WSFBPWR mac68k
>Description:
Packages and X11 sets built with SSP enabled which is the default on mac68k and I'm guessing other m68k platforms break with various SIGABRT due to ssp and possible mis-compilation of sources.
If you build tools & release with ssp X will not start (originally I thought this was just limited to Xfont libs) and same for some packages ie Motif and x11/tinyx-wscons.
>How-To-Repeat:
Try to start X with the default ssp setting on mac68k or other m68k platforms.
>Fix:
I believe the preferred solution is to disable ssp for NetBSD m68k platforms and packages. Hopefully before the next release and pkgsrc quarterly.
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: port-m68k/59508: Change reqest - disable ssp for m68k ports and
packages
Date: Fri, 4 Jul 2025 16:15:37 +0200
On Fri, Jul 04, 2025 at 02:10:01PM +0000, nathanialsloss@yahoo.com.au wrote:
> If you build tools & release with ssp X will not start (originally I
> thought this was just limited to Xfont libs) and same for some packages
> ie Motif and x11/tinyx-wscons.
Aren't those bugs in X or the pkgs, which should be fixed instead?
Some X stuff seems to work fine (I used rxvt on amiga very recentish,
but did not start an X server).
Or is this a compiler bug that should be analyzed in more detail?
Martin
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: port-m68k/59508: Change reqest - disable ssp for m68k ports and
packages
Date: Sat, 5 Jul 2025 03:29:29 +0900
X.org server in NetBSD 10.1 release binaries works on LC630 and LUNA,
and Xsun server in 10.1 and -current also works on Sun 3/60 here.
---
Izumi Tsutsui
From: "Nathanial Sloss" <nat@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59508 CVS commit: src/external/mit/xorg/lib/libXfont
Date: Sun, 6 Jul 2025 06:47:59 +0000
Module Name: src
Committed By: nat
Date: Sun Jul 6 06:47:59 UTC 2025
Modified Files:
src/external/mit/xorg/lib/libXfont: Makefile
Log Message:
Sprinkle -fno-stack-protector.
Fixes issue with SSP and m68k.
The same was done earlier by rin@ for Xfont2.
Addresses PR port-m68k/59508.
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/mit/xorg/lib/libXfont/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: gnats-bugs@netbsd.org
Cc: port-m68k-maintainer@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-m68k/59508: Change reqest - disable ssp for m68k ports and packages
Date: Sun, 6 Jul 2025 22:18:05 +1000
On Sat, 5 Jul 2025 00:20:01 Martin Husemann via gnats wrote:
> The following reply was made to PR port-m68k/59508; it has been noted by
> GNATS.
>
> From: Martin Husemann <martin@duskware.de>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: port-m68k/59508: Change reqest - disable ssp for m68k ports
> and packages
> Date: Fri, 4 Jul 2025 16:15:37 +0200
>
> On Fri, Jul 04, 2025 at 02:10:01PM +0000, nathanialsloss@yahoo.com.au
wrote:
> > If you build tools & release with ssp X will not start (originally I
> > thought this was just limited to Xfont libs) and same for some packages
> > ie Motif and x11/tinyx-wscons.
>
> Aren't those bugs in X or the pkgs, which should be fixed instead?
> Some X stuff seems to work fine (I used rxvt on amiga very recentish,
> but did not start an X server).
>
> Or is this a compiler bug that should be analyzed in more detail?
>
> Martin
Agreed! It was really a suggestion as a stop-gap measure before -11.
So far I've adressed the issue with libXfont and X11 works with SSP enabled.
I just have to rebuild my small set of packages again with ssp to see if all
is well. If it is I'm happy to close the PR.
Best regards,
Nat
From: Nat Sloss <nathanialsloss@yahoo.com.au>
To: gnats-bugs@netbsd.org
Cc: port-m68k-maintainer@netbsd.org,
gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: port-m68k/59508: Change reqest - disable ssp for m68k ports and packages
Date: Sun, 6 Jul 2025 22:20:01 +1000
On Sat, 5 Jul 2025 04:40:02 Izumi Tsutsui via gnats wrote:
> The following reply was made to PR port-m68k/59508; it has been noted by
> GNATS.
>
> From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
> To: gnats-bugs@netbsd.org
> Cc: tsutsui@ceres.dti.ne.jp
> Subject: Re: port-m68k/59508: Change reqest - disable ssp for m68k ports
> and packages
> Date: Sat, 5 Jul 2025 03:29:29 +0900
>
> X.org server in NetBSD 10.1 release binaries works on LC630 and LUNA,
> and Xsun server in 10.1 and -current also works on Sun 3/60 here.
> ---
> Izumi Tsutsui
Thanks for testing this.
I've since fixed the issue with libXfont and tinyx-wscons works as expected
with SSP enabled.
Best regards,
Nat
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.