Bug#836723: Address Sanitizer (asan) builds crash on start with libc6 >= 2.24

Michael Stapelberg stapelberg at debian.org
Mon Sep 5 06:27:57 UTC 2016


Package: clang
Version: 1:3.6-33
Severity: normal

Compiling the following file:

#include <stdio.h>

int main(void) { 
	printf("hello world\n");
	return 0; 
} 

with clang -o hello hello.c -fsanitize=address results in a binary which
crashes when starting:

$ /tmp/hello
==3178==AddressSanitizer CHECK failed: /tmp/buildd/llvm-toolchain-3.6-3.6.2/projects/compiler-rt/lib/asan/asan_rtl.cc:301 "((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)
    <empty stack>

The upstream bug report is at https://llvm.org/bugs/show_bug.cgi?id=27310
Fedora 23 report is at https://bugzilla.redhat.com/show_bug.cgi?id=1335011
Arch Linux report is at https://bugs.archlinux.org/task/50366

It seems like https://reviews.llvm.org/rL269633 is the patch we should
backport to fix this issue.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clang depends on:
ii  clang-3.6  1:3.6.2-3

clang recommends no packages.

clang suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list