From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by sourceware.org (Postfix) with ESMTPS id C6FA938618AF for ; Fri, 26 Feb 2021 18:21:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C6FA938618AF Received: by mail-qt1-x833.google.com with SMTP id f17so7297964qth.7 for ; Fri, 26 Feb 2021 10:21:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=gs/PW+ijxxtw02CH/DFPdc3tHAIGpvlTExzKa3+HELc=; b=uRg1ycDcThHVgoeD3qhR6Jr1RnqN2VBqH8GfhvVUrGkkSunEshkqyd5h3ZHal7ywbn H2QDTUxlLbh/nCN+9+G7CuCymDtXxBh75+YZhQ0aB7xh3K3hjQNUoUw5ZZ54JlGtD4lV lLS/tnBQJI7OEA9qBMJ+bGeCGEoCDdSkt3KbWRJXocY80nyWR6+0vEWXBH4x2fTaAEfM sIZs6Up/auk1pxxhKdKg/wmx6YmubK3YS3OS96436+KeIKg6RjdoIGmFTkThXRoxtb19 8uvwKk1I/m8c0/JDjiK6DNBXA5RSB9rtXaS/ZtFAGNqFagLGgUsUhWy40ItW/qsMDCKH vJ2Q== X-Gm-Message-State: AOAM533fAND3nttWPmDhQKWTJzDYe3u9tBDnrjoZjYZqmY0pCKpkvM8R DKNwFcI/Dyy0uwA7iyOPBXi7w1k8W5BaKQ== X-Google-Smtp-Source: ABdhPJxAs3i/q1hkoGvH4deTWwhXJHcGBmkJ2xps5kpY9p8sKhJtpDBRIP0sTnOVlG+J/dO3WOkTGw== X-Received: by 2002:a05:622a:143:: with SMTP id v3mr3824435qtw.363.1614363696001; Fri, 26 Feb 2021 10:21:36 -0800 (PST) Received: from [192.168.1.146] (dhcp-198-2-80-164.cable.user.start.ca. [198.2.80.164]) by smtp.gmail.com with ESMTPSA id s29sm6766461qks.31.2021.02.26.10.21.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Feb 2021 10:21:35 -0800 (PST) To: libc-alpha@sourceware.org From: Tyson Whitehead Subject: Running via gives a different executable Message-ID: <89538393-2014-85c6-2350-9f02847318a4@gmail.com> Date: Fri, 26 Feb 2021 13:21:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Fri, 26 Feb 2021 18:21:38 -0000 Happened to discover that, at least under glibc 2.31, if you launch a binary via on linux, the proc exe link is set to . This causes ps to report the program as ld.so and also breaks (at least) any Qt application that uses QCoreApplication::applicationDirPath() https://doc.qt.io/qt-5/qcoreapplication.html#applicationDirPath Reaching out to the mailing list to see if this is I should be opening a bug report about? Thanks! -Tyson PS: Discovered this trying to use --preload on a Qt binary where I couldn't use LD_PRELOAD as it would pollute the forked children.