From: <gt...@ma...> - 2003-05-13 14:01:38
|
I get the below error when trying to use Helgrind on VTK based applicatio= ns (www.vtk.org). When the sanity-level is at the default, Valgrind seg-fau= lts without any warning or other output. This happens very early in the exec= ution of the program. $ valgrind --skin=3Dhelgrind --sanity-level=3D5 ./ParaView =3D=3D22474=3D=3D Helgrind, a data race detector for x86-linux. =3D=3D22474=3D=3D Copyright (C) 2002, and GNU GPL'd, by Nicholas Netherco= te. =3D=3D22474=3D=3D Using valgrind-1.9.6, a program instrumentation system = for x86-linux. =3D=3D22474=3D=3D Copyright (C) 2000-2002, and GNU GPL'd, by Julian Sewar= d. =3D=3D22474=3D=3D Estimated CPU clock rate is 1994 MHz =3D=3D22474=3D=3D For more details, rerun with: -v =3D=3D22474=3D=3D --22474-- mSC [core ]: 1 sbs, 197 tot bs, 1/1 free bs, 16 lis= ts, 1048576 mmap, 7324 loan --22474-- mSC [skin ]: 1 sbs, 52 tot bs, 1/1 free bs, 16 lis= ts, 1048576 mmap, 1212 loan --22474-- mSC [symtab ]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan --22474-- mSC [JITter ]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan --22474-- mSC [client ]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan --22474-- mSC [demangle]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan --22474-- mSC [exectxt ]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan --22474-- mSC [errors ]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan --22474-- mSC [transien]: 0 sbs, 0 tot bs, 0/0 free bs, 16 lis= ts, =20 0 mmap, 0 loan blockSane: fail -- redzone-hi mallocSanityCheckArena: sb 0x4238A000, block 3007 (bszW 10): BAD valgrind: the `impossible' happened: mallocSanityCheckArena Basic block ctr is approximately 50000 sched status: Thread 1: status =3D Runnable, associated_mx =3D 0x0, associated_cv =3D 0= x0 =3D=3D22474=3D=3D at 0x4000F85E: strcmp (in /lib/ld-2.2.5.so) =3D=3D22474=3D=3D by 0x4000B0A5: fixup (in /lib/ld-2.2.5.so) =3D=3D22474=3D=3D by 0x4000B22F: _dl_runtime_resolve (in /lib/ld-2.2.5= .so) =3D=3D22474=3D=3D by 0x41E0BEC8: (within /extra/paraview/ParaViewComplete06/lib/libvtkexpat.so) When run using the Memcheck skin, the program runs fine. The first error reported (which appears to later in the programs execuation) is: =3D=3D22494=3D=3D pthread_attr_setscope: invalid or unsupported scope =3D=3D22494=3D=3D at 0x40215CFF: pthread_error (vg_libpthread.c:290) =3D=3D22494=3D=3D by 0x40215E86: pthread_attr_setscope (vg_libpthread.= c:410) =3D=3D22494=3D=3D by 0x420CF2A5: vtkMultiThreader::SingleMethodExecute= (void) (in /extra/paraview/ParaViewCompe06/lib/libvtkCommon.so) =3D=3D22494=3D=3D by 0x41F399E5: vtkImageToImageFilter::MultiThread(vt= kImageData *, vtkImageData *) (in /extraraview/ParaViewComplete06/lib/libvtkFiltering.s= o) Valgrind version 1.9.6 stable release on Red Hat Linux 7.2 (?), kernel 2.= 4.18-3. David Bauer |