|
From: Yasushi S. <ys...@hp...> - 2003-05-20 19:23:06
|
Here's a really simple program:
#include <netdb.h>
int main()
{
gethostbyname("www.yahoo.com");
}
When I compile this program on Redhat 8 (glibc-2.2.93-5, gcc-3.2-7) and run it under helgrind (1.9.6), it dumps core.
% cc -pthread foo.c
% valgrind --skin=helgrind a.out
==3471== Helgrind, a data race detector for x86-linux.
==3471== Copyright (C) 2002, and GNU GPL'd, by Nicholas Nethercote.
==3471== Using valgrind-1.9.6, a program instrumentation system for x86-linux.
==3471== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==3471== Estimated CPU clock rate is 1000 MHz
==3471== For more details, rerun with: -v
==3471==
Segmentation fault (core dumped)
%
By the way, this problem doesn't happen with valgrind 1.9.3, but it does with 1.9.5. Any help is appreciated..
thanks,
yaz
|