Date: Sat, 18 Dec 1999 17:50:03 -0800 (PST) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: freebsd-bugs@FreeBSD.org Subject: kern/15554: malloc fails in OMAGIC programs Message-ID: <199912190150.RAA54409@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/15554; it has been noted by GNATS. From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: dm@reeducation-labor.lcs.mit.edu Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/15554: malloc fails in OMAGIC programs Date: Sat, 18 Dec 1999 20:48:34 -0500 (EST) <<On Sat, 18 Dec 1999 18:31:15 -0500 (EST), dm@reeducation-labor.lcs.mit.edu said: > % cc -static -N -o badomagic badomagic.c > % ./badomagic > malloc failed > Cannot allocate memory It appears that either malloc or execve is getting confused by the fact that the entire program is in a single load segment. Unless you demonstrate that this can cause a panic, I suspect the answer is ``don't do that, then''. For comparison: wollman@khavrinen$ cc -static -N foo.c wollman@khavrinen$ ./a.out malloc failed \^@Cannot allocate memory wollman@khavrinen$ cc -static -N -aout foo.c wollman@khavrinen$ ./a.out bash: ./a.out: cannot execute binary file -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912190150.RAA54409>