envoyproxy / envoyproxy/envoy-mobile

Native crash doesn't give stack trace in Android

Open
#2,576 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
566
Forks
85
PR merge metrics
No merged PRs in 30d

Description

**Steps to reproduce:**
1. Add a `ASSERT(false)` in Envoy, for example at https://github.com/envoyproxy/envoy/blob/main/source/common/upstream/upstream_impl.cc#L920
2. Build the Envoy-mobile sample app `./bazelw mobile-install //examples/java/hello_world:hello_envoy`
3. Run the app with adb logcat on.

**What's expected:**
adb prints a crash stack trace.

**What happened instead:**
No stack trace, only have a general process died log:
```
09-28 13:10:20.768 1671 5051 I ActivityManager: Process io.envoyproxy.envoymobile.helloenvoy (pid 10684) has died: fg TOP
09-28 13:10:20.768 1671 2379 I libprocessgroup: Successfully killed process cgroup uid 10251 pid 10684 in 0ms
09-28 13:10:20.769 1671 5051 W ActivityTaskManager: Force removing ActivityRecord{f4df7a5 u0 io.envoyproxy.envoymobile.helloenvoy/.MainActivity t64}: app died, no saved state
09-28 13:10:20.771 923 923 I Zygote : Process 10684 exited due to signal 6 (Aborted)
09-28 13:10:20.772 1671 5051 W InputManager-JNI: Input channel object '4b4d0 io.envoyproxy.envoymobile.helloenvoy/io.envoyproxy.envoymobile.helloenvoy.MainActivity (client)' was disposed without first being removed with the input manager!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.