You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Currently, our release builds of facilitator are not stripped, which means that we can get symbolicated backtraces in gdb, but we don't get line numbers because we don't enable debug. The downside of enabling debug is slower build times (I think) and very big binaries: I gave it a shot locally and saw that the release binary with debug info is over 300 MB, versus 28 MB without. However getting line numbers when debugging cores is really nice. We should read up on Rust best practices and think about how to do better.
The text was updated successfully, but these errors were encountered:
The easiest thing would be to add debug = true to the release profile. The upside is that it's easy; the downside is 10x bigger containers.
We could also be clever and build with debug, then copy the debuginfo out of the resulting binary, strip the binary and finally store the debug info somewhere so that we can later debug stripped binaries. The upside is that it doesn't bloat containers; the downside is that we have to design, build and maintain the infra for storing symbols (though this could be as simple as a GCS bucket). Maybe there's an existing turnkey solution for this in the Rust community.
Here's a variety of interesting resources about Rust debugging I found while researching this:
Currently, our release builds of
facilitator
are not stripped, which means that we can get symbolicated backtraces ingdb
, but we don't get line numbers because we don't enabledebug
. The downside of enablingdebug
is slower build times (I think) and very big binaries: I gave it a shot locally and saw that the release binary with debug info is over 300 MB, versus 28 MB without. However getting line numbers when debugging cores is really nice. We should read up on Rust best practices and think about how to do better.The text was updated successfully, but these errors were encountered: