You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Joe McDonnell (Code Review)" <ge...@cloudera.org> on 2022/10/06 22:26:45 UTC

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Joe McDonnell has uploaded this change for review. ( http://gerrit.cloudera.org:8080/19104


Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................

IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Building with -so on Ubuntu 18 or higher fails due to
an issue finding dlopen in unwind_safeness.cc.
unwind_safeness.cc:76] Check failed: !error failed to find symbol dlopen
unwind_safeness.cc is using dlsym to load the dlopen symbol
so that it can wrap it with its own dlopen code. The Impala
build has issues with the ordering of libraries, and this
code does not find dlopen. This has previously happened with
the dl_iterate_phdr symbol in Kudu.

This is a problem starting with Ubuntu 18.04, because Ubuntu 16.04
uses a version of glibc that has a bug in reporting this
error. Ubuntu 18.04 uses a newer glibc with a fix for the bug. See
https://sourceware.org/bugzilla/show_bug.cgi?id=19509 .
As a workaround for this issue, this tolerates not finding
dlopen/dlclose when building with shared libraries. Impala shared
libraries are not used in production, so this bypasses the issue.
If something tries to dereference these symbols that have not
been found, it would be dereferencing a null pointer, so that
is very noticeable.

This also fixes an issue where Boost was always using static
libraries, even for shared library builds. This makes Boost use
shared libraries for shared library builds.

Testing:
 - The shared library build passes on Ubuntu 18 and Ubuntu 20
 - Impala can boot and run queries with shared libraries

Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
---
M CMakeLists.txt
M be/CMakeLists.txt
M be/src/kudu/util/debug/unwind_safeness.cc
3 files changed, 30 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/04/19104/1
-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 1:

(3 comments)

Thanks for the comments

http://gerrit.cloudera.org:8080/#/c/19104/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19104/1//COMMIT_MSG@11
PS1, Line 11: unwind_safeness.cc:76] Check failed: !error failed to find symbol dlopen
> This line could be surrounded by empty lines to emphasise that it is an exa
Done


http://gerrit.cloudera.org:8080/#/c/19104/1/be/src/kudu/util/debug/unwind_safeness.cc
File be/src/kudu/util/debug/unwind_safeness.cc:

http://gerrit.cloudera.org:8080/#/c/19104/1/be/src/kudu/util/debug/unwind_safeness.cc@36
PS1, Line 36:   ((decltype(&func_name))g_orig_ ## func_name)(__VA_ARGS__)
> To avoid dereferencing a NULL pointer in at least debug builds, we could ch
Good point, I added the DCHECK that you recommended.


http://gerrit.cloudera.org:8080/#/c/19104/1/be/src/kudu/util/debug/unwind_safeness.cc@77
PS1, Line 77:   CHECK(!error) << "failed to find symbol " << sym << ": " << error;
> Afaik the error in older systems is reporting the failure of dlsym through 
Good idea, I added an additional CHECK for ret being non null after this check.



-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 11 Oct 2022 23:08:28 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Joe McDonnell has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 2:

I did some basic hand tests on my Ubuntu 20 box, but I don't have an Ubuntu 16 box. So, let's see what the tests show.


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 11 Oct 2022 23:09:48 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Daniel Becker (Code Review)" <ge...@cloudera.org>.
Daniel Becker has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 1:

(3 comments)

http://gerrit.cloudera.org:8080/#/c/19104/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/19104/1//COMMIT_MSG@11
PS1, Line 11: unwind_safeness.cc:76] Check failed: !error failed to find symbol dlopen
This line could be surrounded by empty lines to emphasise that it is an example of the error.


http://gerrit.cloudera.org:8080/#/c/19104/1/be/src/kudu/util/debug/unwind_safeness.cc
File be/src/kudu/util/debug/unwind_safeness.cc:

