1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
10 # This software is licensed as described in the file COPYING, which
11 # you should have received as part of this distribution. The terms
12 # are also available at http://curl.haxx.se/docs/copyright.html.
14 # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 # copies of the Software, and permit persons to whom the Software is
16 # furnished to do so, under the terms of the COPYING file.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
21 ###########################################################################
26 my ($srcdir, # the dir in which the runtests script resides
44 if($_ =~ /^==(\d+)== *(at|by) 0x([0-9A-F]+): (.*)/) {
46 if($w =~ /(.*) \(([^:]*):(\d+)/) {
47 my ($func, $source, $line)=($1, $2, $3);
48 my $sourcename = basename($source);
49 if(-f "$srcdir/../src/$sourcename" ||
50 -f "$srcdir/../lib/$sourcename") {
52 # print "$func() at $source:$line\n";
54 } #else {print "Not our source: $func, $source, $line\n";}
59 # the stack trace included source details about us
63 push @o, "\n Leaked $leak bytes\n";
66 push @o, "\n Read $invalidread invalid bytes\n";
69 push @o, "\n Conditional jump or move depends on uninitialised value(s)\n";
72 $bt = 0; # no more backtrace
77 if($_ =~ /(\d+) bytes in (\d+) blocks are definitely lost/) {
84 elsif($_ =~ /Invalid read of size (\d+)/) {
89 elsif($_ =~ /Conditional jump or move/) {
90 # If we require SSL, this test case most probaly makes
91 # us use OpenSSL. OpenSSL produces numerous valgrind
92 # errors of this kind, rendering it impossible for us to
93 # detect (valid) reports on actual curl or libcurl code.