|
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
|
|
From: Nicholas N. <nj...@ca...> - 2003-05-20 21:25:22
|
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.
N
|
|
From: Julian S. <js...@ac...> - 2003-05-21 06:37:03
|
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?
J
|
|
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
|
|
From: Nicholas N. <nj...@ca...> - 2003-05-21 07:26:17
|
On Wed, 21 May 2003, Yasushi Saito wrote: > >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)); Ah, that bug. It's been fixed in the CVS HEAD, you can check it out from Valgrind's SourceForge page. (Instructions for building from CVS are in valgrind/README.) N |