From: Yasushi S. <ys...@hp...> - 2003-05-21 07:11:43
|
Julian Seward wrote: >On Tuesday 20 May 2003 10:24 pm, Nicholas Nethercote wrote: > > >>On Tue, 20 May 2003, Yasushi Saito wrote: >> >> >>>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. >>> >>>By the way, this problem doesn't happen with valgrind 1.9.3, but it does >>>with 1.9.5. Any help is appreciated.. >>> >>> >>I tried it under 1.9.6 and the current HEAD on RH 7.1 and it worked >>fine... hmm. >> >> > >Also works ok on SuSE 8.2. You say -lpthread in your command line; if >you remove that does it make any difference? > Helgrind runs fine without -pthread. Here the point of segfault, according to gdb: #0 0x400182b3 in vgSkin_dup_extra_and_update (err=0x40c3a018) at hg_main.c:2288 2288 *new_extra = *((HelgrindError*)VG_(get_error_extra)(err)); Thanks, yaz |