ctest -V -R client.memory_dump_test
UpdateCTestConfiguration from :/home/binwang/projects/dynamorio/build/DartConfiguration.tcl
Parse Config file:/home/binwang/projects/dynamorio/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/binwang/projects/dynamorio/build/DartConfiguration.tcl
Parse Config file:/home/binwang/projects/dynamorio/build/DartConfiguration.tcl
Test project /home/binwang/projects/dynamorio/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 199
Start 199: code_api|client.memory_dump_test
199: Test command: /usr/bin/cmake "-D" "precmd=rm@/home/binwang/projects/dynamorio/build/logs/simple_app.*.elf" "-D" "cmd=/home/binwang/projects/dynamorio/build/bin64/drrun@-s@90@-quiet@-debug@-killpg@-stderr_mask@0xC@-dumpcore_mask@0@-code_api@-c@/home/binwang/projects/dynamorio/build/suite/tests/bin/libclient.memory_dump_test.dll.so@--@/home/binwang/projects/dynamorio/build/suite/tests/bin/simple_app" "-D" "postcmd=/usr/bin/readelf@-a@/home/binwang/projects/dynamorio/build/logs/simple_app.*.elf" "-D" "postcmd2=" "-D" "postcmd3=" "-D" "postcmd4=" "-D" "failok=" "-D" "cmp=/home/binwang/projects/dynamorio/build/suite/tests/memory_dump_test.expect" "-D" "code=" "-D" "capture=" "-D" "ignore_matching_lines=" "-P" "/home/binwang/projects/dynamorio/suite/tests/runmulti.cmake"
199: Working Directory: /home/binwang/projects/dynamorio/build/suite/tests
199: Test timeout computed to be: 90
199: Running precmd |rm;/home/binwang/projects/dynamorio/build/logs/simple_app.197233.0c35df0a6084.00000000.elf|
199: Running cmd |/home/binwang/projects/dynamorio/build/bin64/drrun;-s;90;-quiet;-debug;-killpg;-stderr_mask;0xC;-dumpcore_mask;0;-code_api;-c;/home/binwang/projects/dynamorio/build/suite/tests/bin/libclient.memory_dump_test.dll.so;--;/home/binwang/projects/dynamorio/build/suite/tests/bin/simple_app|
199: Running postcmd |/usr/bin/readelf;-a;/home/binwang/projects/dynamorio/build/logs/simple_app.204832.0c35df0c4717.00000000.elf|
199: CMake Error at /home/binwang/projects/dynamorio/suite/tests/runmulti.cmake:72 (message):
199: output |thank you for testing memory dump
199:
199: thread init
199:
199: nudge delivered 1
199:
199: <Failed to write the requested memory content into the core dump file.>
199:
199: <section: [vvar_vclock], prot: 1, length: 8192, written: -14
199:
199: >
199:
199: Error: failed to create memory dump.
199:
199: Hello, world!
199:
199: readelf: Error: Reading 3136 bytes extends past end of file for section
199: headers
199:
199: readelf: Error: Section headers are not available!
199:
199: ELF Header:
199:
199: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
199: Class: ELF64
199: Data: 2's complement, little endian
199: Version: 1 (current)
199: OS/ABI: UNIX - GNU
199: ABI Version: 0
199: Type: CORE (Core file)
199: Machine: Advanced Micro Devices X86-64
199: Version: 0x1
199: Entry point address: 0x7fa9d251c540
199: Start of program headers: 64 (bytes into file)
199: Start of section headers: 10502452 (bytes into file)
199: Flags: 0x0
199: Size of this header: 64 (bytes)
199: Size of program headers: 56 (bytes)
199: Number of program headers: 49
199: Size of section headers: 64 (bytes)
199: Number of section headers: 49
199: Section header string table index: 48
199:
199:
199:
199: Program Headers:
199:
199: Type Offset VirtAddr PhysAddr
199: FileSiz MemSiz Flags Align
199: NOTE 0x0000000000000af8 0x0000000000000000 0x0000000000000000
199: 0x0000000000000378 0x0000000000000378 0x2
199: LOAD 0x0000000000001000 0x00007fa78dff8000 0x00007fa78dff8000
199: 0x0000000000040000 0x0000000000040000 RW 0x1000
199: LOAD 0x0000000000041000 0x00007fa78e039000 0x00007fa78e039000
199: 0x0000000000006000 0x0000000000006000 RW 0x1000
199: LOAD 0x0000000000047000 0x00007fa78e041000 0x00007fa78e041000
199: 0x0000000000004000 0x0000000000004000 RW 0x1000
199: LOAD 0x000000000004b000 0x00007fa78e049000 0x00007fa78e049000
199: 0x0000000000006000 0x0000000000006000 RW 0x1000
199: LOAD 0x0000000000051000 0x00007fa78e051000 0x00007fa78e051000
199: 0x0000000000018000 0x0000000000018000 RW 0x1000
199: LOAD 0x0000000000069000 0x00007fa78e06b000 0x00007fa78e06b000
199: 0x000000000000e000 0x000000000000e000 RW 0x1000
199: LOAD 0x0000000000077000 0x00007fa78e07b000 0x00007fa78e07b000
199: 0x000000000000c000 0x000000000000c000 RW 0x1000
199: LOAD 0x0000000000083000 0x00007fa78e089000 0x00007fa78e089000
199: 0x0000000000003000 0x0000000000003000 RW 0x1000
199: LOAD 0x0000000000086000 0x00007fa78e097000 0x00007fa78e097000
199: 0x0000000000001000 0x0000000000001000 RW 0x1000
199: LOAD 0x0000000000087000 0x00007fa78e09a000 0x00007fa78e09a000
199: 0x0000000000002000 0x0000000000002000 RW 0x1000
199: LOAD 0x0000000000089000 0x00007fa78e09e000 0x00007fa78e09e000
199: 0x000000000000e000 0x000000000000e000 RW 0x1000
199: LOAD 0x0000000000097000 0x00007fa78e0ae000 0x00007fa78e0ae000
199: 0x0000000000004000 0x0000000000004000 RW 0x1000
199: LOAD 0x000000000009b000 0x00007fa78e0b6000 0x00007fa78e0b6000
199: 0x0000000000002000 0x0000000000002000 RW 0x1000
199: LOAD 0x000000000009d000 0x00007fa78e0bb000 0x00007fa78e0bb000
199: 0x0000000000001000 0x0000000000001000 RW 0x1000
199: LOAD 0x000000000009e000 0x00007fa78e0c3000 0x00007fa78e0c3000
199: 0x0000000000008000 0x0000000000008000 RW 0x1000
199: LOAD 0x00000000000a6000 0x00007fa78e0cd000 0x00007fa78e0cd000
199: 0x0000000000018000 0x0000000000018000 RW 0x1000
199: LOAD 0x00000000000be000 0x00007fa98dff9000 0x00007fa98dff9000
199: 0x0000000000008000 0x0000000000008000 RW 0x1000
199: LOAD 0x00000000000c6000 0x00007fa98e001000 0x00007fa98e001000
199: 0x0000000000001000 0x0000000000001000 R 0x1000
199: LOAD 0x00000000000c7000 0x00007fa98e002000 0x00007fa98e002000
199: 0x0000000000001000 0x0000000000001000 R E 0x1000
199: LOAD 0x00000000000c8000 0x00007fa98e003000 0x00007fa98e003000
199: 0x0000000000001000 0x0000000000001000 R 0x1000
199: LOAD 0x00000000000c9000 0x00007fa98e004000 0x00007fa98e004000
199: 0x0000000000002000 0x0000000000002000 RW 0x1000
199: LOAD 0x00000000000cb000 0x00007fa98e008000 0x00007fa98e008000
199: 0x0000000000001000 0x0000000000001000 RW 0x1000
199: LOAD 0x00000000000cc000 0x00007fa98e010000 0x00007fa98e010000
199: 0x0000000000001000 0x0000000000001000 RWE 0x1000
199: LOAD 0x00000000000cd000 0x00007fa98e011000 0x00007fa98e011000
199: 0x0000000000003000 0x0000000000003000 R E 0x1000
199: LOAD 0x00000000000d0000 0x00007fa98e014000 0x00007fa98e014000
199: 0x0000000000001000 0x0000000000001000 RWE 0x1000
199: LOAD 0x00000000000d1000 0x00007fa98e017000 0x00007fa98e017000
199: 0x0000000000001000 0x0000000000001000 RWE 0x1000
199: LOAD 0x00000000000d2000 0x00007fa98e027000 0x00007fa98e027000
199: 0x0000000000001000 0x0000000000001000 RWE 0x1000
199: LOAD 0x00000000000d3000 0x00007fa98e037000 0x00007fa98e037000
199: 0x0000000000001000 0x0000000000001000 RWE 0x1000
199: LOAD 0x00000000000d4000 0x00007fa98e03a000 0x00007fa98e03a000
199: 0x0000000000001000 0x0000000000001000 RWE 0x1000
199: LOAD 0x00000000000d5000 0x00007fa98e03d000 0x00007fa98e03d000
199: 0x0000000000001000 0x0000000000001000 RW 0x1000
199: LOAD 0x00000000000d6000 0x00007fa9cdff9000 0x00007fa9cdff9000
199: 0x0000000000001000 0x0000000000001000 R 0x1000
199: LOAD 0x00000000000d7000 0x00007fa9cdffa000 0x00007fa9cdffa000
199: 0x0000000000002000 0x0000000000002000 R E 0x1000
199: LOAD 0x00000000000d9000 0x00007fa9cdffc000 0x00007fa9cdffc000
199: 0x0000000000001000 0x0000000000001000 R 0x1000
199: LOAD 0x00000000000da000 0x00007fa9cdffd000 0x00007fa9cdffd000
199: 0x0000000000002000 0x0000000000002000 RW 0x1000
199: LOAD 0x00000000000dc000 0x00007fa9ce000000 0x00007fa9ce000000
199: 0x0000000000400000 0x0000000000400000 RW 0x1000
199: LOAD 0x00000000004dc000 0x00007fa9d2000000 0x00007fa9d2000000
199: 0x0000000000050000 0x0000000000050000 R 0x1000
199: LOAD 0x000000000052c000 0x00007fa9d2050000 0x00007fa9d2050000
199: 0x00000000002f3000 0x00000000002f3000 R E 0x1000
199: LOAD 0x000000000081f000 0x00007fa9d2343000 0x00007fa9d2343000
199: 0x00000000000c9000 0x00000000000c9000 R 0x1000
199: LOAD 0x00000000008e8000 0x00007fa9d240c000 0x00007fa9d240c000
199: 0x0000000000082000 0x0000000000082000 RW 0x1000
199: LOAD 0x000000000096a000 0x00007fa9d248e000 0x00007fa9d248e000
199: 0x000000000003a000 0x000000000003a000 RW 0x1000
199: LOAD 0x00000000009a4000 0x00007fa9d24fd000 0x00007fa9d24fd000
199: 0x0000000000001000 0x0000000000001000 R 0x1000
199: LOAD 0x00000000009a5000 0x00007fa9d24fe000 0x00007fa9d24fe000
199: 0x000000000002b000 0x000000000002b000 R E 0x1000
199: LOAD 0x00000000009d0000 0x00007fa9d2529000 0x00007fa9d2529000
199: 0x000000000000a000 0x000000000000a000 R 0x1000
199: LOAD 0x00000000009da000 0x00007fa9d2533000 0x00007fa9d2533000
199: 0x0000000000004000 0x0000000000004000 RW 0x1000
199: LOAD 0x00000000009de000 0x00007fa9d253d000 0x00007fa9d253d000
199: 0x0000000000000000 0x0000000000004000 R 0x1000
199: LOAD 0x00000000009de000 0x00007fa9d2541000 0x00007fa9d2541000
199: 0x0000000000002000 0x0000000000002000 R 0x1000
199: LOAD 0x00000000009e0000 0x00007fa9d2543000 0x00007fa9d2543000
199: 0x0000000000002000 0x0000000000002000 R E 0x1000
199: LOAD 0x00000000009e2000 0x00007ffced22e000 0x00007ffced22e000
199: 0x0000000000022000 0x0000000000022000 RW 0x1000
199:
199:
199:
199: There is no dynamic section in this file.
199:
199:
199:
199: Displaying notes found at file offset 0x00000af8 with length 0x00000378:
199:
199: Owner Data size Description
199: CORE 0x00000150 NT_PRSTATUS (prstatus structure)
199: CORE 0x00000200 NT_FPREGSET (floating point registers)
199:
199: | failed to match expected output |thank you for testing memory dump
199:
199: thread init
199:
199: nudge delivered 1
199:
199: Hello, world!
199:
199: .*ELF Header:
199:
199: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00.*
199: Class: ELF64
199: Data: 2's complement, little endian
199: Version: 1 \(current\)
199: OS/ABI: UNIX - GNU
199: ABI Version: 0
199: Type: CORE \(Core file\)
199: Machine: .*
199: Version: 0x1
199: Entry point address: 0x[0-9a-f]+
199: Start of program headers: 64 \(bytes into file\)
199: Start of section headers: [0-9]+ \(bytes into file\)
199: Flags: 0x0
199: Size of this header: 64 \(bytes\)
199: Size of program headers: 56 \(bytes\)
199: Number of program headers: [0-9]+
199: Size of section headers: 64 \(bytes\)
199: Number of section headers: [0-9]+
199: Section header string table index: [0-9]+
199:
199: .*
199:
199: Section Headers:
199:
199: .*\[Nr\] Name Type Address Offset
199:
199: Size EntSize Flags Link Info Align
199:
199: .* \[vvar\] PROGBITS.*
199:
199: .* \[vdso\] PROGBITS.*
199:
199: .* shstrtab STRTAB.*
199:
199: Program Headers:
199:
199: Type Offset VirtAddr PhysAddr
199: FileSiz MemSiz Flags Align
199: NOTE.*
199: LOAD.*
199:
199: .*
199:
199: Displaying notes found at file offset 0x[0-9a-f]+ with length 0x[0-9a-f]+:
199:
199: Owner.*Data size.*Description
199: CORE.*NT_PRSTATUS.*\(prstatus structure\)
199: CORE.*NT_FPREGSET.*\(floating point registers\)
199:
199: |
199:
199:
1/1 Test #199: code_api|client.memory_dump_test ...***Failed 0.23 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.29 sec
The following tests FAILED:
199 - code_api|client.memory_dump_test (Failed)
Errors while running CTest
Output from these tests are in: /home/binwang/projects/dynamorio/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Full log
The relevant part seems to be