Bug#1021420: clisp: problem with reserved ranges during startup on hurd-i386
Package: clisp
Version: 1:2.49.20210628.gitde01f0f
Severity: important
Tags: patch
X-Debbugs-Cc: flaviocruz@gmail.com
Building the package from source on hurd-i386 will make clisp throw the
following
message at startup:
Warning: reserving address range 0x18060000...0xbfffffff that contains memory
mappings. clisp might crash later!
Attached patch updates MAPPABLE_ADDRESS_RANGE_START to reflect the new memory
layout set in 2021 [1]
[1]
http://patchwork.ozlabs.org/project/glibc/patch/20211231172645.1589461-1-samuel.thibault@ens-
lyon.org/
This was also submitted upstream at https://gitlab.com/gnu-
clisp/clisp/-/merge_requests/6
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.19.0-1-amd64 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages clisp depends on:
ii libc6 2.34-8
ii libffcall1b 2.4-2
ii libreadline8 8.2~rc2-2
ii libsigsegv2 2.14-1
ii libtinfo6 6.3+20220423-2
ii sensible-utils 0.0.17
clisp recommends no packages.
Versions of packages clisp suggests:
pn clisp-doc <none>
pn clisp-module-berkeley-db <none>
pn clisp-module-clx <none>
pn clisp-module-dbus <none>
pn clisp-module-fastcgi <none>
pn clisp-module-gdbm <none>
pn clisp-module-libsvm <none>
pn clisp-module-pari <none>
pn clisp-module-pcre <none>
pn clisp-module-postgresql <none>
pn clisp-module-zlib <none>
pn gdb <none>
pn hyperspec <none>
pn slime <none>
-- no debconf information
>From 03611d4544b98e0b09c7f07b2c253c61a018a5c6 Mon Sep 17 00:00:00 2001
From: Flavio Cruz <flaviocruz@gmail.com>
Date: Sat, 8 Oct 2022 00:23:27 -0400
Subject: [PATCH] Bump MAPPABLE_ADDRESS_RANGE_START for Hurd
---
src/lispbibl.d | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lispbibl.d b/src/lispbibl.d
index 70d47d148..0961f167b 100644
--- a/src/lispbibl.d
+++ b/src/lispbibl.d
@@ -2378,13 +2378,13 @@ typedef enum {
/* On Hurd/i386:
MMAP_FIXED_ADDRESS_HIGHEST_BIT = 30
CODE_ADDRESS_RANGE = 0x00000000UL or 0x08000000UL
- MALLOC_ADDRESS_RANGE = 0x08000000UL
+ MALLOC_ADDRESS_RANGE = 0x20000000UL
SHLIB_ADDRESS_RANGE = 0x01000000UL
STACK_ADDRESS_RANGE = 0x01000000UL
Addresses >= 0xC0000000UL are not mmapable.
There is room from 0x11000000UL to 0xBFFFFFFFUL, but let's keep some
distance. */
- #define MAPPABLE_ADDRESS_RANGE_START 0x18000000UL
+ #define MAPPABLE_ADDRESS_RANGE_START 0x28000000UL
#define MAPPABLE_ADDRESS_RANGE_END 0xBFFFFFFFUL
#endif
#if (defined(__FreeBSD__) || defined(UNIX_GNU_FREEBSD)) && defined(I80386)
--
2.35.1
Reply to: