|
From: Tom H. <th...@cy...> - 2003-10-16 13:52:46
|
In message <3F8...@at...>
Joe Van Andel <van...@at...> wrote:
> Using RH 9.0 and gcc 3.2.2, valgrind exits with an assertion failure:
>
> valgrind -v --gdb-attach=yes merge_beam -v
> ==16807== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
> ==16807== Copyright (C) 2002-2003, and GNU GPL'd, by Julian Seward.
> ==16807== Using valgrind-20031012, a program supervision framework for x86-linux.
[ snipped details ]
> valgrind: vg_ldt.c:167 (vgPlain_do_useseg): Assertion `(seg_selector & 7) == 7' failed.
That's an attempt to access the GDT which won't work, but it's
happening because you're using RedHat 9 which has NPTL and you've
somehow managed to bypass the code in valgrind that tries to set
LD_ASSUME_KERNEL to force old style threading.
Set LD_ASSUME_KERNEL to 2.4.1 in your environment and it should
work fine.
You might also like to check what nptl_threading is set to at the
top of the valgrind shell script - it should be "yes" for RH9 which
would then force LD_ASSUME_KERNEL to be set.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|