http://gerrit.cloudera.org:8080/#/c/19104/1/be/src/kudu/util/debug/unwind_safeness.cc@36
PS1, Line 36:   ((decltype(&func_name))g_orig_ ## func_name)(__VA_ARGS__)
To avoid dereferencing a NULL pointer in at least debug builds, we could change this line to

DCHECK(g_orig_ ## func_name != nullptr), ((decltype(&func_name))g_orig_ ## func_name)(__VA_ARGS__)

The comma operator ensures that the DCHECK is evaluated first but the result of the expression is that of the second operand.

Dereferencing a nullptr is technically undefined behaviour so it would be good to avoid it even if the consequence is very probably a simple crash.


http://gerrit.cloudera.org:8080/#/c/19104/1/be/src/kudu/util/debug/unwind_safeness.cc@77
PS1, Line 77:   CHECK(!error) << "failed to find symbol " << sym << ": " << error;
Afaik the error in older systems is reporting the failure of dlsym through dlerror(). Couldn't we more reliably check the result if we also checked whether 'ret' is NULL?



-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Mon, 10 Oct 2022 12:39:25 +0000
Gerrit-HasComments: Yes

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Hello Daniel Becker, Michael Smith, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19104

to look at the new patch set (#3).

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................

IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Building with -so on Ubuntu 18 or higher fails due to
an issue finding dlopen in unwind_safeness.cc:

unwind_safeness.cc:76] Check failed: !error failed to find symbol dlopen

unwind_safeness.cc is using dlsym to load the dlopen symbol
so that it can wrap it with its own dlopen code. The Impala
build has issues with the ordering of libraries, and this
code does not find dlopen. This has previously happened with
the dl_iterate_phdr symbol in Kudu.

This is a problem starting with Ubuntu 18.04, because Ubuntu 16.04
uses a version of glibc that has a bug in reporting this
error. Ubuntu 18.04 uses a newer glibc with a fix for the bug. See
https://sourceware.org/bugzilla/show_bug.cgi?id=19509 .
As a workaround for this issue, this tolerates not finding
dlopen/dlclose when building with shared libraries. Impala shared
libraries are not used in production, so this bypasses the issue.
This also adds extra validation to make sure the symbols are non-null.
Specifically, this adds another CHECK in dlsym_or_die to verify
that the symbol is non-null. This also adds a DCHECK to verify that
the symbol is non-null at dereference.

This also fixes an issue where Boost was always using static
libraries, even for shared library builds. This makes Boost use
shared libraries for shared library builds.

Testing:
 - The shared library build passes on Ubuntu 18 and Ubuntu 20
 - Impala can boot and run queries with shared libraries

Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
---
M CMakeLists.txt
M be/CMakeLists.txt
M be/src/kudu/util/debug/unwind_safeness.cc
3 files changed, 42 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/04/19104/3
-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Michael Smith (Code Review)" <ge...@cloudera.org>.
Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 1: Code-Review+1


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Thu, 06 Oct 2022 22:31:08 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 1:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/11554/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 1
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Thu, 06 Oct 2022 22:47:34 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Joe McDonnell (Code Review)" <ge...@cloudera.org>.
Hello Daniel Becker, Michael Smith, Impala Public Jenkins, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/19104

to look at the new patch set (#2).

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................

IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Building with -so on Ubuntu 18 or higher fails due to
an issue finding dlopen in unwind_safeness.cc:

unwind_safeness.cc:76] Check failed: !error failed to find symbol dlopen

unwind_safeness.cc is using dlsym to load the dlopen symbol
so that it can wrap it with its own dlopen code. The Impala
build has issues with the ordering of libraries, and this
code does not find dlopen. This has previously happened with
the dl_iterate_phdr symbol in Kudu.

This is a problem starting with Ubuntu 18.04, because Ubuntu 16.04
uses a version of glibc that has a bug in reporting this
error. Ubuntu 18.04 uses a newer glibc with a fix for the bug. See
https://sourceware.org/bugzilla/show_bug.cgi?id=19509 .
As a workaround for this issue, this tolerates not finding
dlopen/dlclose when building with shared libraries. Impala shared
libraries are not used in production, so this bypasses the issue.
If something tries to dereference these symbols that have not
been found, it would be dereferencing a null pointer, so that
is very noticeable.

This also fixes an issue where Boost was always using static
libraries, even for shared library builds. This makes Boost use
shared libraries for shared library builds.

Testing:
 - The shared library build passes on Ubuntu 18 and Ubuntu 20
 - Impala can boot and run queries with shared libraries

Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
---
M CMakeLists.txt
M be/CMakeLists.txt
M be/src/kudu/util/debug/unwind_safeness.cc
3 files changed, 35 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/04/19104/2
-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 2:

Build Failed 

https://jenkins.impala.io/job/gerrit-code-review-checks/11607/ : Initial code review checks failed. See linked job for details on the failure.


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 11 Oct 2022 23:20:36 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Daniel Becker (Code Review)" <ge...@cloudera.org>.
Daniel Becker has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 3: Code-Review+2

Thanks. The build failure seems unrelated.


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 06:57:43 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 3:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8688/ DRY_RUN=false


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 06:58:22 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................

IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Building with -so on Ubuntu 18 or higher fails due to
an issue finding dlopen in unwind_safeness.cc:

unwind_safeness.cc:76] Check failed: !error failed to find symbol dlopen

unwind_safeness.cc is using dlsym to load the dlopen symbol
so that it can wrap it with its own dlopen code. The Impala
build has issues with the ordering of libraries, and this
code does not find dlopen. This has previously happened with
the dl_iterate_phdr symbol in Kudu.

This is a problem starting with Ubuntu 18.04, because Ubuntu 16.04
uses a version of glibc that has a bug in reporting this
error. Ubuntu 18.04 uses a newer glibc with a fix for the bug. See
https://sourceware.org/bugzilla/show_bug.cgi?id=19509 .
As a workaround for this issue, this tolerates not finding
dlopen/dlclose when building with shared libraries. Impala shared
libraries are not used in production, so this bypasses the issue.
This also adds extra validation to make sure the symbols are non-null.
Specifically, this adds another CHECK in dlsym_or_die to verify
that the symbol is non-null. This also adds a DCHECK to verify that
the symbol is non-null at dereference.

This also fixes an issue where Boost was always using static
libraries, even for shared library builds. This makes Boost use
shared libraries for shared library builds.

Testing:
 - The shared library build passes on Ubuntu 18 and Ubuntu 20
 - Impala can boot and run queries with shared libraries

Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Reviewed-on: http://gerrit.cloudera.org:8080/19104
Reviewed-by: Daniel Becker <da...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
M CMakeLists.txt
M be/CMakeLists.txt
M be/src/kudu/util/debug/unwind_safeness.cc
3 files changed, 42 insertions(+), 2 deletions(-)

Approvals:
  Daniel Becker: Looks good to me, approved
  Impala Public Jenkins: Verified

-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 4
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 3: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/8686/


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 05:40:44 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 3:

Build Successful 

https://jenkins.impala.io/job/gerrit-code-review-checks/11608/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 00:25:49 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 3: Verified+1


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 12:00:55 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 2:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8685/ DRY_RUN=true


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Tue, 11 Oct 2022 23:10:03 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 3:

Build started: https://jenkins.impala.io/job/gerrit-verify-dryrun/8686/ DRY_RUN=true


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 3
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 00:40:41 +0000
Gerrit-HasComments: No

[Impala-ASF-CR] IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+

Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/19104 )

Change subject: IMPALA-11640/IMPALA-11641: Workaround errors in shared library build on Ubuntu 18+
......................................................................


Patch Set 2: Verified-1

Build failed: https://jenkins.impala.io/job/gerrit-verify-dryrun/8685/


-- 
To view, visit http://gerrit.cloudera.org:8080/19104
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Iaab196b3d669ccc12854a98d0dbfbae2b9b91244
Gerrit-Change-Number: 19104
Gerrit-PatchSet: 2
Gerrit-Owner: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Daniel Becker <da...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Joe McDonnell <jo...@cloudera.com>
Gerrit-Reviewer: Michael Smith <mi...@cloudera.com>
Gerrit-Comment-Date: Wed, 12 Oct 2022 00:41:19 +0000
Gerrit-HasComments: No