NetBSD Problem Report #57781

From mlelstv@serpens.de  Sun Dec 17 17:23:50 2023
Return-Path: <mlelstv@serpens.de>
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 34FFD1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 17 Dec 2023 17:23:50 +0000 (UTC)
Message-Id: <20231217172331.A838473331@serpens.de>
Date: Sun, 17 Dec 2023 18:23:28 +0100 (MET)
From: mlelstv@netbsd.org
Reply-To: mlelstv@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: lang/sbcl build crashes on i386
X-Send-Pr-Version: 3.95

>Number:         57781
>Category:       pkg
>Synopsis:       lang/sbcl build crashes on i386
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 17 17:25:00 +0000 2023
>Last-Modified:  Sun Dec 17 17:30:02 +0000 2023
>Originator:     Michael van Elst
>Release:        NetBSD 10
>Organization:

>Environment:


System: NetBSD slowpoke 10.0 NetBSD 10.0 (LIBKVER) #0: Tue Jan 19 00:00:00 UTC 2038 root@localhost:/sys/arch/i386/compile/LIBKVER i386
Architecture: i386
Machine: i386
>Description:

Building lang/sbcl results in a hanging sbcl process. The last output is:

"obj/from-xc/src/code/type-class.lisp-obj" Fault @ 0x60100028, PC=0x61408823, page 256 (~WP) mark=0x1 gc_active=0
  mixed_region=0x0:0x1000
  page.scan_start: 0x60100000 .words_used: 1018 .type: 3 .gen: 6
fatal error encountered in SBCL pid 20065:
Feh.

   0: fp=0xf73fecd8 pc=0x806da33 Foreign function gencgc_handle_wp_violation
   1: fp=0xf73fecf4 pc=0x8068c4f Foreign function memory_fault_handler
   2: fp=0xf73fed14 pc=0x805c5d9 Foreign function describe_internal_error
Welcome to LDB, a low-level debugger for the Lisp runtime environment.
ldb> 

>How-To-Repeat:
Build lang/sbcl on i386.
>Fix:


