From a12890df2519d254d1c497b8e0a65bb8fc9e1ab2 Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Sat, 26 Jul 2014 14:12:42 -0700 Subject: [PATCH] issue-635: allow whitespace in libraries paths This applies change suggested by user mich...@sebesbefut.com --- src/pprof | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pprof b/src/pprof index 6e1c9cb..d42677c 100755 --- a/src/pprof +++ b/src/pprof @@ -4393,7 +4393,7 @@ sub ParseLibraries { my $finish; my $offset; my $lib; - if ($l =~ /^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+(\S+\.(so|dll|dylib|bundle)((\.\d+)+\w*(\.\d+){0,3})?)$/i) { + if ($l =~ /^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+(.+\.(so|dll|dylib|bundle)((\.\d+)+\w*(\.\d+){0,3})?)$/i) { # Full line from /proc/self/maps. Example: # 40000000-40015000 r-xp 00000000 03:01 12845071 /lib/ld-2.3.2.so $start = HexExtend($1);