Status: New
Owner: ----

New issue 2763 by [email protected]: Large test-only memory leaks in parser tests
http://code.google.com/p/v8/issues/detail?id=2763

Running V8 tests under LeakSanitizer, I see this:

$ tools/run-tests.py --no-presubmit --arch=x64 -m release cctest/test-parsing/ParserSync

Running tests for x64.release
No connection to distribution server; running tests locally.
=== cctest/test-parsing/ParserSync ===
=================================================================
==27895==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 504256 byte(s) in 27712 object(s) allocated from:
#0 0x555556fd22c5 in operator new[](unsigned long) san/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:54
    #1 0x5555578d5a16 in NewArray<char> v8/out/../src/allocation.h:84
    #2 0x5555578d5a16 in ReadString v8/out/../src/parser.cc:365
#3 0x5555578d5a16 in v8::internal::ScriptDataImpl::BuildMessage() v8/out/../src/parser.cc:383 #4 0x5555571afb64 in TestParserSyncWithFlags(v8::internal::Handle<v8::internal::String>, unsigned int) v8/out/../test/cctest/test-parsing.cc:1154 #5 0x5555571b0bc9 in TestParserSync v8/out/../test/cctest/test-parsing.cc:1182 #6 0x5555571b0bc9 in TestParserSync() v8/out/../test/cctest/test-parsing.cc:1292
    #7 0x555556fe52ef in Run v8/out/../test/cctest/cctest.h:79
    #8 0x555556fe52ef in main v8/out/../test/cctest/cctest.cc:140
    #9 0x7ffff6c0176c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)

Direct leak of 172416 byte(s) in 27712 object(s) allocated from:
#0 0x555556fd22c5 in operator new[](unsigned long) san/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:54 #1 0x5555578d5cdc in NewArray<const char *> v8/out/../src/allocation.h:84 #2 0x5555578d5cdc in v8::internal::ScriptDataImpl::BuildArgs() v8/out/../src/parser.cc:389

Direct leak of 109885 byte(s) in 2275 object(s) allocated from:
#0 0x555556fd22c5 in operator new[](unsigned long) san/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:54
    #1 0x5555571b0b29 in NewArray<char> v8/out/../src/allocation.h:84
    #2 0x5555571b0b29 in New v8/out/../src/utils.h:416
#3 0x5555571b0b29 in TestParserSync() v8/out/../test/cctest/test-parsing.cc:1282
    #4 0x555556fe52ef in Run v8/out/../test/cctest/cctest.h:79
    #5 0x555556fe52ef in main v8/out/../test/cctest/cctest.cc:140
    #6 0x7ffff6c0176c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)

Indirect leak of 92416 byte(s) in 20672 object(s) allocated from:
#0 0x555556fd22c5 in operator new[](unsigned long) san/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:54
    #1 0x5555578d5d8c in NewArray<char> v8/out/../src/allocation.h:84
    #2 0x5555578d5d8c in ReadAddress v8/out/../src/parser.cc:365
#3 0x5555578d5d8c in v8::internal::ScriptDataImpl::BuildArgs() v8/out/../src/parser.cc:396

SUMMARY: LeakSanitizer: 878973 byte(s) leaked in 78371 allocation(s).
Command: v8/out/x64.release/cctest --nocrankshaft test-parsing/ParserSync --nobreak-on-abort --nodead-code-elimination --nofold-constants --testing_serialization_file=v8/out/.serdes/serdes_ParserSync__nocrankshaft

This issue is for documentation only; I'm submitting a fix now.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to