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 https://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
45 if($_ =~ /^==(\d+)== *(at|by) 0x([0-9A-F]+): (.*)/) {
47 if($w =~ /(.*) \(([^:]*):(\d+)/) {
48 my ($func, $source, $line)=($1, $2, $3);
49 my $sourcename = basename($source);
50 if(-f "$srcdir/../src/$sourcename" ||
51 -f "$srcdir/../lib/$sourcename") {
53 # print "$func() at $source:$line\n";
55 } #else {print "Not our source: $func, $source, $line\n";}
58 # the memory leakage within NSS_InitContext is not a bug of curl
59 if($w =~ /NSS_InitContext/) {
64 if($us and not $nssinit) {
65 # the stack trace included source details about us
69 push @o, "\n Leaked $leak bytes\n";
72 push @o, "\n Read $invalidread invalid bytes\n";
75 push @o, "\n Conditional jump or move depends on uninitialised value(s)\n";
78 $bt = 0; # no more backtrace
84 if($_ =~ /(\d+) bytes in (\d+) blocks are definitely lost/) {
91 elsif($_ =~ /Invalid read of size (\d+)/) {
96 elsif($_ =~ /Conditional jump or move/) {
97 # If we require SSL, this test case most probaly makes
98 # us use OpenSSL. OpenSSL produces numerous valgrind
99 # errors of this kind, rendering it impossible for us to
100 # detect (valid) reports on actual curl or libcurl code.