source: trunk/SOURCE_TOOLS/asan2msg.pl

Last change on this file was 17703, checked in by westram, 6 years ago
  • provide stacktraces for UndefinedBehaviorSanitizer
    • similar as done for AddressSanitizer and LeakSanitizer
    • add verbose-flags to debug code that filters logfiles and rewrites stacktrace into message-format (FILE:LINE: MESSAGE)
    • fix paths of stacktraces (expand+reduce pathprefixes; trace enter/leave directory messages)
  • Property svn:executable set to *
File size: 601 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use lib $ENV{ARBHOME}.'/SOURCE_TOOLS';
7use arb_build_common;
8
9my $verbose = 0;
10
11my $topdir = $ENV{ARBHOME};
12my $line;
13while (defined($line=<STDIN>)) {
14  my $formatted_line = format_asan_line($line,$topdir);
15  if (defined $formatted_line) {
16    if ($verbose) {
17      print add_suffix($line,' [orgline_A2M]');
18      print add_suffix($formatted_line, ' [formatted_A2M]');
19    }
20    else {
21      print $formatted_line;
22    }
23  }
24  else {
25    if ($verbose) {
26      print add_suffix($line,' [unformatted_A2M]');
27    }
28    else {
29      print $line;
30    }
31  }
32}
33
34
35
Note: See TracBrowser for help on using the repository browser.