From owner-freebsd-hackers Fri Mar 14 6:38: 1 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E587E37B401 for ; Fri, 14 Mar 2003 06:38:00 -0800 (PST) Received: from popcs.cs.tin.it (popcs.cs.tin.it [194.243.155.125]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C77E43F93 for ; Fri, 14 Mar 2003 06:37:59 -0800 (PST) (envelope-from ferruccio.vitale@tin.it) Received: (qmail 20257 invoked from network); 14 Mar 2003 14:37:57 -0000 Received: from cruiser.cs.tin.it (HELO cruiser) (212.216.178.193) by popcs.cs.tin.it with SMTP; 14 Mar 2003 14:37:57 -0000 Date: Fri, 14 Mar 2003 15:37:29 +0100 From: Ferruccio Vitale To: freebsd-hackers@freebsd.org Subject: variable size too large? Message-Id: <20030314153729.3825d4fe.ferruccio.vitale@tin.it> X-Mailer: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I'm writing a little multithread program: in my thread function, I allocated a char variable of IP_MAXPACKET size; when I try to compile it, everything goes well, but when I run it, it dies, making a core file. Assume that: 1) the same code, with only one thread, linked to libc, runs normally 2) the same code, with a smaller variable size, linked to libc_r, runs normally 3) I tried to allocate two variables of 64000 bytes in this function (IP_MAXPACKET is equal to 65535), linked to libc_r and runs normally Where am I wrong? :)) Regards, Ferruccio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message