Date: Sun, 19 Dec 1999 04:50:02 -0800 (PST) From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/15554: malloc fails in OMAGIC programs Message-ID: <199912191250.EAA93066@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/15554; it has been noted by GNATS.
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: dm@reeducation-labor.lcs.mit.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/15554: malloc fails in OMAGIC programs
Date: Sun, 19 Dec 1999 13:41:11 +0100
This looks like a toolchain problem somehow:
173 ktrace RET ktrace 0
173 ktrace CALL execve(0xbfbffd6f,0xbfbffcb0,0xbfbffcb8)
173 ktrace NAMI "./a"
173 a RET execve 0
173 a CALL readlink(0x804a6d4,0xbfbffbb4,0x3f)
173 a NAMI "/etc/malloc.conf"
173 a RET readlink -1 errno 2 No such file or directory
173 a CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
173 a RET mmap 536870912/0x20000000
173 a CALL break(0x804c000)
173 a RET break -1 errno 12 Cannot allocate memory
syv# !107
cc -static -N -o a a.c
syv# nm -n a | head
U _DYNAMIC
08048074 ? _init
0804807c T _start
08048160 t gcc2_compiled.
08048160 T main
08048234 T atexit
080482e4 T strlen
080482fc W __error
080482fc T __error_unthreaded
08048310 T _write
[...]
I thought programs started out at 0x0 or at least close to zero ?
--
Poul-Henning Kamp FreeBSD coreteam member
phk@FreeBSD.ORG "Real hackers run -current on their laptop."
FreeBSD -- It will take a long time before progress goes too far!
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912191250.EAA93066>
