From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 2BE603858D37 for ; Tue, 23 May 2023 11:06:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BE603858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684839986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cbyOj/EPpWp8eEGP4GNum68EYQkwrWYRIf08+r6/RlQ=; b=IJX4yNaj953/4fzv8w1uWxluNLewdS6g1TBMp1ktKNjBPnTDqTOk6jMBfFBmbFpf+Qjqmk pzU85bGsnox9efWTl/+1+8nTFZrstvRTo9XC5bRYpFXFLCpZR06jp5TbaAYYNTOzlMDTxf dMlGjoONI9fCr3V8hK4HhyMSirkr3NA= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-450-el_4OYqHNraDf3BD3KCc7Q-1; Tue, 23 May 2023 07:06:25 -0400 X-MC-Unique: el_4OYqHNraDf3BD3KCc7Q-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-30950eecbc0so1856980f8f.3 for ; Tue, 23 May 2023 04:06:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684839984; x=1687431984; h=content-transfer-encoding:in-reply-to:subject:from:content-language :references:cc:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cbyOj/EPpWp8eEGP4GNum68EYQkwrWYRIf08+r6/RlQ=; b=XCbQlz5f412YR3+l8m9XMjbymnNSUyAxKe0LZQP7wZF5uwQufC7BAn8LRJdsnQIhIE Ld9HiMckT7yZ0ttx5J8TstLuHANXY1eZetv0YIZFGdIM9p0dcTfewO8q3DjFWmIw7163 Uv7kwt+bQiMC8jFUkhgJrR2R+C7c98Zv2NgI9NoK/7QN20aySy5LJNKBHRLD8TPXStmJ Km03FiXY8bNYMEgFKgIxVKPauyp9+8VC58oF4rsiUYkB8KcbUHv/FEyc8DG3u1EqoOtZ GpiiQTPFv17VnryiCpC7Q/JjYnX67IbTS19FKTFtCtFtUF5bq1cDp95Zj7jTxJ+cX3oU HTlw== X-Gm-Message-State: AC+VfDzmW606Hrphnf1RDTpbi8wC2aHBbqmvlhz5L5o3As5xI2Hx7Md0 YI/C72JGXJ8hh0bqrunVKcv2W4ygITfkGP02gnulqCpeWLHfD+aDzNzj6CLcdJNN7JK2m3xyPbj eMlOKdW6bo90wR6QsJw== X-Received: by 2002:a5d:45c4:0:b0:309:51a4:d0b7 with SMTP id b4-20020a5d45c4000000b0030951a4d0b7mr10560546wrs.65.1684839984283; Tue, 23 May 2023 04:06:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4D8Fa62TY1U6FSxL5+Q8FnOv+NYla4F2adVow1Y6dr/CDLWKhfrTsE/o4Zyzb04zaqqU9DzA== X-Received: by 2002:a5d:45c4:0:b0:309:51a4:d0b7 with SMTP id b4-20020a5d45c4000000b0030951a4d0b7mr10560537wrs.65.1684839983990; Tue, 23 May 2023 04:06:23 -0700 (PDT) Received: from [192.168.1.7] ([79.123.86.193]) by smtp.gmail.com with ESMTPSA id j15-20020a5d464f000000b00307d58b3da9sm10774134wrs.25.2023.05.23.04.06.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 May 2023 04:06:23 -0700 (PDT) Message-ID: Date: Tue, 23 May 2023 12:06:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 To: =?UTF-8?Q?Cl=c3=a9ment_Chigot?= Cc: =?UTF-8?Q?Cl=c3=a9ment_Chigot_via_Binutils?= References: From: Nick Clifton Subject: Re: Failure with PR16566 new test on Mingw hosts In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE 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: Hi Clément, > I've a weird failure on the new test introduced by 496917ce46 and its -print-map-locals. On mingw, when cross-linking to any ELF targets, So this happens when the *host* is a mingw system, rather than, say, a Linux system. That is strange. Why would the host matter ? > adding the option results in a crash when writing the output executable: > It seems that a call to fwrite is failing with EPIPE, when writing the strtab. > I don't know why but this seems to be triggered by the new call to bfd_canonicalize_symtab introduced when we are logging the local symbols [1]. Any idea about what's > going on ? No. :-( It is definitely weird. Do you know if the problem is target specific, ie only happening for certain ELF targets ? Maybe this is a memory problem. Possibly the code is using freed memory, or something like that. And on Linux hosts the freed memory is untouched but on mingw hosts the memory is recycled and used for something else ? If you run the command under a program like valgrind to you get any more information ? Or maybe compiling with address sanitization enabled ? Cheers Nick