From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41700 invoked by alias); 5 Apr 2018 20:02:08 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 40321 invoked by uid 89); 5 Apr 2018 20:02:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Glad, roland, Roland X-HELO: www84.your-server.de Received: from www84.your-server.de (HELO www84.your-server.de) (213.133.104.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Apr 2018 20:02:05 +0000 Received: from [188.192.103.1] (helo=vger.local) by www84.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1f4B58-00021N-V4 for libc-help@sourceware.org; Thu, 05 Apr 2018 22:02:03 +0200 Message-ID: <1522958519.9141.11.camel@seibold.net> Subject: glibc 2.26 mtrace broken, missing allocations From: Stefani Seibold To: libc-help@sourceware.org Date: Thu, 05 Apr 2018 20:02:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-04/txt/msg00008.txt.bz2 Hi, when using mtrace i get a report of a reallocation which has an address which was not reported. For example: @ /usr/lib64/libgobject-2.0.so.0:(g_signal_newv+0x23d)[0x7ffff7eb409d] - 0x5555559344c0 @ /usr/lib64/libglib-2.0.so.0:(g_malloc+0x19)[0x7ffff7244039] + 0x555555922d40 0x60 @ /usr/lib64/libglib-2.0.so.0:(g_realloc+0x20)[0x7ffff72440f0] < 0x5555558f0ea0 @ /usr/lib64/libglib-2.0.so.0:(g_realloc+0x20)[0x7ffff72440f0] > 0x5555558f0ea0 0x10 @ /usr/lib64/libglib-2.0.so.0:(g_realloc+0x20)[0x7ffff72440f0] < 0x5555558f0e70 The ingoing address 0x5555558f0ea0 for the realloc was not reported by an other alloc. The process (gvim -f) is single threaded and it is always the same address without address layout randomization. How is this possible? Are there allocation functions which are not traced by mtrace? My glibc version: GNU C Library (Gentoo 2.26-r6 p7) stable release version 2.26, by Roland McGrath et al. Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 7.3.0. Available extensions: crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B