Date: Sat, 14 Sep 2002 23:29:39 +0400 (MSD) From: Maxim Konovalov <maxim@macomnet.ru> To: "Jacques A. Vidrine" <nectar@FreeBSD.org> Cc: Martin Blapp <mb@imp.ch>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/lib/libc/net getaddrinfo.c gethostbydns.c getnetbydns.c name6.c res_query.c res_update.c Message-ID: <20020914231230.Y12575-100000@news1.macomnet.ru> In-Reply-To: <20020914164057.GB92202@madman.nectar.cc> References: <20020914135323.I3162-100000@levais.imp.ch> <20020914164057.GB92202@madman.nectar.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20:40+0400, Sep 14, 2002, Jacques A. Vidrine wrote: > On Sat, Sep 14, 2002 at 02:06:46PM +0200, Martin Blapp wrote: > > > > Hi, > > > > Almost every program which uses DNS is broken now by these commits. This is > > mozilla ... > > Hmm, I cannot reproduce it. What's your environment? > > I have a meeting for the next few hours. I will try to reproduce the > problem this evening. Here is a testcase. It works on -stable and -current with MAXPACKET 1024 but core dumps on -current with MAXPACKET 65536 (today -current). #include <netdb.h> #include <pthread.h> void * teststack(void *dummy) { struct addrinfo *answer, info; getaddrinfo("www.freebsd.org", NULL, &info, &answer); return (NULL); } int main(int argc, char *argv[]) { pthread_t tid; pthread_create(&tid, NULL, teststack, NULL); pthread_exit(NULL); return (0); } %%% There is a thread's stack overflow because libc_r has a default stack limit: PTHREAD_STACK_DEFAULT 65536, and now you allocate all the thread stack in one function. > If anyone else runs into the same, do not be shy about backing it > out --- but please send me any reports! -- Maxim Konovalov, MAcomnet, Internet Dept., system engineer phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020914231230.Y12575-100000>