>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: Robert Swindells <rjs@netbsd.org>
Subject: Re: pkg/57781: lang/sbcl build crashes on i386
Date: Sun, 17 Dec 2023 18:28:03 +0100

 --UfCjHkrmGcFEFeVu
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Sun, Dec 17, 2023 at 05:25:00PM +0000, mlelstv@netbsd.org wrote:
 > >Number:         57781
 > >Category:       pkg
 > >Synopsis:       lang/sbcl build crashes on i386

 Which version of the package is that? It was disabled for i386 a short
 while ago, but then updated, with supposedly fixed i386 support.
  Thomas

 --UfCjHkrmGcFEFeVu
 Content-Type: message/rfc822
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit

 Return-Path: <bounces-pkgsrc-changes-owner-wiz=netbsd.org@NetBSD.org>
 Delivered-To: wiz@gatalith.at
 Received: from gatalith.at
 	by gatalith.at with LMTP
 	id wDIsJ2EBZmX4XQAA4iLUCg
 	(envelope-from <bounces-pkgsrc-changes-owner-wiz=netbsd.org@NetBSD.org>)
 	for <wiz@gatalith.at>; Tue, 28 Nov 2023 16:04:01 +0100
 Received: from mail.netbsd.org (mail.NetBSD.org [IPv6:2001:470:a085:999::25])
 	by gatalith.at (Postfix) with ESMTPS id 552D4390A26
 	for <wiz@gatalith.at>; Tue, 28 Nov 2023 16:04:00 +0100 (CET)
 Received: by mail.netbsd.org (Postfix)
 	id 4F81B8507D; Tue, 28 Nov 2023 15:03:58 +0000 (UTC)
 Delivered-To: wiz@netbsd.org
 Received: by mail.netbsd.org (Postfix, from userid 605)
 	id C02E685063; Tue, 28 Nov 2023 15:03:57 +0000 (UTC)
 Delivered-To: pkgsrc-changes@NetBSD.org
 Received: from localhost (localhost [127.0.0.1])
 	by mail.netbsd.org (Postfix) with ESMTP id F02FE85062
 	for <pkgsrc-changes@NetBSD.org>; Tue, 28 Nov 2023 15:03:56 +0000 (UTC)
 X-Virus-Scanned: amavisd-new at netbsd.org
 Received: from mail.netbsd.org ([127.0.0.1])
 	by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025)
 	with ESMTP id avuKQj70JS_G for <pkgsrc-changes@netbsd.org>;
 	Tue, 28 Nov 2023 15:03:55 +0000 (UTC)
 Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984])
 	by mail.netbsd.org (Postfix) with ESMTP id A53A184D3E
 	for <pkgsrc-changes@NetBSD.org>; Tue, 28 Nov 2023 15:03:55 +0000 (UTC)
 Received: by cvs.NetBSD.org (Postfix, from userid 500)
 	id 9E982FA40; Tue, 28 Nov 2023 15:03:55 +0000 (UTC)
 Content-Transfer-Encoding: 7bit
 Content-Type: multipart/mixed; boundary="_----------=_1701183835156800"
 MIME-Version: 1.0
 Date: Tue, 28 Nov 2023 15:03:55 +0000
 From: "Robert Swindells" <rjs@netbsd.org>
 Subject: CVS commit: pkgsrc/lang/sbcl
 To: pkgsrc-changes@NetBSD.org
 Reply-To: rjs@netbsd.org
 X-Mailer: log_accum
 Message-Id: <20231128150355.9E982FA40@cvs.NetBSD.org>
 Sender: pkgsrc-changes-owner@NetBSD.org
 List-Id: <pkgsrc-changes.NetBSD.org>
 Precedence: bulk
 List-Unsubscribe: <mailto:majordomo@NetBSD.org?subject=Unsubscribe%20pkgsrc-changes&body=unsubscribe%20pkgsrc-changes>

 This is a multi-part message in MIME format.

 --_----------=_1701183835156800
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 Content-Type: text/plain; charset="UTF-8"

 Module Name:	pkgsrc
 Committed By:	rjs
 Date:		Tue Nov 28 15:03:55 UTC 2023

 Modified Files:
 	pkgsrc/lang/sbcl: Makefile PLIST distinfo

 Log Message:
 Update to sbcl-2.3.11.

 Enable NetBSD/i386 build again.

 Changes in sbcl-2.3.11 relative to sbcl-2.3.10

     * minor incompatible change: streams with an external-format
       specified with :REPLACEMENT will use their replacement data once
       per stream unit that causes a decoding error (rather than, in
       some cases, once for a sequence of bytes none of which is a
       valid character start position for that external-format).
     * minor incompatible change: external-format designators with
       unsupported or unrecognized options now signal an error when
       used.
     * enhancement: During generic function dispatch, for a generic
       function using standard- or short-method-combination, if there
       are no applicable primary methods the system will call the
       generic function SB-PCL:NO-PRIMARY-METHOD, whose default
       behaviour is to signal an error. Users may define methods on
       this generic function.
     * enhancement: external formats for unibyte encodings and utf-8
       now support newline variants.
     * enhancement: character decoding and encoding errors signalled by
       stream or octet functions now provide a USE-VALUE restart for
       handlers to provide replacement input or output.
     * enhancement: READ-SEQUENCE and WRITE-SEQUENCE support
       user-defined sequences; the default implementation proceeds
       element-by-element, reading or writing single bytes or
       characters to or from the stream as appropriate.
     * bug fix: OCTETS-TO-STRING using unibyte external formats with
       unallocated codepoints (e.g. iso-8859-3) correctly signal or use
       replacements rather than taking bits from the address of NIL and
       converting those bits to a character.
     * bug fix: FILE-STRING-LENGTH now returns NIL if the input datum
       is not encodable in the stream's external format.
     * bug fix: table-based multibyte external formats (EUC-JP,
       Shift-JIS, GBK) now honour a replacement character (in the
       external format or through restarts) when encoding to octets.
     * bug fix: converting from octets using the UCS-2, UCS-4 and
       UTF-32 external formats no longer reads past the end of an octet
       array with a non-integral number of two- or four-byte units.
     * bug fix: converting from octets using the UCS-2, UCS-4, UTF-16
       or UTF-32 external formats now returns a simple string, as
       required by the type declaration of OCTETS-TO-STRING.
     * bug fix: providing an invalid external format argument to OPEN
       or WITH-OPEN-FILE (or the internal MAKE-FD-STREAM) no longer
       leaks a file descriptor.
     * bug fix: SB-ROTATE-BYTE recognizes out-of-relevant-range BYTE
       specifications for integers before attempting to cons up
       enormous bignums for masking and shifting. (#2042937)
     * bug fix: fix type derivation on compiling SB-ROTATE-BYTE forms
       with non-zero POSITION in the byte specifier. (#2042775)
     * bug fix: fix multiple assembler errors when compiling
       MAKE-ARRAY, MAKE-STRING and similar with a large constant
       size. (#2037347, #2038744)
     * bug fix: fix internal error when compiling (SETF SBIT) with a
       large constant index. (#2037415)
     * bug fix: fix internal compiler error on invalid lambda list
       parameters in LABELS. (#2040334)
     * bug fix: fix internal compiler error when compiling some
       infinitely-recursive LABELS forms. (#2042704)
     * bug fix: fix internal compiler error when attempting to inline a
       jump to a label that has been deleted. (#2043262)
     * bug fix: FILL-POINTER should never be made to go negative. (#2042452)
     * optimization: external formats with :REPLACEMENT no longer bind
       handlers for coding errors around conversion functions, and so
       should cons less and be faster.
     * optimization: when the :EXTERNAL-FORMAT argument to
       STRING-TO-OCTETS or OCTETS-TO-STRING is a compile-time constant,
       the external format is resolved at load time rather than on each
       call.
     * optimization: the compiler is able to constrain the types of
       inputs to some functions given a derived or asserted type of the
       function's return value.
     * optimization: the compiler performs fewer redundant type checks
       in ASSOC, GETF and similar functions.

 Changes in sbcl-2.3.10 relative to sbcl-2.3.9

     * enhancement: The compiler now allows stack allocating vectors of
       any size on all safety levels, not just those which it can prove
       are of sub-page sizes. It can do this because it now inserts
       code to check for stack overflow explicitly on higher safety
       levels.
     * enhancements to the disassembler:
         * on arm64, x86-64, DISASSEMBLE annotates references to static
           symbols.
     * bug fix: calls to generic functions now detect erroneous
       keywords (in the sense of CLHS 7.6.5) passed as arguments even
       when auxiliary methods are applicable.
     * bug fix: the standard method on SB-MOP:COMPUTE-EFFECTIVE-METHOD
       no longer inserts calls to implementation-defined local
       macros. (reported by Daniel KochmaƄski)
     * bug fix: compiler error from state-machine-like LABELS forms in
       some circumstances. (#2037318)
     * bug fix: fix compile-time error in constant-folding RATIONAL on
       literal float infinities. (#2037455)
     * bug fix: failure on x86-64 to assemble code for EQL tests of
       comparisons with immediates. (#2037456)
     * bug fix: infinite loop in the compiler for simplification of
       type tests of complicated union types. (#2038112, reported by
       Paul M. Rodriguez)
     * bug fix: inability to dump a literal displaced array containing
       copies of its displacement target. (#2038233, reported by James
       Kalenius)
     * bug fix: compiler error in LOGBITP type derivation. (#2038241)
     * bug fix: compiler error in AREF type derivation. (#2038659)
     * bug fix: compiler internal consistency failure in overflow type
       checks. (#2038736)
     * bug fix: work around an infinite loop in type simplification by
       not providing such types from the compiler. (#2038980, reported
       by Richard Holcombe)
     * bug fix: spurious run-time argument count errors from generic
       function calls on arm64. (#2039006, reported by fiddlerwoaroof)
     * bug fix: errors in SCALE-FLOAT on floating-point
       infinities. (#2039613)
     * bug fix: ROOM is slightly more robust to
       incompletely-initialized instances at the point of running
       ROOM. (Reported by Andreas Franke)
     * bug fix: finalizers saved through SAVE-LISP-AND-DIE and
       subsequently executed do not trigger memory faults. (Reported by
       Bohong Huang)
     * optimization: improvements to type derivation for ISQRT,
       INTEGER-LENGTH, LOGCOUNT, LOG, DENOMINATOR.

 Changes in sbcl-2.3.9 relative to sbcl-2.3.8

     * enhancement: stack allocation via DYNAMIC-EXTENT now applies to
       all values that a variable can take on (for example via SETQ),
       not just the initial binding. This permits for example building
       complex or recursive structures on the stack more easily via
       iteration. See the updated manual entry for more details.
     * minor incompatible change: some interfaces in the SB-POSIX
       contrib module adhere to the spec that a NULL result from the C
       library is an error if and only if errno was altered by the
       call. SYSCALL-ERROR will be signaled if so.
     * enhancement: the SB-POSIX contrib module provides DO-PASSWDS and
       DO-GROUPS to allow users to iterate over password and group
       databases safely.
     * platform support:
         * support for Darwin on x86 and PowerPC has been
           restored. (#2033287, thanks to Kirill A. Korinsky, Sergey
           Fedorov and barracuda156)
     * bug fix: miscompilation due to erroneous type derivation in the
       presence of multiplication of fixnums by ratios. (#2033695,
       reported by Patrick Dussud)
     * bug fix: compiler error when compiling signed- and unsigned
       64-bit type checks in some cases. (#2033997, reported by Eric
       Smith)
     * bug fix: compiler error when the :INITIAL-CONTENTS argument to
       MAKE-ARRAY is a constant non-sequence. (#2037328)
     * bug fix: compiler error when constant-folding sequence functions
       with :TEST or :KEY functions erroring on the given
       sequence. (#2037341)
     * bug fix: compiler error when arguments to array or sequence
       functions imply a very large sequence size. (#2037443, #2037348)
     * bug fix: compiler error when the return value of ADJUST-ARRAY is
       not used. (#2037450)
     * optimization: function types derived by the compiler can in some
       cases be propagated backwards through the intermediate
       representation.
     * optimization: better type derivations for LDB, LOGBITP, RATIO.
     * optimization: eliminate bound checks in more cases involving
       transitive comparisons.


 To generate a diff of this commit:
 cvs rdiff -u -r1.101 -r1.102 pkgsrc/lang/sbcl/Makefile
 cvs rdiff -u -r1.25 -r1.26 pkgsrc/lang/sbcl/PLIST
 cvs rdiff -u -r1.77 -r1.78 pkgsrc/lang/sbcl/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


 --_----------=_1701183835156800
 Content-Disposition: inline
 Content-Length: 3146
 Content-Transfer-Encoding: binary
 Content-Type: text/x-diff; charset=us-ascii

 Modified files:

 Index: pkgsrc/lang/sbcl/Makefile
 diff -u pkgsrc/lang/sbcl/Makefile:1.101 pkgsrc/lang/sbcl/Makefile:1.102
 --- pkgsrc/lang/sbcl/Makefile:1.101	Thu Nov 23 08:36:21 2023
 +++ pkgsrc/lang/sbcl/Makefile	Tue Nov 28 15:03:55 2023
 @@ -1,7 +1,7 @@
 -# $NetBSD: Makefile,v 1.101 2023/11/23 08:36:21 wiz Exp $
 +# $NetBSD: Makefile,v 1.102 2023/11/28 15:03:55 rjs Exp $

  DISTNAME=		${PKGNAME_NOREV}-source
 -PKGNAME=		sbcl-2.3.8
 +PKGNAME=		sbcl-2.3.11
  CATEGORIES=		lang
  MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=sbcl/}
  EXTRACT_SUFX=		.tar.bz2
 @@ -24,10 +24,6 @@ WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}

  MKPIE_SUPPORTED=no

 -# creates process that needs to be 'kill -9'ed
 -# https://mail-index.netbsd.org/pkgsrc-bulk/2023/11/21/msg024562.html
 -BROKEN_ON_PLATFORM=	NetBSD-*-i386
 -
  .include "../../mk/bsd.prefs.mk"

  #
 @@ -56,6 +52,12 @@ UNLIMIT_RESOURCES=	datasize
  TOOL_DEPENDS+=		abcl-[0-9]*:../../lang/abcl
  .endif

 +PLIST_VARS+=		simd
 +
 +.if ${MACHINE_ARCH} == "x86_64"
 +PLIST.simd=		yes
 +.endif
 +
  SUBST_CLASSES+=			fix-paths
  SUBST_STAGE.fix-paths=		pre-configure
  SUBST_MESSAGE.fix-paths=	Fixing absolute paths.

 Index: pkgsrc/lang/sbcl/PLIST
 diff -u pkgsrc/lang/sbcl/PLIST:1.25 pkgsrc/lang/sbcl/PLIST:1.26
 --- pkgsrc/lang/sbcl/PLIST:1.25	Sat Jun  3 12:42:24 2023
 +++ pkgsrc/lang/sbcl/PLIST	Tue Nov 28 15:03:55 2023
 @@ -1,4 +1,4 @@
 -@comment $NetBSD: PLIST,v 1.25 2023/06/03 12:42:24 rjs Exp $
 +@comment $NetBSD: PLIST,v 1.26 2023/11/28 15:03:55 rjs Exp $
  bin/sbcl
  lib/sbcl/contrib/asdf.fasl
  lib/sbcl/contrib/sb-aclrepl.asd
 @@ -33,8 +33,8 @@ lib/sbcl/contrib/sb-rotate-byte.asd
  lib/sbcl/contrib/sb-rotate-byte.fasl
  lib/sbcl/contrib/sb-rt.asd
  lib/sbcl/contrib/sb-rt.fasl
 -lib/sbcl/contrib/sb-simd.asd
 -lib/sbcl/contrib/sb-simd.fasl
 +${PLIST.simd}lib/sbcl/contrib/sb-simd.asd
 +${PLIST.simd}lib/sbcl/contrib/sb-simd.fasl
  lib/sbcl/contrib/sb-simple-streams.asd
  lib/sbcl/contrib/sb-simple-streams.fasl
  lib/sbcl/contrib/sb-sprof.asd

 Index: pkgsrc/lang/sbcl/distinfo
 diff -u pkgsrc/lang/sbcl/distinfo:1.77 pkgsrc/lang/sbcl/distinfo:1.78
 --- pkgsrc/lang/sbcl/distinfo:1.77	Thu Aug 31 21:05:39 2023
 +++ pkgsrc/lang/sbcl/distinfo	Tue Nov 28 15:03:55 2023
 @@ -1,8 +1,8 @@
 -$NetBSD: distinfo,v 1.77 2023/08/31 21:05:39 rjs Exp $
 +$NetBSD: distinfo,v 1.78 2023/11/28 15:03:55 rjs Exp $

 -BLAKE2s (sbcl-2.3.8-source.tar.bz2) = 216ffb8e638621b2f3e1a16746e705269d65d62e4d2622f53d2739eb7126cd9b
 -SHA512 (sbcl-2.3.8-source.tar.bz2) = ae718151d117df0b1f4a83ffbaa0508cec1bfa686462db3a2e84d06c93ca6cd1fbbaa685d82dc9cb3a2e7ef023df94b291c4160e9a5696e16886c616da645147
 -Size (sbcl-2.3.8-source.tar.bz2) = 7562146 bytes
 +BLAKE2s (sbcl-2.3.11-source.tar.bz2) = 151eb6c4359fef0c622841d24da4729992b2b2432fa88b44a50face08e4c559f
 +SHA512 (sbcl-2.3.11-source.tar.bz2) = 47d4c6dfb809fb97e61677c74e5d9905d5a8d5118bad1120996c1dcc3c3105272046b5b2e6db0fc8e6fb45a1aea5dc7713ef7ee1c8ae7a58da807096e6c1e971
 +Size (sbcl-2.3.11-source.tar.bz2) = 7688028 bytes
  SHA1 (patch-ab) = b272bee6fc39ede638cbf71106150044a2977596
  SHA1 (patch-clean.sh) = 8dd795727c2e2cba2c4b5ca8cc4972c89eb6ecaa
  SHA1 (patch-make-genesis-2.sh) = 5d61f2662795c93aabfaa18ef686725d2ed9384a


 --_----------=_1701183835156800--


 --UfCjHkrmGcFEFeVu--

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.