Date: Sat, 25 Mar 2000 12:35:55 -0800 From: Arun Sharma <adsharma@sharmas.dhs.org> To: "Jordan K. Hubbard" <jkh@zippy.cdrom.com> Cc: Poul-Henning Kamp <phk@critter.freebsd.dk>, FreeBSD Current <freebsd-current@FreeBSD.ORG> Subject: Re: malloc.conf Message-ID: <20000325123555.B10626@sharmas.dhs.org> In-Reply-To: <4703.954015110@zippy.cdrom.com>; from Jordan K. Hubbard on Sat, Mar 25, 2000 at 12:11:50PM -0800 References: <20000325120159.A10568@sharmas.dhs.org> <4703.954015110@zippy.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 25, 2000 at 12:11:50PM -0800, Jordan K. Hubbard wrote: > > I did and created malloc.conf as documented there. And things were > > fine after that. Wouldn't it be better if the build process created > > a default /etc/malloc.conf ? > > It's purely an optional file; one doesn't need to be installed by > default in order for things to behave as expected. Consider it > a debugging feature. You're right. It works for the default case. I was doing an unsupported operation: experimenting with rfork and the clone() call from Linuxthreads port. However, the mere presence of clone() in the same executable makes malloc unhappy. 8668 test CALL readlink(0x280f1114,0xbfbff7b8,0x3f) 8668 test NAMI "/etc/malloc.conf" 8668 test RET readlink -1 errno 2 No such file or directory 8668 test CALL sigprocmask(0x1,0x28060000,0x28060010) 8668 test RET sigprocmask 0 8668 test CALL sigprocmask(0x3,0x28060010,0) 8668 test RET sigprocmask 0 8668 test PSIG SIGSEGV SIG_DFL 8668 test NAMI "test.core" The program is: #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> main() { int status; pid_t pid; void *stack; stack = malloc(4096); } It works fine stand alone. But when linked with some other stuff, it core dumps. If I create /etc/malloc.conf, it's ok. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000325123555.B10626>