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 "Michael Smith (Jira)" <ji...@apache.org> on 2026/08/22 17:58:00 UTC
[jira] [Assigned] (IMPALA-15010) Patch gperftools to prevent integer wrap when tcmalloc_max_total_thread_cache_bytes > INT_MAX
[ https://issues.apache.org/jira/browse/IMPALA-15010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Smith reassigned IMPALA-15010:
--------------------------------------
Assignee: Joe McDonnell
> Patch gperftools to prevent integer wrap when tcmalloc_max_total_thread_cache_bytes > INT_MAX
> ---------------------------------------------------------------------------------------------
>
> Key: IMPALA-15010
> URL: https://issues.apache.org/jira/browse/IMPALA-15010
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 5.0.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
> Fix For: Impala 5.0.0
>
>
> The size and max_size counters for a thread cache are stored as a 32-bit signed integers inside gperftools. With the default tcmalloc_max_total_thread_cache_bytes, this doesn't matter. As tcmalloc_max_total_thread_cache_bytes goes above INT_MAX, it becomes hypothetically possible for the size or max size to wrap and go negative. This should be hard to hit, but it would be better to patch gperftools to prevent it. In google tcmalloc, they use size_t for the size and max_size counters in the thread cache.
--
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