Date: Sat, 21 Sep 1996 08:20:51 +1000 (EST) From: John Birrell <jb@cimlogic.com.au> To: hsu@freefall.freebsd.org (Jeffrey Hsu) Cc: hackers@FreeBSD.org, jb@cimlogic.com.au Subject: Re: libc_r bug Message-ID: <199609202220.IAA13922@freebsd3.cimlogic.com.au> In-Reply-To: <199609200828.BAA01366@freefall.freebsd.org> from Jeffrey Hsu at "Sep 20, 96 01:28:29 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> The following program exhibits a bug in the latest version of libc_r. > If the two lines are reversed, then everything's okay. > > main() > { > write(1, "hi", 2); > printf("hello world\n"); > } > I see. I assume write() is returning errno = EBADF. Try adding... _thread_fd_table_init(0); _thread_fd_table_init(1); _thread_fd_table_init(2); to _thread_init() [in uthread_init.c] after the loop that sets _thread_fd_table[i] to NULL. Regards, -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au 119 Cecil Street Ph +61 3 9690 6900 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609202220.IAA13922>