In trying to debug some stuff in Subversion, I got some valgrind warnings from APR. This is with APR CVS HEAD and valgrind 1.9.5 on RedHat 9:
% valgrind ./.libs/testall testpipe ==4823== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux. ==4823== Copyright (C) 2002, and GNU GPL'd, by Julian Seward. ==4823== Using valgrind-1.9.5, a program instrumentation system for x86-linux. ==4823== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward. ==4823== Estimated CPU clock rate is 1407 MHz ==4823== For more details, rerun with: -v ==4823== Partial APR Tests: Pipes: ==4823== Warning: invalid file descriptor -1 in syscall read() ==4823== Conditional jump or move depends on uninitialised value(s) ==4823== at 0x4027A3C1: get_revent (poll.c:102) ==4823== by 0x4027A520: apr_poll (poll.c:172) ==4823== by 0x4027A971: apr_wait_for_io_or_timeout (waitio.c:92) ==4823== by 0x4026E983: apr_file_read (readwrite.c:160) ==4823== ==4823== Conditional jump or move depends on uninitialised value(s) ==4823== at 0x4027A3D0: get_revent (poll.c:104) ==4823== by 0x4027A520: apr_poll (poll.c:172) ==4823== by 0x4027A971: apr_wait_for_io_or_timeout (waitio.c:92) ==4823== by 0x4026E983: apr_file_read (readwrite.c:160) ==4823== ==4823== Conditional jump or move depends on uninitialised value(s) ==4823== at 0x4027A3DD: get_revent (poll.c:106) ==4823== by 0x4027A520: apr_poll (poll.c:172) ==4823== by 0x4027A971: apr_wait_for_io_or_timeout (waitio.c:92) ==4823== by 0x4026E983: apr_file_read (readwrite.c:160) ==4823== ==4823== Conditional jump or move depends on uninitialised value(s) ==4823== at 0x4027A3EA: get_revent (poll.c:108) ==4823== by 0x4027A520: apr_poll (poll.c:172) ==4823== by 0x4027A971: apr_wait_for_io_or_timeout (waitio.c:92) ==4823== by 0x4026E983: apr_file_read (readwrite.c:160) ==4823== ==4823== Conditional jump or move depends on uninitialised value(s) ==4823== at 0x4027A3F7: get_revent (poll.c:110) ==4823== by 0x4027A520: apr_poll (poll.c:172) ==4823== by 0x4027A971: apr_wait_for_io_or_timeout (waitio.c:92) ==4823== by 0x4026E983: apr_file_read (readwrite.c:160) ==4823== ==4823== Conditional jump or move depends on uninitialised value(s) ==4823== at 0x4027A402: get_revent (poll.c:112) ==4823== by 0x4027A520: apr_poll (poll.c:172) ==4823== by 0x4027A971: apr_wait_for_io_or_timeout (waitio.c:92) ==4823== by 0x4026E983: apr_file_read (readwrite.c:160) ..... 5 tests run: 5 passed, 0 failed, 0 not implemented. ==4823== ==4823== ERROR SUMMARY: 6 errors from 6 contexts (suppressed: 0 from 0) ==4823== malloc/free: in use at exit: 9000 bytes in 19 blocks. ==4823== malloc/free: 23 allocs, 4 frees, 33680 bytes allocated. ==4823== For a detailed leak analysis, rerun with: --leak-check=yes ==4823== For counts of detected errors, rerun with: -v Best, Blair -- Blair Zajac <[EMAIL PROTECTED]> Plots of your system's performance - http://www.orcaware.com/orca/