From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dog.birch.relay.mailchannels.net (dog.birch.relay.mailchannels.net [23.83.209.48]) by sourceware.org (Postfix) with ESMTPS id E09A33860C3D for ; Mon, 19 Jul 2021 11:17:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E09A33860C3D X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3770B702AD8; Mon, 19 Jul 2021 11:17:27 +0000 (UTC) Received: from pdx1-sub0-mail-a15.g.dreamhost.com (100-105-161-168.trex-nlb.outbound.svc.cluster.local [100.105.161.168]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 048A2701E91; Mon, 19 Jul 2021 11:17:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a15.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.168 (trex/6.3.3); Mon, 19 Jul 2021 11:17:27 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Society-White: 682b736003948037_1626693447086_2604174637 X-MC-Loop-Signature: 1626693447085:3795773661 X-MC-Ingress-Time: 1626693447085 Received: from pdx1-sub0-mail-a15.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTP id ABE4A89D59; Mon, 19 Jul 2021 04:17:24 -0700 (PDT) Received: from [192.168.1.141] (unknown [1.186.101.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTPSA id CC00D8A26E; Mon, 19 Jul 2021 04:17:22 -0700 (PDT) Subject: Re: [PATCH v9 00/10] malloc hooks removal To: Florian Weimer Cc: libc-alpha@sourceware.org References: <20210719024134.155398-1-siddhesh@sourceware.org> <87v956y32o.fsf@oldenburg.str.redhat.com> <0a0fed30-fe70-ce0c-e80d-130afd0a49b7@sourceware.org> <87lf62y2w3.fsf@oldenburg.str.redhat.com> X-DH-BACKEND: pdx1-sub0-mail-a15 From: Siddhesh Poyarekar Message-ID: Date: Mon, 19 Jul 2021 16:47:17 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <87lf62y2w3.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3485.8 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NEUTRAL, TXREP, URIBL_BLACK autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 11:17:30 -0000 On 7/19/21 4:41 PM, Florian Weimer wrote: > * Siddhesh Poyarekar: > >> On 7/19/21 4:37 PM, Florian Weimer via Libc-alpha wrote: >>> This series break old Emacs binaries (e.g. emacs-24.3-23.el7.x86_64): >>> $ bash testrun.sh /usr/bin/emacs >> >> Do they work if you run with LD_PRELOAD=malloc/libc_malloc_debug.so? > > Basic testing suggests it works. The thing is, set_malloc_state will just not be called without the preload, so it doesn't matter what it returns. What we need to make a more graceful exit is to detect the existence of a non-NULL __malloc_initialize_hook within libc.so and abort. I'm not sure if it's worth the effort. Siddhesh