Subject: pkg/37304: lang/clisp does not work with jemalloc libc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Yakovetsky Vladimir <yx@x.ua>
List: pkgsrc-bugs
Date: 11/08/2007 11:05:00
>Number: 37304
>Category: pkg
>Synopsis: lang/clisp does not work with jemalloc libc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 08 11:05:00 +0000 2007
>Originator: Yakovetsky Vladimir
>Release: NetBSD 4.99.34
>Environment:
System: NetBSD lrou.x.ua 4.99.34 NetBSD 4.99.34 (lrou_odd-1.859) #0: Tue Nov 6 15:12:51 EET 2007 Yakovetsky Vladimir <yx@x.ua>@lrou.x.ua:/sys/arch/i386/compile/lrou_odd i386
Architecture: i386
Machine: i386
>Description:
lang/clisp does not work with jemalloc libc
(probable problem in lisp initmemory method itself)
>How-To-Repeat:
with jemalloc libc
(jemalloc - default allocator since 2007/10/06):
% /usr/pkg/bin/clisp
Cannot map memory to address 0xc94e3000 .
[spvw_mmap.d:359] errno = ENOENT: No such file or directory.
/usr/pkg/lib/clisp/base/lisp.run: not enough memory for initialization
(note: 0xc94e3000 > VM_MAX_USER_ADDRESS)
% ldd /usr/pkg/lib/clisp/base/lisp.run | grep libc.so
-lc.12 => /usr/lib/libc.so.12
% ident /usr/lib/libc.so.12 | grep malloc
$NetBSD: jemalloc.c,v 1.10 2007/10/22 04:16:48 simonb Exp $
with phkmalloc libc:
% ident /usr/lib/libc-phk.so.12 | grep malloc
$NetBSD: malloc.c,v 1.48 2006/11/24 19:37:02 christos Exp $
% env LD_PRELOAD=/usr/lib/libc-phk.so.12 /usr/pkg/bin/clisp
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8
Copyright (c) Bruno Haible, Michael Stoll 1992, 1993
Copyright (c) Bruno Haible, Marcus Daniels 1994-1997
Copyright (c) Bruno Haible, Pierpaolo Bernardi, Sam Steingold 1998
Copyright (c) Bruno Haible, Sam Steingold 1999-2000
Copyright (c) Sam Steingold, Bruno Haible 2001-2006
[1]>^Z
>Fix:
Workaround only:
use libc with phkmalloc (i.e. libc build with USE_JEMALLOC=no).