Skip to content

Bug report: Receive SIGSEGV error when run the sh build.sh code. #66

@ywxy12138

Description

@ywxy12138

I just received SIGSEGV error when I run the sh build.sh code:

[wangziheng@localhost DrCCTProf]$ sh build.sh
add dynamorio patch...
init env...
Linking source files and cmakefiles..
make...
Prepare build directory and log directory ..
Enter /home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/scripts/build_tool/../../build ..
Running Cmake .. (See /home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/scripts/build_tool/../../logs/cmake.log.1737945814 for detail)
 Cmake successfully!
Running make .. (See /home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/scripts/build_tool/../../logs/make.log.1737945814 for detail)
 Make successfully!
make test...
Prepare test apps ..
 Start build test apps...
 Build test apps successfully!
Start test...
-----Testing Dynamorio---------
----------PASSED---------
----------Test 1 (null tool single thread)---------
----------PASSED---------
----------Test 2 (null tool multithread)---------
----------PASSED---------
----------Test 3 (insCount tool single thread)---------
----------PASSED---------
----------Test 4 (insCount tool multithread)---------
----------PASSED---------
----------Test 5 (reuse distance tool single thread)---------
<Application /home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/test_apps/build/test_app_reuse (4045362).  DynamoRIO Client 'drcctlib_reuse_distance' internal crash at PC 0x00000000790219d0.  Please report this at http://dynamorio.org/issues.  Program aborted.
Received SIGSEGV at pc 0x00000000790219d0 in thread 4045362
Base: 0x0000fffe0fed0000
Registers:      eflags=0x0000000000000000
version 9.0.19016, custom build
-no_dynamic_options -client_lib '/home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/scripts/build_tool/../../build/bin64/../clients/lib64/release/libdrcctlib_reuse_distance.so;0;' -client_lib64 '/home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/scripts/build_tool/../../build/bin64/../cl
0x0000fffc1009f4c0 0x000000007400487c
0x0000fffc1009f570 0x0000000074004d80
0x0000fffc1009f980 0x00000000400d0254
0x0000ffffde041a60 0x0000fffe0fe62764
0x0000ffffde041ad0 0x0000fffe0fe74438
0x0000ffffde041d10 0x0000fffe0fe618e4
0x0000ffffde041d80 0x0000fffe0fe61cc4
0x0000ffffde041dc0 0x0000fffe0fe61188>
----------FAILED---------
*************************************************
************* ALL TESTS Finished ****************
*************************************************

When I run the $drrun -t drcctlib_instr_statistics_clean_call -- echo "Hello World!" code, I received the result as follows:

[wangziheng@localhost DrCCTProf]$ $drrun -t drcctlib_instr_statistics_clean_call -- echo "Hello World!"
[drcctlib[instr_statistics](localhost.localdomain4085623) msg]====Creating log file at:arm.localhost.localdomain-4085623.instr_statistics_clean_call.out
<Application /usr/bin/echo (4085623).  DynamoRIO Client 'drcctlib_instr_statistics_clean_call' internal crash at PC 0x0000fffd15ee18f8.  Please report this at http://dynamorio.org/issues.  Program aborted.
Received SIGSEGV at pc 0x0000fffd15ee18f8 in thread 4085623
Base: 0x0000fffd59d10000
Registers:      eflags=0x0000000000000000
version 9.0.19016, custom build
-no_dynamic_options -client_lib '/home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/build/bin64/../clients/lib64/release/libdrcctlib_instr_statistics_clean_call.so;0;' -client_lib64 '/home/wangziheng/DrCCTProf-cache_ineffective_manner_check/DrCCTProf/build/bin64/../clients/lib64/release/libdrcctlib_instr
0x0000fffb15eef4c0 0x0000fffd1628487c
0x0000fffb15eef570 0x0000fffd16284d80
0x0000fffb15eef980 0x0000fffd15e463f0
0x0000ffffffe8a6b0 0x0000fffd59ca2764
0x0000ffffffe8a720 0x0000fffd59cb4438
0x0000ffffffe8a960 0x0000fffd59ca18e4
0x0000ffffffe8a9d0 0x0000fffd59ca1cc4
0x0000ffffffe8aa10 0x0000fffd59ca1188>

Expected behavior

For the first codes, I expect that it will compile right.For the second one, I expect that it will output "Hello World!".

Information on your system:
I did all my work on the server provided by others, so I don't exactly know the information about it.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions