From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id C1B9B3858D32 for ; Thu, 13 Apr 2023 09:55:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C1B9B3858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7B683218D9; Thu, 13 Apr 2023 09:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1681379710; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JYHE2TTBKFcS0nO7YEmjhP4jt3c+/PeAmr0Sbsc4D5Y=; b=KiTAV0d1l4j/4InOW9EjZqlKFCs+Kk6lgI1FMQXaSDCT2tHi13R8e2bp0gkgI6yIQOvjDh XE9No8oL3H/KXttdXh5KRy8TMLoIzbf4iuTGmuQm301l/yzZZvDQqUnRlivL1dzI6re0iQ 9Gq685moBpjgMMa1C1urU04Yn+JfiVI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1681379710; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JYHE2TTBKFcS0nO7YEmjhP4jt3c+/PeAmr0Sbsc4D5Y=; b=OmFpUwhKeJ688w/F1Imt2ayq4IXfv0Hr8d9v/umLFb/dvysXMrkvk2dGyz0c7aSnOjlWBk 8L9R8qjlho9veQCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 6B4E913421; Thu, 13 Apr 2023 09:55:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id LIVWGX7RN2RHPAAAMHmgww (envelope-from ); Thu, 13 Apr 2023 09:55:10 +0000 Message-ID: Date: Thu, 13 Apr 2023 11:55:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: pe_ILF_object_p and bfd_check_format_matches To: Alan Modra , binutils@sourceware.org References: Content-Language: en-US From: =?UTF-8?Q?Martin_Li=c5=a1ka?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 4/13/23 04:58, Alan Modra via Binutils wrote: > |The last patch wasn't quite correct.| Heh, I've just noticed that this change caused a crash when ar is called for ~150 files: ==27734== Invalid read of size 4 ==27734== at 0x4D576DD: ftello (in /usr/lib64/libc.so.6) ==27734== by 0x4958E18: close_one (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x495F2F4: bfd_open_file (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x4B86557: bfd_plugin_open_input (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x4B8674F: try_load_plugin (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x4B86A5B: bfd_plugin_object_p.lto_priv.0 (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x49626EA: bfd_check_format_matches (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x4963016: _bfd_write_archive_contents (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x4968DD5: bfd_close (in /usr/lib64/libbfd-2.40.50.20230412-797.so) ==27734== by 0x10E9BB: write_archive (in /usr/bin/ar) ==27734== by 0x1103DD: main (in /usr/bin/ar) ==27734== Address 0x0 is not stack'd, malloc'd or (recently) free'd Martin