Re: valgrind on 5.3BETA1

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 08/23/04

  • Next message: Sean Farley: "Re: Fatal trap 12: page fault while in kernel mode"
    Date: Mon, 23 Aug 2004 16:21:39 -0500
    To: Simon Barner <barner@in.tum.de>
    
    
    

    In the last episode (Aug 23), Simon Barner said:
    > Miguel Mendez wrote:
    > > Is anybody using valgrind on 5.3BETA1 or newer? I've been using it
    > > for a while on 5.2.1 without any problems, until I upgraded my
    > > system to RELENG_5. The program works but it never exits after
    > > running your program, it gets stuck into `umtx' state indefinitely.
    > > This is happening with both plain jane valgrind and
    > > valgrind-snapshot ports. Is this already a known issue?
    >
    > Hi,
    >
    > there is a closed problem report in the database:
    > http://www.freebsd.org/cgi/query-pr.cgi?pr=68992
    >
    > At the end of that PR, there is a patch that seems to work around the
    > problem. Could you please test it?

    That patch looks like it's already in the valgrind-snapshot-352 port,
    and it still hangs on me. Adding some debugging to the code that calls
    the umtx syscalls give me:

    $ valgrind --skin=memcheck date
    ==14620== Memcheck, a memory error detector for x86-linux.
    ==14620== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward.
    ==14620== Using valgrind-2.1.2.CVS, a program supervision framework for x86-linux.
    ==14620== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward.
    ==14620== Locking#1 mutex 0x0/0x0
    ==14620== Done 0x187B8/0x187B8
    ==14620== For more details, rerun with: -v
    ==14620==
    Mon Aug 23 16:17:01 CDT 2004
    ==14620==
    ==14620== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
    ==14620== malloc/free: in use at exit: 4096 bytes in 1 blocks.
    ==14620== malloc/free: 1 allocs, 0 frees, 4096 bytes allocated.
    ==14620== For a detailed leak analysis, rerun with: --leak-check=yes
    ==14620== For counts of detected errors, rerun with: -v
    ==14620== Unlocking mutex 0x187B9/0x187B9
    ==14620== Done 0x187B9/0x187B9
    ==14620== Locking#2 mutex 0x187B9/0x187B9
    ( send SIGKILL from another vty here )
    zsh: 14620 killed valgrind --skin=memcheck date

    There doesn't seem to be any docs on these umtx syscalls so I don't
    know what the expected behaviour is supposed to be. I printed the
    pointer and the contents of the u_owner member before and after the
    syscall.

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    
    
    

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



  • Next message: Sean Farley: "Re: Fatal trap 12: page fault while in kernel mode"

    Relevant Pages

    • Re: kadmin.local segfault gdb output (valgrind output)
      ... Very weird, when running kadmin.local under valgrind, ... it does NOT segfault. ... Julian Seward et al. ... binary translation. ...
      (comp.protocols.kerberos)
    • kadmin.local segfault
      ... Very weird, when running kadmin.local under valgrind, ... it does NOT segfault. ... Julian Seward et al. ... kadmin.local: cpw test ...
      (comp.protocols.kerberos)
    • valgrind on FC2?
      ... After installing the valgrind 2.1.1-1.1.fc2.dag ... the binaries and libraries for valgrind to work. ...
      (Fedora)