[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#892096: marked as done (gcc-snapshot: AddressSanitizer uses glibc internal functions)



Your message dated Thu, 22 Mar 2018 08:51:47 +0000
with message-id <E1eyvwp-0009wk-Si@fasolo.debian.org>
and subject line Bug#892096: fixed in gcc-snapshot 1:20180322-1
has caused the Debian Bug report #892096,
regarding gcc-snapshot: AddressSanitizer uses glibc internal functions
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
892096: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892096
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-snapshot
Version: 20180216-1
Severity: important

On a program that does nothing, the AddressSanitizer segfaults with
the 32-bit ABI. This is a regression.

I have the following gcc-snapshot script:

#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
rpath=""
OLD_IFS="$IFS"
IFS=:
for i in $LD_RUN_PATH
do
  rpath="$rpath -Wl,-rpath -Wl,$i"
done
IFS="$OLD_IFS"
exec gcc -Wl,-rpath -Wl,/usr/lib/gcc-snapshot/lib \
         -Wl,-rpath -Wl,/usr/lib/gcc-snapshot/lib32 \
         -Wl,-rpath -Wl,/usr/lib/gcc-snapshot/libx32 $rpath "$@"

cventin:~> cat tst.c
int main (void)
{
  return 0;
}
cventin:~> gcc-snapshot -m32 -fsanitize=address tst.c -o tst
cventin:~> ./tst
AddressSanitizer:DEADLYSIGNAL
=================================================================
==25032==ERROR: AddressSanitizer: SEGV on unknown address 0xf7fa7e70 (pc 0xf7fa7e84 bp 0xffbf40ac sp 0xffbf406c T16777215)
==25032==The signal is caused by a WRITE memory access.
    #0 0xf7fa7e83 in _dl_get_tls_static_info (/lib/ld-linux.so.2+0x11e83)
    #1 0xf7ac147d  (/usr/lib/gcc-snapshot/lib32/libasan.so.5+0x10e47d)
    #2 0xf7aafd27  (/usr/lib/gcc-snapshot/lib32/libasan.so.5+0xfcd27)
    #3 0xf7fa591a  (/lib/ld-linux.so.2+0xf91a)
    #4 0xf7f96cb9  (/lib/ld-linux.so.2+0xcb9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV (/lib/ld-linux.so.2+0x11e83) in _dl_get_tls_static_info
==25032==ABORTING

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-snapshot depends on:
ii  binutils        2.30-5
ii  lib32z1         1:1.2.8.dfsg-5
ii  libc6           2.27-1
ii  libc6-dev       2.27-1
ii  libc6-dev-i386  2.27-1
ii  libc6-dev-x32   2.27-1
ii  libc6-i386      2.27-1
ii  libc6-x32       2.27-1
ii  libgc1c2        1:7.4.2-8.1
ii  libgmp10        2:6.1.2+dfsg-2
ii  libisl15        0.18-1
ii  libmpc3         1.1.0-1
ii  libmpfr6        4.0.1-1
ii  python          2.7.14-4
ii  zlib1g          1:1.2.8.dfsg-5

gcc-snapshot recommends no packages.

Versions of packages gcc-snapshot suggests:
ii  binutils [binutils-gold]  2.30-5

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: gcc-snapshot
Source-Version: 1:20180322-1

We believe that the bug you reported is fixed in the latest version of
gcc-snapshot, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 892096@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-snapshot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 22 Mar 2018 15:47:41 +0800
Source: gcc-snapshot
Binary: gcc-snapshot
Architecture: source
Version: 1:20180322-1
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description:
 gcc-snapshot - SNAPSHOT of the GNU Compiler Collection
Closes: 892096 892873
Changes:
 gcc-snapshot (1:20180322-1) unstable; urgency=medium
 .
   * Snapshot, taken from the trunk (20180322, r258755).
     - Fix sanitizer support on x86 with glibc-2.27. Closes: #892096.
 .
 gcc-snapshot (1:20180320-1) experimental; urgency=medium
 .
   * Snapshot, taken from the trunk (20180320, r258670).
   * Bump epoch, reset version number to a proper date. Closes: #892873.
Checksums-Sha1:
 69b7687f644e2ba55b1be5f9788c3580ea5661eb 11842 gcc-snapshot_20180322-1.dsc
 906d4a48c5ca74cd46a1b7514bbeb4185eee53ad 59487775 gcc-snapshot_20180322.orig.tar.gz
 1d9ac505cc45e124699ce638d8da9723badfe08f 536666 gcc-snapshot_20180322-1.diff.gz
 1a890eba82181aa03883ea065dda6b4e352a5032 8924 gcc-snapshot_20180322-1_source.buildinfo
Checksums-Sha256:
 537b30c41abc4448f01f48ed790fdb849162d76927769c9ddfc353ea9723dc3b 11842 gcc-snapshot_20180322-1.dsc
 13a704d6807391b820220a7c918026ce9c63c78f549585347142d4b9941d911e 59487775 gcc-snapshot_20180322.orig.tar.gz
 129ad06f0625b44bbd1568c36d4fde5501a8aa90ccee1cf93a03e3036e306d9b 536666 gcc-snapshot_20180322-1.diff.gz
 76de2cf94a9c8293d88fd0f0a726cbe16f3bfd87e736bf113885a828fd625224 8924 gcc-snapshot_20180322-1_source.buildinfo
Files:
 18f0640f7c4ae937ff51d3c51cc7929e 11842 devel optional gcc-snapshot_20180322-1.dsc
 77892ddd3a0421b9a570f4a63e82928c 59487775 devel optional gcc-snapshot_20180322.orig.tar.gz
 d44ccde798dd85bf0ae4fc7231bffb78 536666 devel optional gcc-snapshot_20180322-1.diff.gz
 e78cd945c1ad1c3996600277318f04a6 8924 devel optional gcc-snapshot_20180322-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAlqzYK8QHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9e5XD/9TjPuy+Ux21sfUJ+dCpi2RwXaB/3NfeZ3p
pzjN8ewRDEVtegboU0vBDDfKsFsSdnhQqOJfw3+V2Y9n99PUYMK0OlfzVnZ+d4Yr
cpkyl32kS5H4ik0YDdOGkOSywO4EBxw3UO7an2tgXH5lMSrytmqQKPDELtRyi+GL
fzdcPzpkTxGNoA8PK+tItcKhTAtgVRW2JQw4QDY1AB5G+NXEN9wCsKL7fNUi+l9O
/1T6pS265qSHp9Ggbm4KzFjg1K6L+Oh86Ougorj1eK9jS6oI41ZQPe9uf0E7ac3v
qs8dlhMhCA+FJDuJrsj+WxYcCYIDeU7pTH2E6N3jKVxAAfQBV4rTN8iuY/H5EaOA
v1KRaatrrgWDYtEHjFGBd1Ow4fYtlIpeoN5I9f4FP3OQDkRoV6kles2sQn4qAhAS
3FJGHZHy2CAWvTMoSM/wCLMO+jfje2jTBF0ojYyXuzX7UYkWzPa3CDRXR4sGP1ac
uWTMFwHjzqhBrQ1QXvUDEXoBtlgi4d7LMQgPHBORGE20slWbaSffNIF/UC4PUAKx
sGhj/0rgB7PcWQVyXG1/TotF0zXhbVQ/JbHWB4fP2VZLG6f3BArumwaDYSMbTzF6
OK5HbaGN5HkFRm8B0j4ueNRvJJJP1TRlllzszgLKi1cDZF0zyJtwKYixZRQn6324
il3UxkGcrg==
=2fer
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: