develooper Front page | perl.perl5.porters | Postings from July 2013

Re: Asan help request

Thread Previous
From:
Tony Cook
Date:
July 25, 2013 01:53
Subject:
Re: Asan help request
Message ID:
20130725015304.GC16553@mars.tony.develop-help.com
On Wed, Jul 24, 2013 at 07:42:56PM -0000, Father Chrysostomos wrote:
> Could somebody with asan installed help me figure out which
> commit on the smoke-me/padconst branch is causing asan to
> get upset? I don't understand the output in the log at
> <http://m-l.org/~perl/smoke/perl/linux/smoke-me_clang_sanitize=address/Father Chrysostomos/log9f8bc17bee719380806fbe448f675e416a5d9b57.log.gz>.

Here's one of the failures:

tony@mars:.../perl/t$ ./perl -I../lib re/pat_rt_report.t 2>&1 | python /home/tony/bin/asan_symbolize.py
...
ok 237 - (?: ... )? should not lose $^R; Bug 36909
ok 238 - (?: ... )? should not lose $^R; Bug 36909
ok 239 - (?: ... )? should not lose $^R; Bug 36909
ok 240 - (?: ... )? should not lose $^R; Bug 36909
=================================================================
==22423== ERROR: AddressSanitizer: heap-use-after-free on address 0x7f86e8150ad8 at pc 0x6caabf bp 0x7fff39e4ac70 sp 0x7fff39e4ac68
WRITE of size 8 at 0x7f86e8150ad8 thread T0
    #0 0x6caabe in S_cleanup_regmatch_info_aux /home/tony/dev/perl/git/perl/regexec.c:7618
0x7f86e8150ad8 is located 24 bytes inside of 48-byte region [0x7f86e8150ac0,0x7f86e8150af0)
freed by thread T0 here:
    #0 0x757700 in __interceptor_free ??:0
    #1 0x587c9d in Perl_mg_free /home/tony/dev/perl/git/perl/mg.c:578
    #2 0x5fca0a in Perl_sv_free2 /home/tony/dev/perl/git/perl/sv.c:6669
previously allocated by thread T0 here:
    #0 0x757831 in __interceptor_calloc ??:0
    #1 0x573ce5 in Perl_safesyscalloc /home/tony/dev/perl/git/perl/util.c:330
    #2 0x5d07ed in Perl_pp_match /home/tony/dev/perl/git/perl/pp_hot.c:1450
    #3 0x5c5994 in Perl_runops_standard /home/tony/dev/perl/git/perl/run.c:42
    #4 0x429896 in main /home/tony/dev/perl/git/perl/perlmain.c:112
    #5 0x7f86eae4eeac in __libc_start_main /home/adconrad/eglibc-2.13/csu/libc-start.c:228
Shadow byte and word:
  0x1ff0dd02a15b: fd
  0x1ff0dd02a158: fd fd fd fd fd fd fd fd
More shadow bytes:
  0x1ff0dd02a138: 00 00 00 00 00 00 fb fb
  0x1ff0dd02a140: fa fa fa fa fa fa fa fa
  0x1ff0dd02a148: 00 00 fb fb fb fb fb fb
  0x1ff0dd02a150: fa fa fa fa fa fa fa fa
=>0x1ff0dd02a158: fd fd fd fd fd fd fd fd
  0x1ff0dd02a160: fa fa fa fa fa fa fa fa
  0x1ff0dd02a168: 00 00 00 fb fb fb fb fb
  0x1ff0dd02a170: fa fa fa fa fa fa fa fa
  0x1ff0dd02a178: fa fa fa fa fa fa fa fa
Stats: 15M malloced (15M for red zones) by 69049 calls
Stats: 6M realloced by 14598 calls
Stats: 10M freed by 50970 calls
Stats: 0M really freed by 0 calls
Stats: 33M (8612 full pages) mmaped in 62 calls
  mmaps   by size class: 7:53235; 8:16376; 9:1023; 10:1022; 11:510; 12:384; 13:448; 14:160; 15:112; 16:24; 17:4; 18:4; 19:3; 20:5;
  mallocs by size class: 7:51748; 8:14710; 9:481; 10:658; 11:410; 12:314; 13:425; 14:154; 15:110; 16:23; 17:4; 18:4; 19:3; 20:5;
  frees   by size class: 7:36518; 8:13136; 9:310; 10:383; 11:197; 12:87; 13:154; 14:103; 15:54; 16:14; 17:3; 18:4; 19:3; 20:4;
  rfrees  by size class:
Stats: malloc large: 149 small slow: 597
==22423== ABORTING

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About