Subject: ElectricFence barfs on mmap
To: None <port-sparc64@netbsd.org>
From: Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
List: port-sparc64
Date: 11/06/2001 20:17:50
I tried compiling electricfence from pkgsrc (because I want to track down a
SIGBUS in tripwire), but one of the tests invokes mmap with a
negative len:
24772 tstheap CALL mmap(0x405ce000,0xffffffffb3494000,0x3,0x1002,0xffffffffffffffff,0,0)
24772 tstheap RET mmap -1 errno 22 Invalid argument
To make things even worse, gdb doesn't really work because
it can't even do a simple "bt" in main.c. If somebody could
comment on that as well even better :-) The stackframe is
almost always trashed.
Does that mean that I should look somewhere else, e.g. in libc
or a broken gcc? I'm currently compiling a new world which might
take a couple of hours. If I'm not mistkaen the kernel should be
- more or less - not responsible for this borkedness.
FWIW, uname says:
NetBSD menelaos 1.5Y NetBSD 1.5Y (MENELAOS) #0: Mon Nov 5 14:15:41 CET 2001\
stolz@menelaos:/usr/src/sys/arch/sparc64/compile/MENELAOS sparc64
--
Volker Stolz * stolz@i2.informatik.rwth-aachen.de * PGP + S/MIME