On Dec 6, 2007 1:14 AM, Nicholas Nethercote <[EMAIL PROTECTED]> wrote:

> On Thu, 6 Dec 2007, Tom Hughes wrote:
>
> > I get an assertion in memcheck trying to valgrind a windows program
> > under wine. This is the current trunk code with a tweaked version of
> > the patch from
> > http://wiki.winehq.org/Wine_and_Valgrind applied.
> >
> > I'm just running "valgrind --trace-children=yes notepad"  and I get:
> >
> > Memcheck: mc_main.c:957 (get_sec_vbits8): Assertion 'n' failed.
> > Memcheck: get_sec_vbits8: no node for address 0x6FA9EA0 (0x6FA9EAC)
> >
> > ==9850==    at 0x38018ACD: report_and_quit (m_libcassert.c:140)
> > ==9850==    by 0x8: ???
> > ==9850==    by 0x9: ???
> > ==9850==    by 0x9: ???
> > ==9850==    by 0x40000005: ???
> > ==9850==    by 0xFFFFFFFE: ???
> >
> > Any ideas?
>
> It's a problem with the secondary V bits table in Memcheck.  That table
> holds the full V bits for all memory bytes that are partially defined.
> It's happened a couple of times, but always in situations that are
> impossible for me to reproduce.  If you are able to reduce it to a small
> test, or are able to do any debugging yourself, that would be very helpful.

It is 100% repeatable for me but, interestingly, only on my machine at
home. My machine at work doesn't have the same problem. Both are
x86_64 machines with two cores and 4Gb of memory and both are running
Fedora 8!

> One thing you could do is try commenting out all these lines and see if it
> goes away.  If it does, you could then experiment with which combinations
> make it go away.
>
> #define PERF_FAST_LOADV    1
> #define PERF_FAST_STOREV   1
>
> #define PERF_FAST_SARP     1
>
> #define PERF_FAST_STACK    1
> #define PERF_FAST_STACK2   1

I've commented them all out and it makes no difference.

There are also no bad writes reported beforehand, which rules out
Julian's suggestion.

Any suggestions for the best way to debug it?

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu/

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to