You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/02/05 02:02:00 UTC

[jira] [Commented] (IMPALA-10046) Compile with a newer version of DWARF

    [ https://issues.apache.org/jira/browse/IMPALA-10046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487400#comment-17487400 ] 

ASF subversion and git services commented on IMPALA-10046:
----------------------------------------------------------

Commit 6c845eb24b952972975126e07a36cd1565ada629 in impala's branch refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=6c845eb ]

IMPALA-10046: Switch backend to compile with DWARF 4 debug info

Currently, Impala compiles with -gdwarf-2 to use DWARF 2 debug
information. DWARF 4 provides better C++ language support and
better compression (reducing binary sizes), but it requires
GDB 7.0 or above. All of the Linux distributions that Impala
supports now have GDB 7.0 or above. This switches to using DWARF 4.

Binary sizes are reduced somewhat:
                | DWARF 2 size    | DWARF 4 size
impalad DEBUG   | 573321352       | 519329200
impalad RELEASE | 713582048       | 693286800

This is also true for all unit tests. This has no impact on the
stripped binary sizes.

Testing:
 - Ran core job
 - Created a minidump and resolved it via the usual method
 - Attached to impalad with gdb, set breakpoints, took backtraces, etc.

Change-Id: I7b6e75845ab137d0a7674289e4b331f682eee5b2
Reviewed-on: http://gerrit.cloudera.org:8080/18194
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Compile with a newer version of DWARF
> -------------------------------------
>
>                 Key: IMPALA-10046
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10046
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Infrastructure
>    Affects Versions: Impala 4.0.0
>            Reporter: Joe McDonnell
>            Priority: Major
>
> Impala currently compiles with DWARF-2 for debugging information. Newer versions of DWARF provide additional support for new C++ features and reduced size of the debugging information in the binary. Now that we have dropped support for older OSes, the main limitation is what gdb supports.
> We should look into what DWARF version is supported by the gdb versions on the platforms that we support. If possible, we should use a newer version of DWARF.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org