Comments (11)
Failed to load MI Debugger:Dwarf Error: wrong unit_type in
compilation unit header (is DW_UT_split_compile (0x05), should be DW_UT_type (0x02)) [in module/build/.cache/bazel/_bazel_vscode/-2d35de14639eaad1ac7060a4dd7e3351/execroot/envoy/bazel-out/k8- dbg/bin/source/exe/_objs/envoy_main_entry_lib/main.pic.dwo](from file-exec-and-symbols "/build/.cache/bazel/_bazel_vscode/-2d35de14639eaad1ac7060a4dd7e3351/execroot/envoy/bazel-out/k8- dbg/bin/source/exe/envoy-static")
from envoy.
How can I fix this error?
from envoy.
from envoy.
could you try the lldb? Seems that the current build flags is not friendly to the gdb.
from envoy.
from envoy.
could you try the lldb? Seems that the current build flags is not friendly to the gdb.
@wbpcode I tried debugging with lldb, but it causes a spike in my Docker CPU usage, eventually leading to unresponsiveness in Docker.
from envoy.
gcc version could be a factor (from reading this https://sourceware.org/bugzilla/show_bug.cgi?id=27354)
what version are you testing with? is it >= 11.1 ? is it the gcc in the envoy build container - which i think is 11.4?
from envoy.
Seems it works in our local env.
1.VScode configuration:
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Envoy",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/bazel-bin/source/exe/envoy-static",
"args": ["-c", "path/to/your/envoy.yaml"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
2.Make sure GDB was installed on your host.
I faced the same "MIDebuggerPath" issue. But after re-install the gdb , vscode debug works well.
from envoy.
gcc version could be a factor (from reading this https://sourceware.org/bugzilla/show_bug.cgi?id=27354)
what version are you testing with? is it >= 11.1 ? is it the gcc in the envoy build container - which i think is 11.4?
@phlax Thank you. I think this is the reason for the error. However, this image is provided by Envoy. I hope you can fix this issue. I will fix it in my local image first.
from envoy.
However, this image is provided by Envoy.
i suspect you need to rebuild your vscode env or similar - the current Envoy image contains gcc 11.4
from envoy.
After upgrading gdb to 11.2, this issue has been resolved. Thanks everyone for your help.
@phlax @wbpcode @wufanqqfsc
from envoy.
Related Issues (20)
- Why doesn't ActiveInternalListener::newActiveConnection increase num_connections_ HOT 2
- //test/common/router:config_impl_headermap_benchmark_test is broken HOT 2
- Connection attribute connection.transport_failure_reason doesn't work as expected HOT 1
- Build Issue with DataDog Dependency HOT 5
- Segmentation fault during file-based ECDS update HOT 3
- code segment access for CONSTRUCT_ON_FIRST_USE in c++20 HOT 12
- AWS STS API - Expiration field misunderstood - Timestamps are formatted according to the ISO 8601 not unix timestamp HOT 3
- Newer release available `bazel_skylib`: 1.6.1 (current: 1.5.0)
- Newer release available `com_github_gabime_spdlog`: v1.14.0 (current: v1.13.0) HOT 1
- Initial application logs are not respecting application_log_config HOT 3
- http health check unstable behavior HOT 3
- OAuth2 Filter - ID Token Cookie Too Large HOT 5
- Newer release available `com_github_grpc_grpc`: v1.63.0 (current: v1.59.4) HOT 1
- `io_uring` test fails with newer kernel (arm?) HOT 3
- rpc error: code = Unavailable desc = Starting HOT 3
- Linking failed when trying to compile the binary from the envoy 1.29.1 HOT 4
- Newer release available `rules_proto`: 6.0.0 (current: 4.0.0) HOT 1
- Move datadog example (Docker) out of `/source` HOT 4
- Envoy endpoints not loading since Chrome release 124 HOT 21
- Referenced video in README.md is not available HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envoy.