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 2023/03/10 16:36:00 UTC

[jira] [Commented] (IMPALA-11935) Generate core dumps if ASAN/TSAN/UBSAN built tests crash

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

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

Commit b5524e95a1f8ddc920287b9092558a86c987d037 in impala's branch refs/heads/master from Gergely Fürnstáhl
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=b5524e95a ]

IMPALA-11935: Generate core dumps if ASAN/TSAN/UBSAN built be tests crash

By default, on 64-bit systems, programs built with sanitizers do not
produce minidumps nor coredumps due to the shadow memory - which is used
for house keeping - being huge and the generated dumps would be too
big (~16TB).

https://gcc.gnu.org/bugzilla//show_bug.cgi?id=89868

The shadow memory can be stripped on exit and the core
dumps can be generated by setting the (T|A|UB)SAN_OPTIONS environment
variable before running the program.

https://stackoverflow.com/questions/42851670/how-to-generate-core-dump-on-addresssanitizer-error

This can help investigating crashes in sanitized builds.

Testing:
 - Locally injected an std::abort() to a test case, built it with TSAN
and verified the creation of the core dump and gdb showed the correct
stack frame.

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


> Generate core dumps if ASAN/TSAN/UBSAN built tests crash
> --------------------------------------------------------
>
>                 Key: IMPALA-11935
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11935
>             Project: IMPALA
>          Issue Type: Improvement
>            Reporter: Gergely Fürnstáhl
>            Assignee: Gergely Fürnstáhl
>            Priority: Major
>
> By default, programs built with sanitizers do not produce minidumps nor coredumps due to them being too large:
> [https://gcc.gnu.org/bugzilla//show_bug.cgi?id=89868]
> But the unnecessary part can be striped and the core dumps can be generated:
> [https://stackoverflow.com/questions/42851670/how-to-generate-core-dump-on-addresssanitizer-error]
> with the help of environment variable similar to this:
> export TSAN_OPTIONS=abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1
> This can help investigating crashing backend tests built with sanitize option.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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