DynamoRIO / DynamoRIO/dynamorio

CRASH drcov2lcov on Android

Open
#1,749 1 comment 0 reactions 0 assignees View on GitHub
Bug-DRCrash Component-DRTool OpSys-Android OpSys-ARM
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 18h
Merged PRs (30d)
30

Description

First we have to build as PIE. Then, the Android linker doesn't support rpath, and even when setting LD_LIBRARY_PATH we get a crash (preceded by a SIGSTOP or sthg):

```
1|shell@flo:/data/local/tmp/dr $ LD_LIBRARY_PATH=lib32/debug clients/bin32/drc>
WARNING: linker: clients/bin32/drcov2lcov: unused DT entry: type 0xf arg 0x3f6
[1] + Stopped (signal) LD_LIBRARY_PATH=lib32/debug clients/bin32/drcov2lcov -input drcov.hello.android.30239.0000.proc.log
[1] + Segmentation fault LD_LIBRARY_PATH=lib32/debug clients/bin32/drcov2lcov -input drcov.hello.android.30239.0000.proc.log
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by running clients/bin32/drcov2lcov on Android with LD_LIBRARY_PATH=lib32/debug and the supplied drcov log. First investigate the PIE requirement, unsupported rpath, linker warning, and resulting stop or segmentation fault. Done means drcov2lcov runs on Android and processes the input without crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, c
Domain
mobile-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.