Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2003 15:37:29 +0100
From:      Ferruccio Vitale <ferruccio.vitale@tin.it>
To:        freebsd-hackers@freebsd.org
Subject:   variable size too large?
Message-ID:  <20030314153729.3825d4fe.ferruccio.vitale@tin.it>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030314153729.3825d4fe.ferruccio.vitale>