[Bug sanitizer/118578] simple code crash on some AlmaLinux 8.4 but works on other machines of the same OS

2025-01-21 Thread Yang.Li at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118578

--- Comment #4 from Leon Li  ---
Thanks Andrew, I'll consult our IT to confirm your questions.

[Bug sanitizer/118578] New: simple code crash on some AlmaLinux 8.4 but works on other machines of the same OS

2025-01-20 Thread Yang.Li at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118578

Bug ID: 118578
   Summary: simple code crash on some AlmaLinux 8.4 but works on
other machines of the same OS
   Product: gcc
   Version: 12.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: sanitizer
  Assignee: unassigned at gcc dot gnu.org
  Reporter: Yang.Li at synopsys dot com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
  Target Milestone: ---

OS: AlmaLinux release 8.4
Kernel: Linux 4.18.0-425.3.1.el8.x86_64 x86_64
How to produce:
1. On AlmaLinux 8.4 machine:
$echo 'void main(void){}' | g++ -fsanitize=thread -xc - 
2. on some machine:
$./a.out
FATAL: ThreadSanitizer: unexpected memory mapping
0x8008a000-0x8008e000
3. On another AlmaLinux 8.4 machine:
$./a.out


A workaround is to select machine with cpu_code "E5-2660v3". But this may
reduce much our available machines to run regression.

Is this a known issue, or any solution can be found from GCC / sannitizer?

Regards,
Leon