Update gdb to 15.1 (by compiling from sources)#66494
Update gdb to 15.1 (by compiling from sources)#66494alexey-milovidov merged 5 commits intoClickHouse:masterfrom
Conversation
|
This is an automated comment for commit 5390d1b with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
|
What do we think about using LLDB instead of GDB? |
It is an option, but apart from couple of small code issues there is one bug in lldb, that cannot unwind from signal handlers properly, that has been fixed only llvm/llvm-project#92291 |
6946536 to
698ce2c
Compare
Right now there are couple of gdb bugs that makes CI unstable: - https://sourceware.org/bugzilla/show_bug.cgi?id=29185 - https://bugzilla.redhat.com/show_bug.cgi?id=1492496 But ubuntu 22.04 does not have 14+ anywhere, the ~ubuntu-toolchain-r/test contains only gdb 13, so there is no other options except for compiling it from sources. But there also other reasons to update it - optimizations, looks like older gdb versions does not use index fully - 5.6sec vs 56sec: # 15.1 $ time command gdb -batch -ex 'disas main' clickhouse ... real 0m5.692s user 0m29.948s sys 0m1.190s # 12.1 (from ubuntu 22.04) real 0m56.709s user 0m59.307s sys 0m0.585s Also note, that we cannot compile gdb in the fasttest (that contains compiler) since some images does not includes full toolchain, for instance gdb is added in the following images: - test-util -> test-base -> lots of other images (no toolchain) - performance-comparison (no toolchain) - integration-test (no toolchain) - integration-tests-runner (no toolchain) Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
|
Now it works as expected - and it should fix gdb related issues on CI. Can someone please take a look? |
|
There are some timeouts on CI, I think gdb could be related (though it is not 100% since no artifacts captured) - #67960 (comment) So it will be nice if someone can take a look |
|
LGTM. new images are just 100-200MB heavier |
Right now there are couple of gdb bugs that makes CI unstable:
But ubuntu 22.04 does not have 14+ anywhere, the
~ubuntu-toolchain-r/test contains only gdb 13, so there is no other
options except for compiling it from sources.
But there also other reasons to update it - optimizations, looks like
older gdb versions does not use index fully - 5.6sec vs 56sec:
Also note, that we cannot compile gdb in the fasttest (that contains
compiler) since some images does not includes full toolchain, for
instance gdb is added in the following images:
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Update gdb to 15.1 (by compiling from sources)
Fixes: #66487
Fixes: #62633