On May 17, 11:57am, tsugutomo.en...@jp.sony.com (tsugutomo.en...@jp.sony.com) wrote: -- Subject: Re: CVS commit: src/lib/libc/stdlib
| Christos Zoulas <chris...@netbsd.org> writes: | | > Module Name: src | > Committed By: christos | > Date: Fri May 13 23:11:00 UTC 2011 | > | > Modified Files: | > src/lib/libc/stdlib: jemalloc.c malloc.c | > | > Log Message: | > don't let readlink trash errno.; | > | > | > To generate a diff of this commit: | > cvs rdiff -u -r1.22 -r1.23 src/lib/libc/stdlib/jemalloc.c | > cvs rdiff -u -r1.52 -r1.53 src/lib/libc/stdlib/malloc.c | | - Is the existing guard in malloc_init() of malloc.c insufficient? | | - In the malloc_init_hard() of jemalloc.c, there are another calls may | set errno. Especially, the code explicitly handles an error from | sysctl(3). I will take a look, thanks. Which malloc are we using now? The problem manifested itself by just calling strtod("1.0", NULL) in main and looking at errno. christos